Revision 21076167 source/alld_ina219.c

View differences:

source/alld_ina219.c
62 62
 * @param[in]   timeout     timeout
63 63
 * @return                  An indicator whether the call was successfull
64 64
 */
65
inline apalExitStatus_t
66
ina219_lld_read_register(const INA219Driver* const ina219, const ina219_lld_register_t addr, uint16_t* const data, const uint8_t num, const apalTime_t timeout)
65
apalExitStatus_t ina219_lld_read_register(const INA219Driver* const ina219, const ina219_lld_register_t addr, uint16_t* const data, const uint8_t num, const apalTime_t timeout)
67 66
{
68 67
  apalDbgAssert(ina219 != NULL);
69 68
  apalDbgAssert(ina219->i2cd != NULL);
......
87 86
 * @param[in]   timeout     timeout
88 87
 * @return                  An indicator whether the call was successfull
89 88
 */
90
inline apalExitStatus_t
91
ina219_lld_write_register(const INA219Driver* const ina219, const ina219_lld_register_t addr, const uint16_t* const data, const uint8_t num, const apalTime_t timeout)
89
apalExitStatus_t ina219_lld_write_register(const INA219Driver* const ina219, const ina219_lld_register_t addr, const uint16_t* const data, const uint8_t num, const apalTime_t timeout)
92 90
{
93 91
  apalDbgAssert(ina219 != NULL);
94 92
  apalDbgAssert(ina219->i2cd != NULL);
......
112 110
 * @param[in]   timeout     timeout
113 111
 * @return                  An indicator whether the call was successfull
114 112
 */
115
inline apalExitStatus_t
116
ina219_lld_calibration(INA219Driver* const ina219, const ina219_lld_calib_input_t* const calib_in, ina219_lld_calib_output_t* const calib_out)
113
apalExitStatus_t ina219_lld_calibration(INA219Driver* const ina219, const ina219_lld_calib_input_t* const calib_in, ina219_lld_calib_output_t* const calib_out)
117 114
{
118 115
  apalDbgAssert(ina219 != NULL);
119 116
  apalDbgAssert(calib_in != NULL);
......
168 165
 * @param[in]   timeout     timeout
169 166
 * @return                  An indicator whether the call was successfull
170 167
 */
171
inline apalExitStatus_t
172
ina219_lld_read_config(const INA219Driver* const ina219, ina219_lld_cfg_t* const cfg, const apalTime_t timeout)
168
apalExitStatus_t ina219_lld_read_config(const INA219Driver* const ina219, ina219_lld_cfg_t* const cfg, const apalTime_t timeout)
173 169
{
174 170
  apalDbgAssert(ina219 != NULL);
175 171
  apalDbgAssert(cfg != NULL);
......
185 181
 * @param[in]   timeout     timeout
186 182
 * @return                  An indicator whether the call was successfull
187 183
 */
188
inline apalExitStatus_t
189
ina219_lld_write_config(const INA219Driver* const ina219, ina219_lld_cfg_t cfg, const apalTime_t timeout)
184
apalExitStatus_t ina219_lld_write_config(const INA219Driver* const ina219, ina219_lld_cfg_t cfg, const apalTime_t timeout)
190 185
{
191 186
  apalDbgAssert(ina219 != NULL);
192 187

  
......
201 196
 * @param[in]   timeout     timeout
202 197
 * @return                  An indicator whether the call was successfull
203 198
 */
204
inline apalExitStatus_t
205
ina219_lld_read_calibration(const INA219Driver* const ina219, uint16_t* const calib, const apalTime_t timeout)
199
apalExitStatus_t ina219_lld_read_calibration(const INA219Driver* const ina219, uint16_t* const calib, const apalTime_t timeout)
206 200
{
207 201
  apalDbgAssert(ina219 != NULL);
208 202
  apalDbgAssert(calib != NULL);
......
218 212
 * @param[in]   timeout     timeout
219 213
 * @return                  An indicator whether the call was successfull
220 214
 */
221
inline apalExitStatus_t
222
ina219_lld_write_calibration(const INA219Driver* const ina219, const uint16_t calib, const apalTime_t timeout)
215
apalExitStatus_t ina219_lld_write_calibration(const INA219Driver* const ina219, const uint16_t calib, const apalTime_t timeout)
223 216
{
224 217
  apalDbgAssert(ina219 != NULL);
225 218

  
......
233 226
 * @param[in]   timeout     timeout
234 227
 * @return                  An indicator whether the call was successfull
235 228
 */
236
inline apalExitStatus_t
237
ina219_lld_reset(const INA219Driver* const ina219, const apalTime_t timeout)
229
apalExitStatus_t ina219_lld_reset(const INA219Driver* const ina219, const apalTime_t timeout)
238 230
{
239 231
  apalDbgAssert(ina219 != NULL);
240 232

  
......
250 242
 * @param[in]   timeout     timeout
251 243
 * @return                  An indicator whether the call was successfull
252 244
 */
253
inline apalExitStatus_t
254
ina219_lld_read_shunt_voltage(const INA219Driver* const ina219, int32_t* const data, const apalTime_t timeout)
245
apalExitStatus_t ina219_lld_read_shunt_voltage(const INA219Driver* const ina219, int32_t* const data, const apalTime_t timeout)
255 246
{
256 247
  apalDbgAssert(ina219 != NULL);
257 248
  apalDbgAssert(data != NULL);
......
285 276
 * @param[in]   timeout     timeout
286 277
 * @return                  An indicator whether the call was successfull
287 278
 */
288
inline apalExitStatus_t
289
ina219_lld_read_bus_voltage(const INA219Driver* const ina219, uint32_t* const data, const apalTime_t timeout)
279
apalExitStatus_t ina219_lld_read_bus_voltage(const INA219Driver* const ina219, uint32_t* const data, const apalTime_t timeout)
290 280
{
291 281
  apalDbgAssert(ina219 != NULL);
292 282
  apalDbgAssert(data != NULL);
......
308 298
 * @param[in]   timeout     timeout
309 299
 * @return                  An indicator whether the call was successfull
310 300
 */
311
inline apalExitStatus_t
312
ina219_lld_read_power(const INA219Driver* const ina219, uint32_t* const data, const apalTime_t timeout)
301
apalExitStatus_t ina219_lld_read_power(const INA219Driver* const ina219, uint32_t* const data, const apalTime_t timeout)
313 302
{
314 303
  apalDbgAssert(ina219 != NULL);
315 304
  apalDbgAssert(data != NULL);
......
328 317
 * @param[in]   timeout     timeout
329 318
 * @return                  An indicator whether the call was successfull
330 319
 */
331
inline apalExitStatus_t
332
ina219_lld_read_current(const INA219Driver* const ina219, int16_t* const data, const apalTime_t timeout)
320
apalExitStatus_t ina219_lld_read_current(const INA219Driver* const ina219, int16_t* const data, const apalTime_t timeout)
333 321
{
334 322
  apalDbgAssert(ina219 != NULL);
335 323
  apalDbgAssert(data != NULL);
......
348 336
 * @param[in]   timeout     timeout
349 337
 * @return                  An indicator whether the call was successfull
350 338
 */
351
inline apalExitStatus_t
352
ina219_lld_bus_conversion_ready(const INA219Driver* const ina219, uint16_t* const buscnv, const apalTime_t timeout)
339
apalExitStatus_t ina219_lld_bus_conversion_ready(const INA219Driver* const ina219, uint16_t* const buscnv, const apalTime_t timeout)
353 340
{
354 341
  apalDbgAssert(ina219 != NULL);
355 342
  apalDbgAssert(buscnv != NULL);

Also available in: Unified diff