aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/lib/peripherals/sensors/hal_gyroscope.h
diff options
context:
space:
mode:
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)
/** @} */
/*===========================================================================*/