LibDriver SYN6988  1.0.0
SYN6988 full-featured driver
syn6988 extend driver function

syn6988 extend driver modules More...

Functions

uint8_t syn6988_set_command (syn6988_handle_t *handle, uint8_t command, uint32_t timeout)
 send the command to the chip More...
 
uint8_t syn6988_set_command_with_arg (syn6988_handle_t *handle, uint8_t command, uint8_t param, char *txt, uint32_t timeout)
 send the command with arg to the chip More...
 

Detailed Description

syn6988 extend driver modules

Function Documentation

◆ syn6988_set_command()

uint8_t syn6988_set_command ( syn6988_handle_t handle,
uint8_t  command,
uint32_t  timeout 
)

send the command to the chip

Parameters
[in]*handlepointer to a syn6988 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 1185 of file driver_syn6988.c.

◆ syn6988_set_command_with_arg()

uint8_t syn6988_set_command_with_arg ( syn6988_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 syn6988 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 1100 of file driver_syn6988.c.