ChibiOS/HAL
6.1.0
|
HAL Generic Sensor Interface. More...
HAL Generic Sensor Interface.
Macros | |
#define | _base_sensor_methods_alone |
BaseSensor specific methods. More... | |
#define | _base_sensor_methods |
BaseSensor specific methods with inherited ones. More... | |
#define | _base_sensor_data |
BaseSensor specific data. More... | |
Macro Functions (BaseSensor) | |
#define | sensorGetChannelNumber(ip) (ip)->vmt->get_channels_number(ip) |
Sensors get channels number. More... | |
#define | sensorReadRaw(ip, dp) (ip)->vmt->read_raw(ip, dp) |
Sensors read raw data. More... | |
#define | sensorReadCooked(ip, dp) (ip)->vmt->read_cooked(ip, dp) |
Sensors read cooked data. More... | |
Data Structures | |
struct | BaseSensorVMT |
BaseSensor virtual methods table. More... | |
struct | BaseSensor |
Base stream class. More... | |
#define _base_sensor_methods_alone |
BaseSensor specific methods.
Definition at line 47 of file hal_sensors.h.
#define _base_sensor_methods |
BaseSensor specific methods with inherited ones.
Definition at line 58 of file hal_sensors.h.
#define _base_sensor_data |
BaseSensor
specific data.
BaseSensor
is only an interface without implementation. Definition at line 74 of file hal_sensors.h.
#define sensorGetChannelNumber | ( | ip | ) | (ip)->vmt->get_channels_number(ip) |
Sensors get channels number.
[in] | ip | pointer to a BaseSensor or derived class. |
Definition at line 106 of file hal_sensors.h.
#define sensorReadRaw | ( | ip, | |
dp | |||
) | (ip)->vmt->read_raw(ip, dp) |
Sensors read raw data.
[in] | ip | pointer to a BaseSensor or derived class. |
[in] | dp | pointer to a data array. |
MSG_OK | if the function succeeded. |
MSG_RESET | if one or more errors occurred. |
Definition at line 120 of file hal_sensors.h.
#define sensorReadCooked | ( | ip, | |
dp | |||
) | (ip)->vmt->read_cooked(ip, dp) |
Sensors read cooked data.
[in] | ip | pointer to a BaseSensor or derived class. |
[in] | dp | pointer to a data array. |
MSG_OK | if the function succeeded. |
MSG_RESET | if one or more errors occurred. |
Definition at line 134 of file hal_sensors.h.