LibDriver AM2320
Loading...
Searching...
No Matches
am2320 extern driver function

am2320 extern driver modules More...

Collaboration diagram for am2320 extern driver function:

Functions

uint8_t am2320_set_get_reg (am2320_handle_t *handle, uint8_t *input_buf, uint16_t input_len, uint8_t *output_buf, uint16_t output_len)
 set and get the register value

Detailed Description

am2320 extern driver modules

Function Documentation

◆ am2320_set_get_reg()

uint8_t am2320_set_get_reg ( am2320_handle_t * handle,
uint8_t * input_buf,
uint16_t input_len,
uint8_t * output_buf,
uint16_t output_len )

set and get the register value

Parameters
[in]*handlepointer to an am2320 handle structure
[in]*input_bufpointer to an input data buffer
[in]input_lenlength of the input data buffer
[out]*output_bufpointer to an output data buffer
[in]output_lenlength of the output data buffer
Returns
status code
  • 0 success
  • 1 set get reg failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 gpio can't use this function
Note
only iic can use this function

Definition at line 1604 of file driver_am2320.c.