LibDriver AS608
Loading...
Searching...
No Matches
as608 extern driver function

as608 extern driver modules More...

Collaboration diagram for as608 extern driver function:

Functions

uint8_t as608_command_write_read (as608_handle_t *handle, uint32_t addr, uint8_t type, uint8_t *input_buffer, uint16_t input_len, uint16_t ms, uint8_t *output_buffer, uint16_t *output_len)
 write read data to chip

Detailed Description

as608 extern driver modules

Function Documentation

◆ as608_command_write_read()

uint8_t as608_command_write_read ( as608_handle_t * handle,
uint32_t addr,
uint8_t type,
uint8_t * input_buffer,
uint16_t input_len,
uint16_t ms,
uint8_t * output_buffer,
uint16_t * output_len )

write read data to chip

Parameters
[in]*handlepointer to an as608 handle structure
[in]addrchip address
[in]typeframe type
[in]*input_bufferpointer to an input buffer
[in]input_leninput length
[in]msdelay in ms
[out]*output_bufferpointer to an output buffer
[in,out]*output_lenpointer to an output length buffer
Returns
status code
  • 0 success
  • 1 command write read failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 decode error
  • 5 addr is invalid
Note
none

Definition at line 3453 of file driver_as608.c.