1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
38
39
42
43
46
47
50
51
56
57
60
61
64
67
68
71
72
73
74
75
76
77
80
81
84
85
88
89
92
93
94
95
96
97
/* ... */
#ifndef __STM32F401_DISCOVERY_ACCELEROMETER_H
#define __STM32F401_DISCOVERY_ACCELEROMETER_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32f401_discovery.h"
#include "../Components/lsm303dlhc/lsm303dlhc.h"
/* ... */
/* ... */
/* ... */
/* ... */
typedef enum
{
ACCELERO_OK = 0,
ACCELERO_ERROR = 1,
ACCELERO_TIMEOUT = 2
...}ACCELERO_StatusTypeDef;
/* ... */
/* ... */
/* ... */
/* ... */
uint8_t BSP_ACCELERO_Init(void);
void BSP_ACCELERO_Reset(void);
void BSP_ACCELERO_Click_ITConfig(void);
void BSP_ACCELERO_GetXYZ(int16_t *pDataXYZ);
/* ... */
/* ... */
/* ... */
/* ... */
#ifdef __cplusplus
}extern "C" { ... }
#endif
/* ... */
#endif