aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/lib/peripherals/sensors/hal_gyroscope.h
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-02-05 10:15:34 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-02-05 10:15:34 +0000
commit4af47b5889971271efceea9391b87b37ca2a6a71 (patch)
tree1115a8f0790f6a680286814750eca189f176592c /os/hal/lib/peripherals/sensors/hal_gyroscope.h
parentb7da40b69cb5955e7a305864d9173b530b85c8c7 (diff)
downloadChibiOS-4af47b5889971271efceea9391b87b37ca2a6a71.tar.gz
ChibiOS-4af47b5889971271efceea9391b87b37ca2a6a71.tar.bz2
ChibiOS-4af47b5889971271efceea9391b87b37ca2a6a71.zip
Updated peripherals interfaces (Fixing Bug #915).
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11437 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/lib/peripherals/sensors/hal_gyroscope.h')
-rw-r--r--os/hal/lib/peripherals/sensors/hal_gyroscope.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/os/hal/lib/peripherals/sensors/hal_gyroscope.h b/os/hal/lib/peripherals/sensors/hal_gyroscope.h
index bc3e693a3..00786607e 100644
--- a/os/hal/lib/peripherals/sensors/hal_gyroscope.h
+++ b/os/hal/lib/peripherals/sensors/hal_gyroscope.h
@@ -85,7 +85,7 @@ struct BaseGyroscopeVMT {
*/
typedef struct {
/** @brief Virtual Methods Table.*/
- const struct BaseGyroscopeVMT *vmt_basegyroscope;
+ const struct BaseGyroscopeVMT *vmt_gyroscope;
_base_gyroscope_data
} BaseGyroscope;
@@ -106,7 +106,7 @@ typedef struct {
* @api
*/
#define gyroscopeGetAxesNumber(ip) \
- (ip)->vmt_basegyroscope->get_channels_number(ip)
+ (ip)->vmt_gyroscope->get_channels_number(ip)
/**
* @brief Gyroscope read raw data.
@@ -121,7 +121,7 @@ typedef struct {
* @api
*/
#define gyroscopeReadRaw(ip, dp) \
- (ip)->vmt_basegyroscope->read_raw(ip, dp)
+ (ip)->vmt_gyroscope->read_raw(ip, dp)
/**
* @brief Gyroscope read cooked data.
@@ -136,7 +136,7 @@ typedef struct {
* @api
*/
#define gyroscopeReadCooked(ip, dp) \
- (ip)->vmt_basegyroscope->read_cooked(ip, dp)
+ (ip)->vmt_gyroscope->read_cooked(ip, dp)
/**
* @brief Gyroscope bias sampling procedure.
@@ -153,7 +153,7 @@ typedef struct {
* @api
*/
#define gyroscopeSampleBias(ip) \
- (ip)->vmt_basegyroscope->sample_bias(ip)
+ (ip)->vmt_gyroscope->sample_bias(ip)
/**
* @brief Updates gyroscope bias data from received buffer.
@@ -170,7 +170,7 @@ typedef struct {
* @api
*/
#define gyroscopeSetBias(ip, bp) \
- (ip)->vmt_basegyroscope->set_bias(ip, bp)
+ (ip)->vmt_gyroscope->set_bias(ip, bp)
/**
* @brief Reset gyroscope bias data restoring it to zero.
@@ -184,7 +184,7 @@ typedef struct {
* @api
*/
#define gyroscopeResetBias(ip) \
- (ip)->vmt_basegyroscope->reset_bias(ip)
+ (ip)->vmt_gyroscope->reset_bias(ip)
/**
* @brief Updates gyroscope sensitivity data from received buffer.
@@ -201,7 +201,7 @@ typedef struct {
* @api
*/
#define gyroscopeSetSensitivity(ip, sp) \
- (ip)->vmt_basegyroscope->set_sensitivity(ip, sp)
+ (ip)->vmt_gyroscope->set_sensitivity(ip, sp)
/**
* @brief Reset gyroscope sensitivity data restoring it to its typical
@@ -216,7 +216,7 @@ typedef struct {
* @api
*/
#define gyroscopeResetSensitivity(ip) \
- (ip)->vmt_basegyroscope->reset_sensitivity(ip)
+ (ip)->vmt_gyroscope->reset_sensitivity(ip)
/** @} */
/*===========================================================================*/