STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
accelero.h
Go to the documentation of this file.
1 
38 /* Define to prevent recursive inclusion -------------------------------------*/
39 #ifndef __ACCELERO_H
40 #define __ACCELERO_H
41 
42 #ifdef __cplusplus
43  extern "C" {
44 #endif
45 
46 /* Includes ------------------------------------------------------------------*/
47 #include <stdint.h>
48 
68 typedef struct
69 {
70  void (*Init)(uint16_t);
71  void (*DeInit)(void);
72  uint8_t (*ReadID)(void);
73  void (*Reset)(void);
74  void (*LowPower)(void);
75  void (*ConfigIT)(void);
76  void (*EnableIT)(uint8_t);
77  void (*DisableIT)(uint8_t);
78  uint8_t (*ITStatus)(uint16_t);
79  void (*ClearIT)(void);
80  void (*FilterConfig)(uint8_t);
81  void (*FilterCmd)(uint8_t);
82  void (*GetXYZ)(int16_t *);
92 /* ACCELERO struct */
93 typedef struct
94 {
95  uint8_t Power_Mode; /* Power-down/Normal Mode */
96  uint8_t AccOutput_DataRate; /* OUT data rate */
97  uint8_t Axes_Enable; /* Axes enable */
98  uint8_t High_Resolution; /* High Resolution enabling/disabling */
99  uint8_t BlockData_Update; /* Block Data Update */
100  uint8_t Endianness; /* Endian Data selection */
101  uint8_t AccFull_Scale; /* Full Scale selection */
104 
105 /* ACCELERO High Pass Filter struct */
106 typedef struct
107 {
108  uint8_t HighPassFilter_Mode_Selection; /* Internal filter mode */
109  uint8_t HighPassFilter_CutOff_Frequency; /* High pass filter cut-off frequency */
110  uint8_t HighPassFilter_AOI1; /* HPF_enabling/disabling for AOI function on interrupt 1 */
111  uint8_t HighPassFilter_AOI2; /* HPF_enabling/disabling for AOI function on interrupt 2 */
115 
137 #ifdef __cplusplus
138 }
139 #endif
140 
141 #endif /* __ACCELERO_H */
142 
143 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
enum FlagStatus ITStatus
uint8_t Communication_Mode
Definition: accelero.h:102
uint8_t AccFull_Scale
Definition: accelero.h:101
uint8_t Power_Mode
Definition: accelero.h:95
uint8_t HighPassFilter_CutOff_Frequency
Definition: accelero.h:109
uint8_t BlockData_Update
Definition: accelero.h:99
uint8_t AccOutput_DataRate
Definition: accelero.h:96
uint8_t Axes_Enable
Definition: accelero.h:97
uint8_t HighPassFilter_Mode_Selection
Definition: accelero.h:108
uint8_t High_Resolution
Definition: accelero.h:98