LibDriver SYN6658
Loading...
Searching...
No Matches
syn6658 extend driver function

syn6658 extend driver modules More...

Collaboration diagram for syn6658 extend driver function:

Functions

uint8_t syn6658_set_command (syn6658_handle_t *handle, uint8_t command, uint32_t timeout)
 send the command to the chip
uint8_t syn6658_set_command_with_arg (syn6658_handle_t *handle, uint8_t command, uint8_t param, char *txt, uint32_t timeout)
 send the command with arg to the chip

Detailed Description

syn6658 extend driver modules

Function Documentation

◆ syn6658_set_command()

uint8_t syn6658_set_command ( syn6658_handle_t * handle,
uint8_t command,
uint32_t timeout )

send the command to the chip

Parameters
[in]*handlepointer to a syn6658 handle structure
[in]commandset command
[in]timeouttimeout in ms
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 chip is busy
  • 5 uart read failed
Note
none

Definition at line 1284 of file driver_syn6658.c.

◆ syn6658_set_command_with_arg()

uint8_t syn6658_set_command_with_arg ( syn6658_handle_t * handle,
uint8_t command,
uint8_t param,
char * txt,
uint32_t timeout )

send the command with arg to the chip

Parameters
[in]*handlepointer to a syn6658 handle structure
[in]commandset command
[in]paramset param
[in]*txtpointer to a txt buffer
[in]timeouttimeout in ms
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 txt is too long
  • 5 chip is busy
  • 6 uart read failed
Note
none

Definition at line 1199 of file driver_syn6658.c.