LibDriver CH9121
Loading...
Searching...
No Matches
ch9121 extend driver function

ch9121 extend driver modules More...

Collaboration diagram for ch9121 extend driver function:

Functions

uint8_t ch9121_set_command (ch9121_handle_t *handle, uint8_t *param, uint16_t len, uint8_t *out, uint16_t out_len, uint16_t pre_delay, uint16_t timeout)
 set command

Detailed Description

ch9121 extend driver modules

Function Documentation

◆ ch9121_set_command()

uint8_t ch9121_set_command ( ch9121_handle_t * handle,
uint8_t * param,
uint16_t len,
uint8_t * out,
uint16_t out_len,
uint16_t pre_delay,
uint16_t timeout )

set command

Parameters
[in]*handlepointer to a ch9121 handle structure
[in]*parampointer to a param buffer
[in]lenparam length
[out]*outpointer to an out buffer
[in]out_lenoutput length
[in]pre_delaydelay in ms
[in]timeouttimeout in ms
Returns
status code
  • 0 success
  • 1 set command failed
  • 2 handle is NULL
  • 3 linked functions is NULL
Note
none

Definition at line 2000 of file driver_ch9121.c.