25 #ifndef HAL_THERMOMETER_H 26 #define HAL_THERMOMETER_H 49 #define _base_thermometer_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_thermometer_methods \ 64 _base_sensor_methods \ 65 _base_thermometer_methods_alone 77 #define _base_thermometer_data \ 107 #define thermometerGetChannelsNumber(ip) \ 108 (ip)->vmt->get_channels_number(ip) 122 #define thermometerReadRaw(ip, dp) \ 123 (ip)->vmt->read_raw(ip, dp) 137 #define thermometerReadCooked(ip, dp) \ 138 (ip)->vmt->read_cooked(ip, dp) 154 #define thermometerSetBias(ip, bp) \ 155 (ip)->vmt->set_bias(ip, bp) 168 #define thermometerResetBias(ip) \ 169 (ip)->vmt->reset_bias(ip) 185 #define thermometerSetSensitivity(ip, sp) \ 186 (ip)->vmt->set_sensitivity(ip, sp) 200 #define thermometerResetSensitivity(ip) \ 201 (ip)->vmt->reset_sensitivity(ip)
BaseThermometer virtual methods table.
#define _base_thermometer_methods
BaseThermometer specific methods with inherited ones.
Generic sensors interface header.
#define _base_thermometer_data
BaseThermometer specific data.
const struct BaseThermometerVMT * vmt
Virtual Methods Table.