Revision ef078306 include/alld_hmc5883l.h
include/alld_hmc5883l.h | ||
---|---|---|
31 | 31 |
|
32 | 32 |
#if defined(AMIROLLD_CFG_USE_HMC5883L) || defined(__DOXYGEN__) |
33 | 33 |
|
34 |
/** |
|
35 |
* @brief The HMC5883L driver struct |
|
36 |
*/ |
|
37 |
typedef struct { |
|
38 |
apalI2CDriver_t* i2cd; /**< @brief The I2C Driver */ |
|
39 |
} HMC5883LDriver; |
|
34 |
/******************************************************************************/ |
|
35 |
/* CONSTANTS */ |
|
36 |
/******************************************************************************/ |
|
40 | 37 |
|
41 | 38 |
/** |
42 | 39 |
* @brief Constant I2C address. |
... | ... | |
53 | 50 |
*/ |
54 | 51 |
#define HMC5883L_LLD_INT_EDGE APAL_GPIO_EDGE_FALLING |
55 | 52 |
|
53 |
/******************************************************************************/ |
|
54 |
/* SETTINGS */ |
|
55 |
/******************************************************************************/ |
|
56 |
|
|
57 |
/******************************************************************************/ |
|
58 |
/* CHECKS */ |
|
59 |
/******************************************************************************/ |
|
60 |
|
|
61 |
/******************************************************************************/ |
|
62 |
/* DATA STRUCTURES AND TYPES */ |
|
63 |
/******************************************************************************/ |
|
64 |
|
|
65 |
/** |
|
66 |
* @brief The HMC5883L driver struct |
|
67 |
*/ |
|
68 |
typedef struct { |
|
69 |
apalI2CDriver_t* i2cd; /**< @brief The I2C Driver */ |
|
70 |
} HMC5883LDriver; |
|
71 |
|
|
56 | 72 |
/** |
57 | 73 |
* @brief Register enum. |
58 | 74 |
*/ |
... | ... | |
172 | 188 |
hmc5883l_lld_measurement_mode_t mode; |
173 | 189 |
} hmc5883l_lld_config_t; |
174 | 190 |
|
191 |
/******************************************************************************/ |
|
192 |
/* MACROS */ |
|
193 |
/******************************************************************************/ |
|
194 |
|
|
195 |
/******************************************************************************/ |
|
196 |
/* EXTERN DECLARATIONS */ |
|
197 |
/******************************************************************************/ |
|
198 |
|
|
175 | 199 |
#ifdef __cplusplus |
176 | 200 |
extern "C" { |
177 | 201 |
#endif |
... | ... | |
189 | 213 |
} |
190 | 214 |
#endif |
191 | 215 |
|
216 |
/******************************************************************************/ |
|
217 |
/* INLINE FUNCTIONS */ |
|
218 |
/******************************************************************************/ |
|
219 |
|
|
192 | 220 |
#endif /* defined(AMIROLLD_CFG_USE_HMC5883L) */ |
193 | 221 |
|
194 | 222 |
#endif /* AMIROLLD_HMC5883L_H */ |
Also available in: Unified diff