25 #ifndef HAL_ACCELEROMETER_H 26 #define HAL_ACCELEROMETER_H 49 #define _base_accelerometer_methods_alone \ 51 msg_t (*set_bias)(void *instance, float biases[]); \ 53 msg_t (*reset_bias)(void *instance); \ 55 msg_t (*set_sensitivity)(void *instance, float sensitivities[]); \ 57 msg_t (*reset_sensitivity)(void *instance); 62 #define _base_accelerometer_methods \ 63 _base_sensor_methods \ 64 _base_accelerometer_methods_alone 76 #define _base_accelerometer_data \ 107 #define accelerometerGetAxesNumber(ip) \ 108 (ip)->vmt->get_channels_number(ip) 122 #define accelerometerReadRaw(ip, dp) \ 123 (ip)->vmt->read_raw(ip, dp) 137 #define accelerometerReadCooked(ip, dp) \ 138 (ip)->vmt->read_cooked(ip, dp) 155 #define accelerometerSetBias(ip, bp) \ 156 (ip)->vmt->set_bias(ip, bp) 169 #define accelerometerResetBias(ip) \ 170 (ip)->vmt->reset_bias(ip) 186 #define accelerometerSetSensitivity(ip, sp) \ 187 (ip)->vmt->set_sensitivity(ip, sp) 201 #define accelerometerResetSensitivity(ip) \ 202 (ip)->vmt->reset_sensitivity(ip) #define _base_accelerometer_methods
BaseAccelerometer specific methods with inherited ones.
Generic sensors interface header.
BaseAccelerometer virtual methods table.
Base accelerometer class.
const struct BaseAccelerometerVMT * vmt
Virtual Methods Table.
#define _base_accelerometer_data
BaseAccelerometer specific data.