Revision 21076167 source/alld_l3g4200d.c

View differences:

source/alld_l3g4200d.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
l3g4200d_lld_read_register(const L3G4200DDriver* const l3gd, const l3g4200d_lld_register_t regaddr, uint8_t* const data, const uint8_t length)
66
apalExitStatus_t l3g4200d_lld_read_register(const L3G4200DDriver* const l3gd, const l3g4200d_lld_register_t regaddr, uint8_t* const data, const uint8_t length)
68 67
{
69 68
  apalDbgAssert(l3gd != NULL && l3gd->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
l3g4200d_lld_write_register(const L3G4200DDriver* const l3gd, const l3g4200d_lld_register_t regaddr, const uint8_t* const data, const uint8_t length)
87
apalExitStatus_t l3g4200d_lld_write_register(const L3G4200DDriver* const l3gd, const l3g4200d_lld_register_t regaddr, const uint8_t* const data, const uint8_t length)
90 88
{
91 89
  apalDbgAssert(l3gd != NULL && l3gd->spid != NULL);
92 90
  apalDbgAssert(data != NULL);
......
105 103
 *
106 104
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
107 105
 */
108
inline apalExitStatus_t
109
l3g4200d_lld_read_all_data(const L3G4200DDriver* const l3gd, int16_t* const data, const l3g4200d_lld_cfg_t* const cfg)
106
apalExitStatus_t l3g4200d_lld_read_all_data(const L3G4200DDriver* const l3gd, int16_t* const data, const l3g4200d_lld_cfg_t* const cfg)
110 107
{
111 108
  apalDbgAssert(data != NULL);
112 109
  apalDbgAssert(cfg != NULL);
......
134 131
 *
135 132
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
136 133
 */
137
inline apalExitStatus_t
138
l3g4200d_lld_read_data(const L3G4200DDriver* const l3gd, int16_t* const data, const l3g4200d_lld_axis_t axis, const l3g4200d_lld_cfg_t* const cfg)
134
apalExitStatus_t l3g4200d_lld_read_data(const L3G4200DDriver* const l3gd, int16_t* const data, const l3g4200d_lld_axis_t axis, const l3g4200d_lld_cfg_t* const cfg)
139 135
{
140 136
  apalDbgAssert(data != NULL);
141 137
  apalDbgAssert(cfg != NULL);
......
171 167
 *
172 168
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
173 169
 */
174
inline apalExitStatus_t
175
l3g4200d_lld_read_config(const L3G4200DDriver* const l3gd, l3g4200d_lld_cfg_t* const cfg)
170
apalExitStatus_t l3g4200d_lld_read_config(const L3G4200DDriver* const l3gd, l3g4200d_lld_cfg_t* const cfg)
176 171
{
177 172
  apalDbgAssert(cfg != NULL);
178 173

  
......
186 181
 *
187 182
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
188 183
 */
189
inline apalExitStatus_t
190
l3g4200d_lld_write_config(const L3G4200DDriver* const l3gd, const l3g4200d_lld_cfg_t cfg)
184
apalExitStatus_t l3g4200d_lld_write_config(const L3G4200DDriver* const l3gd, const l3g4200d_lld_cfg_t cfg)
191 185
{
192 186
  return l3g4200d_lld_write_register(l3gd, L3G4200D_LLD_REGISTER_CTRL_REG1, cfg.data, 5);
193 187
}
......
199 193
 *
200 194
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
201 195
 */
202
inline apalExitStatus_t
203
l3g4200d_lld_read_int_config(const L3G4200DDriver* const l3gd, l3g4200d_lld_int_cfg_t* const cfg)
196
apalExitStatus_t l3g4200d_lld_read_int_config(const L3G4200DDriver* const l3gd, l3g4200d_lld_int_cfg_t* const cfg)
204 197
{
205 198
  apalDbgAssert(cfg != NULL);
206 199

  
......
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
l3g4200d_lld_write_int_config(const L3G4200DDriver* const l3gd, const l3g4200d_lld_int_cfg_t cfg)
210
apalExitStatus_t l3g4200d_lld_write_int_config(const L3G4200DDriver* const l3gd, const l3g4200d_lld_int_cfg_t cfg)
219 211
{
220 212
  apalExitStatus_t status = l3g4200d_lld_write_register(l3gd, L3G4200D_LLD_REGISTER_INT1_CFG, cfg.data, 1);
221 213
  if (status != APAL_STATUS_OK) {
......
231 223
 *
232 224
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
233 225
 */
234
inline apalExitStatus_t
235
l3g4200d_lld_read_status_register(const L3G4200DDriver* const l3gd, uint8_t* const status)
226
apalExitStatus_t l3g4200d_lld_read_status_register(const L3G4200DDriver* const l3gd, uint8_t* const status)
236 227
{
237 228
  apalDbgAssert(status != NULL);
238 229

  
......
261 252
 *
262 253
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
263 254
 */
264
inline apalExitStatus_t
265
l3g4200d_lld_write_fifo_ctrl_register(const L3G4200DDriver* const l3gd, const uint8_t fifo)
255
apalExitStatus_t l3g4200d_lld_write_fifo_ctrl_register(const L3G4200DDriver* const l3gd, const uint8_t fifo)
266 256
{
267 257
  return l3g4200d_lld_write_register(l3gd, L3G4200D_LLD_REGISTER_FIFO_CTRL_REG, &fifo, 1);
268 258
}
......
274 264
 *
275 265
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
276 266
 */
277
inline apalExitStatus_t
278
l3g4200d_lld_read_fifo_src_register(const L3G4200DDriver* const l3gd, uint8_t* const fifo)
267
apalExitStatus_t l3g4200d_lld_read_fifo_src_register(const L3G4200DDriver* const l3gd, uint8_t* const fifo)
279 268
{
280 269
  apalDbgAssert(fifo != NULL);
281 270

  
......
289 278
 *
290 279
 * @return  The return status indicates whether the function call was succesfull or a timeout occurred.
291 280
 */
292
inline apalExitStatus_t
293
l3g4200d_lld_read_int_src(const L3G4200DDriver* const l3gd, uint8_t* const cfg)
281
apalExitStatus_t l3g4200d_lld_read_int_src(const L3G4200DDriver* const l3gd, uint8_t* const cfg)
294 282
{
295 283
  apalDbgAssert(cfg != NULL);
296 284

  

Also available in: Unified diff