diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-03-11 15:53:20 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-03-11 15:53:20 +0000 |
commit | 8b95f8629b2884fffc64dc3a64c6a372d566551e (patch) | |
tree | 7c200fa71e27655a3826dba2168047adce9fe5a2 /os/hal/lib/peripherals/include/hal_gyroscope.h | |
parent | d6dd34c381e8e7631cb04032f01d83ff272afdcc (diff) | |
download | ChibiOS-8b95f8629b2884fffc64dc3a64c6a372d566551e.tar.gz ChibiOS-8b95f8629b2884fffc64dc3a64c6a372d566551e.tar.bz2 ChibiOS-8b95f8629b2884fffc64dc3a64c6a372d566551e.zip |
Updated peripheral interfaces
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9077 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/lib/peripherals/include/hal_gyroscope.h')
-rw-r--r-- | os/hal/lib/peripherals/include/hal_gyroscope.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/os/hal/lib/peripherals/include/hal_gyroscope.h b/os/hal/lib/peripherals/include/hal_gyroscope.h index 4d551d777..f2b162f15 100644 --- a/os/hal/lib/peripherals/include/hal_gyroscope.h +++ b/os/hal/lib/peripherals/include/hal_gyroscope.h @@ -78,7 +78,7 @@ struct BaseGyroscopeVMT { */
typedef struct {
/** @brief Virtual Methods Table.*/
- const struct BaseGyroscopeVMT *vmt;
+ const struct BaseGyroscopeVMT *vmtgy;
_base_gyroscope_data
} BaseGyroscope;
@@ -98,7 +98,7 @@ typedef struct { *
* @api
*/
-#define gyroscopeGetAxesNumber(ip) sensorGetAxesNumber(ip)
+#define gyroscopeGetAxesNumber(ip) ((ip)->vmtgy->get_axes_number(ip))
/**
* @brief Gyroscope read raw data.
@@ -112,7 +112,7 @@ typedef struct { *
* @api
*/
-#define gyroscopeReadRaw(ip, dp) sensorReadRaw(ip, dp)
+#define gyroscopeReadRaw(ip, dp) ((ip)->vmtgy->read_raw(ip, dp))
/**
* @brief Gyroscope read cooked data.
@@ -126,7 +126,7 @@ typedef struct { *
* @api
*/
-#define gyroscopeReadCooked(ip, dp) sensorReadCooked(ip, dp)
+#define gyroscopeReadCooked(ip, dp) ((ip)->vmtgy->read_cooked(ip, dp))
/**
* @brief Delete calibration data.
@@ -139,7 +139,7 @@ typedef struct { *
* @api
*/
-#define gyroscopeResetCalibration(ip) ((ip)->vmt->reset_calibration(ip))
+#define gyroscopeResetCalibration(ip) ((ip)->vmtgy->reset_calibration(ip))
/**
* @brief Gyroscope calibration procedure.
@@ -152,7 +152,7 @@ typedef struct { *
* @api
*/
-#define gyroscopeCalibrate(ip) ((ip)->vmt->calibrate(ip))
+#define gyroscopeCalibrate(ip) ((ip)->vmtgy->calibrate(ip))
/** @} */
/*===========================================================================*/
|