123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
-
- #ifndef __GYRO_H
- #define __GYRO_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include <stdint.h>
-
- typedef struct
- {
- void (*Init)(uint16_t);
- void (*DeInit)(void);
- uint8_t (*ReadID)(void);
- void (*Reset)(void);
- void (*LowPower)(uint16_t);
- void (*ConfigIT)(uint16_t);
- void (*EnableIT)(uint8_t);
- void (*DisableIT)(uint8_t);
- uint8_t (*ITStatus)(uint16_t, uint16_t);
- void (*ClearIT)(uint16_t, uint16_t);
- void (*FilterConfig)(uint8_t);
- void (*FilterCmd)(uint8_t);
- void (*GetXYZ)(float *);
- }GYRO_DrvTypeDef;
- typedef struct
- {
- uint8_t Power_Mode;
- uint8_t Output_DataRate;
- uint8_t Axes_Enable;
- uint8_t Band_Width;
- uint8_t BlockData_Update;
- uint8_t Endianness;
- uint8_t Full_Scale;
- }GYRO_InitTypeDef;
- typedef struct
- {
- uint8_t HighPassFilter_Mode_Selection;
- uint8_t HighPassFilter_CutOff_Frequency;
- }GYRO_FilterConfigTypeDef;
- typedef struct
- {
- uint8_t Latch_Request;
- uint8_t Interrupt_Axes;
- uint8_t Interrupt_ActiveEdge;
- }GYRO_InterruptConfigTypeDef;
- #ifdef __cplusplus
- }
- #endif
- #endif
|