25 #ifndef HAL_HYGROMETER_H 26 #define HAL_HYGROMETER_H 49 #define _base_hygrometer_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_hygrometer_methods \ 64 _base_sensor_methods \ 65 _base_hygrometer_methods_alone 77 #define _base_hygrometer_data \ 107 #define hygrometerGetChannelsNumber(ip) \ 108 (ip)->vmt->get_channels_number(ip) 122 #define hygrometerReadRaw(ip, dp) \ 123 (ip)->vmt->read_raw(ip, dp) 137 #define hygrometerReadCooked(ip, dp) \ 138 (ip)->vmt->read_cooked(ip, dp) 154 #define hygrometerSetBias(ip, bp) \ 155 (ip)->vmt->set_bias(ip, bp) 168 #define hygrometerResetBias(ip) \ 169 (ip)->vmt->reset_bias(ip) 185 #define hygrometerSetSensitivity(ip, sp) \ 186 (ip)->vmt->set_sensitivity(ip, sp) 200 #define hygrometerResetSensitivity(ip) \ 201 (ip)->vmt->reset_sensitivity(ip)
#define _base_hygrometer_methods
BaseHygrometer specific methods with inherited ones.
Generic sensors interface header.
const struct BaseHygrometerVMT * vmt
Virtual Methods Table.
BaseHygrometer virtual methods table.
#define _base_hygrometer_data
BaseHygrometer specific data.