ChibiOS/HAL  6.1.0
hal_gyroscope.h File Reference

Generic gyroscope interface header. More...

#include "hal_sensors.h"

Go to the source code of this file.

Data Structures

struct  BaseGyroscopeVMT
 BaseGyroscope virtual methods table. More...
 
struct  BaseGyroscope
 Base gyroscope class. More...
 

Macros

#define _base_gyroscope_methods_alone
 BaseGyroscope specific methods. More...
 
#define _base_gyroscope_methods
 BaseGyroscope specific methods with inherited ones. More...
 
#define _base_gyroscope_data   _base_sensor_data
 BaseGyroscope specific data. More...
 
Macro Functions (BaseGyroscope)
#define gyroscopeGetAxesNumber(ip)   (ip)->vmt->get_channels_number(ip)
 Gyroscope get axes number. More...
 
#define gyroscopeReadRaw(ip, dp)   (ip)->vmt->read_raw(ip, dp)
 Gyroscope read raw data. More...
 
#define gyroscopeReadCooked(ip, dp)   (ip)->vmt->read_cooked(ip, dp)
 Gyroscope read cooked data. More...
 
#define gyroscopeSampleBias(ip)   (ip)->vmt->sample_bias(ip)
 Gyroscope bias sampling procedure. More...
 
#define gyroscopeSetBias(ip, bp)   (ip)->vmt->set_bias(ip, bp)
 Updates gyroscope bias data from received buffer. More...
 
#define gyroscopeResetBias(ip)   (ip)->vmt->reset_bias(ip)
 Reset gyroscope bias data restoring it to zero. More...
 
#define gyroscopeSetSensitivity(ip, sp)   (ip)->vmt->set_sensitivity(ip, sp)
 Updates gyroscope sensitivity data from received buffer. More...
 
#define gyroscopeResetSensitivity(ip)   (ip)->vmt->reset_sensitivity(ip)
 Reset gyroscope sensitivity data restoring it to its typical value. More...
 

Detailed Description

Generic gyroscope interface header.

Definition in file hal_gyroscope.h.