25 #ifndef HAL_BAROMETER_H 26 #define HAL_BAROMETER_H 49 #define _base_barometer_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); 63 #define _base_barometer_methods \ 64 _base_sensor_methods \ 65 _base_barometer_methods_alone 77 #define _base_barometer_data \ 107 #define barometerGetChannelsNumber(ip) \ 108 (ip)->vmt->get_channels_number(ip) 122 #define barometerReadRaw(ip, dp) \ 123 (ip)->vmt->read_raw(ip, dp) 137 #define barometerReadCooked(ip, dp) \ 138 (ip)->vmt->read_cooked(ip, dp) 154 #define barometerSetBias(ip, bp) \ 155 (ip)->vmt->set_bias(ip, bp) 168 #define barometerResetBias(ip) \ 169 (ip)->vmt->reset_bias(ip) 185 #define barometerSetSensitivity(ip, sp) \ 186 (ip)->vmt->set_sensitivity(ip, sp) 200 #define barometerResetSensitivity(ip) \ 201 (ip)->vmt->reset_sensitivity(ip) #define _base_barometer_data
BaseBarometer specific data.
#define _base_barometer_methods
BaseBarometer specific methods with inherited ones.
BaseBarometer virtual methods table.
const struct BaseBarometerVMT * vmt
Virtual Methods Table.
Generic sensors interface header.