LibDriver ADS1110
Loading...
Searching...
No Matches
ads1110 extend driver function

ads1110 extend driver modules More...

Collaboration diagram for ads1110 extend driver function:

Functions

uint8_t ads1110_set_reg (ads1110_handle_t *handle, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t ads1110_get_reg (ads1110_handle_t *handle, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

ads1110 extend driver modules

Function Documentation

◆ ads1110_get_reg()

uint8_t ads1110_get_reg ( ads1110_handle_t * handle,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to an ads1110 handle structure
[out]*bufpointer to a data buffer
[in]lenbuffer length
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 746 of file driver_ads1110.c.

◆ ads1110_set_reg()

uint8_t ads1110_set_reg ( ads1110_handle_t * handle,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to an ads1110 handle structure
[in]*bufpointer to a data buffer
[in]lenbuffer length
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 720 of file driver_ads1110.c.