LibDriver AD7705
Loading...
Searching...
No Matches
ad7705 extern driver function

ad7705 extern driver modules More...

Collaboration diagram for ad7705 extern driver function:

Functions

uint8_t ad7705_set_reg (ad7705_handle_t *handle, uint8_t addr, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t ad7705_get_reg (ad7705_handle_t *handle, uint8_t addr, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

ad7705 extern driver modules

Function Documentation

◆ ad7705_get_reg()

uint8_t ad7705_get_reg ( ad7705_handle_t * handle,
uint8_t addr,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to an ad7705 handle structure
[in]addraddress
[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 1617 of file driver_ad7705.c.

◆ ad7705_set_reg()

uint8_t ad7705_set_reg ( ad7705_handle_t * handle,
uint8_t addr,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to an ad7705 handle structure
[in]addraddress
[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 1585 of file driver_ad7705.c.