aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/lib/peripherals/sensors/hal_sensors.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/lib/peripherals/sensors/hal_sensors.h')
-rw-r--r--os/hal/lib/peripherals/sensors/hal_sensors.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/lib/peripherals/sensors/hal_sensors.h b/os/hal/lib/peripherals/sensors/hal_sensors.h
index ad053667a..6a97ddaed 100644
--- a/os/hal/lib/peripherals/sensors/hal_sensors.h
+++ b/os/hal/lib/peripherals/sensors/hal_sensors.h
@@ -79,7 +79,7 @@ struct BaseSensorVMT {
*/
typedef struct {
/** @brief Virtual Methods Table.*/
- const struct BaseSensorVMT *vmt_basesensor;
+ const struct BaseSensorVMT *vmt_sensor;
_base_sensor_data
} BaseSensor;
@@ -99,7 +99,7 @@ typedef struct {
*
* @api
*/
-#define sensorGetChannelNumber(ip) (ip)->vmt_basesensor->get_channels_number(ip)
+#define sensorGetChannelNumber(ip) (ip)->vmt_sensor->get_channels_number(ip)
/**
* @brief Sensors read raw data.
@@ -113,7 +113,7 @@ typedef struct {
*
* @api
*/
-#define sensorReadRaw(ip, dp) (ip)->vmt_basesensor->read_raw(ip, dp)
+#define sensorReadRaw(ip, dp) (ip)->vmt_sensor->read_raw(ip, dp)
/**
* @brief Sensors read cooked data.
@@ -127,7 +127,7 @@ typedef struct {
*
* @api
*/
-#define sensorReadCooked(ip, dp) (ip)->vmt_basesensor->read_cooked(ip, dp)
+#define sensorReadCooked(ip, dp) (ip)->vmt_sensor->read_cooked(ip, dp)
/** @} */
/*===========================================================================*/