Revision 21076167 source/alld_lis331dlh.c
source/alld_lis331dlh.c | ||
---|---|---|
63 | 63 |
* |
64 | 64 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
65 | 65 |
*/ |
66 |
inline apalExitStatus_t |
|
67 |
lis331dlh_lld_read_register(const LIS331DLHDriver* const lisd, const lis331dlh_lld_register_t regaddr, uint8_t *data, const uint8_t length) |
|
66 |
apalExitStatus_t lis331dlh_lld_read_register(const LIS331DLHDriver* const lisd, const lis331dlh_lld_register_t regaddr, uint8_t *data, const uint8_t length) |
|
68 | 67 |
{ |
69 | 68 |
apalDbgAssert(lisd != NULL && lisd->spid != NULL); |
70 | 69 |
apalDbgAssert(data != NULL); |
... | ... | |
85 | 84 |
* |
86 | 85 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
87 | 86 |
*/ |
88 |
inline apalExitStatus_t |
|
89 |
lis331dlh_lld_write_register(const LIS331DLHDriver* const lisd, const lis331dlh_lld_register_t regaddr, const uint8_t *data, const uint8_t length) |
|
87 |
apalExitStatus_t lis331dlh_lld_write_register(const LIS331DLHDriver* const lisd, const lis331dlh_lld_register_t regaddr, const uint8_t *data, const uint8_t length) |
|
90 | 88 |
{ |
91 | 89 |
apalDbgAssert(lisd != NULL && lisd->spid != NULL); |
92 | 90 |
apalDbgAssert(data != NULL); |
... | ... | |
103 | 101 |
* |
104 | 102 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
105 | 103 |
*/ |
106 |
inline apalExitStatus_t |
|
107 |
lis331dlh_lld_reset_hp_filter(const LIS331DLHDriver* const lisd) |
|
104 |
apalExitStatus_t lis331dlh_lld_reset_hp_filter(const LIS331DLHDriver* const lisd) |
|
108 | 105 |
{ |
109 | 106 |
return lis331dlh_lld_read_register(lisd, LIS331DLH_LLD_REGISTER_HP_FILTER_RESET, NULL, 0); |
110 | 107 |
} |
... | ... | |
117 | 114 |
* |
118 | 115 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
119 | 116 |
*/ |
120 |
inline apalExitStatus_t |
|
121 |
lis331dlh_lld_read_all_data(const LIS331DLHDriver* const lisd, int16_t *data, const lis331dlh_lld_cfg_t *cfg) |
|
117 |
apalExitStatus_t lis331dlh_lld_read_all_data(const LIS331DLHDriver* const lisd, int16_t *data, const lis331dlh_lld_cfg_t *cfg) |
|
122 | 118 |
{ |
123 | 119 |
apalDbgAssert(data != NULL); |
124 | 120 |
apalDbgAssert(cfg != NULL); |
... | ... | |
146 | 142 |
* |
147 | 143 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
148 | 144 |
*/ |
149 |
inline apalExitStatus_t |
|
150 |
lis331dlh_lld_read_data(const LIS331DLHDriver* const lisd, int16_t *data, const lis331dlh_lld_axis_t axis, const lis331dlh_lld_cfg_t *cfg) |
|
145 |
apalExitStatus_t lis331dlh_lld_read_data(const LIS331DLHDriver* const lisd, int16_t *data, const lis331dlh_lld_axis_t axis, const lis331dlh_lld_cfg_t *cfg) |
|
151 | 146 |
{ |
152 | 147 |
apalDbgAssert(data != NULL); |
153 | 148 |
apalDbgAssert(cfg != NULL); |
... | ... | |
183 | 178 |
* |
184 | 179 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
185 | 180 |
*/ |
186 |
inline apalExitStatus_t |
|
187 |
lis331dlh_lld_read_config(const LIS331DLHDriver* const lisd, lis331dlh_lld_cfg_t *cfg) |
|
181 |
apalExitStatus_t lis331dlh_lld_read_config(const LIS331DLHDriver* const lisd, lis331dlh_lld_cfg_t *cfg) |
|
188 | 182 |
{ |
189 | 183 |
apalDbgAssert(cfg != NULL); |
190 | 184 |
|
... | ... | |
198 | 192 |
* |
199 | 193 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
200 | 194 |
*/ |
201 |
inline apalExitStatus_t |
|
202 |
lis331dlh_lld_write_config(const LIS331DLHDriver* const lisd, const lis331dlh_lld_cfg_t *cfg) |
|
195 |
apalExitStatus_t lis331dlh_lld_write_config(const LIS331DLHDriver* const lisd, const lis331dlh_lld_cfg_t *cfg) |
|
203 | 196 |
{ |
204 | 197 |
apalDbgAssert(cfg != NULL); |
205 | 198 |
|
... | ... | |
214 | 207 |
* |
215 | 208 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
216 | 209 |
*/ |
217 |
inline apalExitStatus_t |
|
218 |
lis331dlh_lld_read_int_config(const LIS331DLHDriver* const lisd, lis331dlh_lld_int_cfg_t *cfg, const lis331dlh_lld_int_t interrupt) |
|
210 |
apalExitStatus_t lis331dlh_lld_read_int_config(const LIS331DLHDriver* const lisd, lis331dlh_lld_int_cfg_t *cfg, const lis331dlh_lld_int_t interrupt) |
|
219 | 211 |
{ |
220 | 212 |
apalDbgAssert(cfg != NULL); |
221 | 213 |
|
... | ... | |
244 | 236 |
* |
245 | 237 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
246 | 238 |
*/ |
247 |
inline apalExitStatus_t |
|
248 |
lis331dlh_lld_write_int_config(const LIS331DLHDriver* const lisd, const lis331dlh_lld_int_cfg_t *cfg, const lis331dlh_lld_int_t interrupt) |
|
239 |
apalExitStatus_t lis331dlh_lld_write_int_config(const LIS331DLHDriver* const lisd, const lis331dlh_lld_int_cfg_t *cfg, const lis331dlh_lld_int_t interrupt) |
|
249 | 240 |
{ |
250 | 241 |
apalDbgAssert(cfg != NULL); |
251 | 242 |
|
... | ... | |
270 | 261 |
* |
271 | 262 |
* @return The return status indicates whether the function call was succesfull or a timeout occurred. |
272 | 263 |
*/ |
273 |
inline apalExitStatus_t |
|
274 |
lis331dlh_lld_read_status_register(const LIS331DLHDriver* const lisd, uint8_t *status) |
|
264 |
apalExitStatus_t lis331dlh_lld_read_status_register(const LIS331DLHDriver* const lisd, uint8_t *status) |
|
275 | 265 |
{ |
276 | 266 |
apalDbgAssert(status != NULL); |
277 | 267 |
|
Also available in: Unified diff