25 #ifndef HAL_GYROSCOPE_H 26 #define HAL_GYROSCOPE_H 49 #define _base_gyroscope_methods_alone \ 51 msg_t (*sample_bias)(void *instance); \ 53 msg_t (*set_bias)(void *instance, float biases[]); \ 55 msg_t (*reset_bias)(void *instance); \ 57 msg_t (*set_sensitivity)(void *instance, float sensitivities[]); \ 59 msg_t (*reset_sensitivity)(void *instance); 65 #define _base_gyroscope_methods \ 66 _base_sensor_methods \ 67 _base_gyroscope_methods_alone 79 #define _base_gyroscope_data \ 110 #define gyroscopeGetAxesNumber(ip) \ 111 (ip)->vmt->get_channels_number(ip) 125 #define gyroscopeReadRaw(ip, dp) \ 126 (ip)->vmt->read_raw(ip, dp) 140 #define gyroscopeReadCooked(ip, dp) \ 141 (ip)->vmt->read_cooked(ip, dp) 157 #define gyroscopeSampleBias(ip) \ 158 (ip)->vmt->sample_bias(ip) 174 #define gyroscopeSetBias(ip, bp) \ 175 (ip)->vmt->set_bias(ip, bp) 188 #define gyroscopeResetBias(ip) \ 189 (ip)->vmt->reset_bias(ip) 205 #define gyroscopeSetSensitivity(ip, sp) \ 206 (ip)->vmt->set_sensitivity(ip, sp) 220 #define gyroscopeResetSensitivity(ip) \ 221 (ip)->vmt->reset_sensitivity(ip) #define _base_gyroscope_data
BaseGyroscope specific data.
BaseGyroscope virtual methods table.
const struct BaseGyroscopeVMT * vmt
Virtual Methods Table.
Generic sensors interface header.
#define _base_gyroscope_methods
BaseGyroscope specific methods with inherited ones.