49 #define _base_compass_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_compass_methods \ 64 _base_sensor_methods \ 65 _base_compass_methods_alone 77 #define _base_compass_data \ 107 #define compassGetAxesNumber(ip) \ 108 (ip)->vmt->get_channels_number(ip) 122 #define compassReadRaw(ip, dp) \ 123 (ip)->vmt->read_raw(ip, dp) 137 #define compassReadCooked(ip, dp) \ 138 (ip)->vmt->read_cooked(ip, dp) 154 #define compassSetBias(ip, bp) \ 155 (ip)->vmt->set_bias(ip, bp) 168 #define compassResetBias(ip) \ 169 (ip)->vmt->reset_bias(ip) 185 #define compassSetSensitivity(ip, sp) \ 186 (ip)->vmt->set_sensitivity(ip, sp) 200 #define compassResetSensitivity(ip) \ 201 (ip)->vmt->reset_sensitivity(ip) BaseCompass virtual methods table.
const struct BaseCompassVMT * vmt
Virtual Methods Table.
#define _base_compass_methods
BaseCompass specific methods with inherited ones.
Generic sensors interface header.
#define _base_compass_data
BaseCompass specific data.