LibDriver AFS01
Loading...
Searching...
No Matches
afs01 extend driver function

afs01 extend driver modules More...

Collaboration diagram for afs01 extend driver function:

Functions

uint8_t si7021_get_reg (afs01_handle_t *handle, uint16_t reg, uint8_t *buf, uint16_t len)
 get chip register

Detailed Description

afs01 extend driver modules

Function Documentation

◆ si7021_get_reg()

uint8_t si7021_get_reg ( afs01_handle_t * handle,
uint16_t reg,
uint8_t * buf,
uint16_t len )

get chip register

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

Definition at line 308 of file driver_afs01.c.