LibDriver SYN6288E
Loading...
Searching...
No Matches
syn6288e advance driver function

syn6288e advance driver modules More...

Collaboration diagram for syn6288e advance driver function:

Enumerations

enum  syn6288e_mode_t {
  SYN6288E_MODE_COMMON = (0x00) , SYN6288E_MODE_BACKGROUND_1 = (1 << 3) , SYN6288E_MODE_BACKGROUND_2 = (2 << 3) , SYN6288E_MODE_BACKGROUND_3 = (3 << 3) ,
  SYN6288E_MODE_BACKGROUND_4 = (4 << 3) , SYN6288E_MODE_BACKGROUND_5 = (5 << 3) , SYN6288E_MODE_BACKGROUND_6 = (6 << 3) , SYN6288E_MODE_BACKGROUND_7 = (7 << 3) ,
  SYN6288E_MODE_BACKGROUND_8 = (8 << 3) , SYN6288E_MODE_BACKGROUND_9 = (9 << 3) , SYN6288E_MODE_BACKGROUND_10 = (10 << 3) , SYN6288E_MODE_BACKGROUND_11 = (11 << 3) ,
  SYN6288E_MODE_BACKGROUND_12 = (12 << 3) , SYN6288E_MODE_BACKGROUND_13 = (13 << 3) , SYN6288E_MODE_BACKGROUND_14 = (14 << 3) , SYN6288E_MODE_BACKGROUND_15 = (15 << 3)
}
 syn6288e mode enumeration definition More...
enum  syn6288e_baud_rate_t { SYN6288E_BAUD_RATE_9600_BPS = 0x00 , SYN6288E_BAUD_RATE_19200_BPS = 0x01 , SYN6288E_BAUD_RATE_38400_BPS = 0x02 }
 syn6288e baud rate enumeration definition More...

Functions

uint8_t syn6288e_set_baud_rate (syn6288e_handle_t *handle, syn6288e_baud_rate_t rate)
 set the baud rate
uint8_t syn6288e_get_baud_rate (syn6288e_handle_t *handle, syn6288e_baud_rate_t *rate)
 get the baud rate
uint8_t syn6288e_set_mode (syn6288e_handle_t *handle, syn6288e_mode_t mode)
 set the chip mode
uint8_t syn6288e_get_mode (syn6288e_handle_t *handle, syn6288e_mode_t *mode)
 get the chip mode
uint8_t syn6288e_set_synthesis_volume (syn6288e_handle_t *handle, uint8_t volume)
 set the chip synthesis volume
uint8_t syn6288e_get_synthesis_volume (syn6288e_handle_t *handle, uint8_t *volume)
 get the chip synthesis volume
uint8_t syn6288e_set_background_volume (syn6288e_handle_t *handle, uint8_t volume)
 set the synthesis background volume
uint8_t syn6288e_get_background_volume (syn6288e_handle_t *handle, uint8_t *volume)
 get the chip synthesis background volume
uint8_t syn6288e_set_synthesis_speed (syn6288e_handle_t *handle, uint8_t speed)
 set the synthesis speed
uint8_t syn6288e_get_synthesis_speed (syn6288e_handle_t *handle, uint8_t *speed)
 get the synthesis speed

Detailed Description

syn6288e advance driver modules

Enumeration Type Documentation

◆ syn6288e_baud_rate_t

syn6288e baud rate enumeration definition

Enumerator
SYN6288E_BAUD_RATE_9600_BPS 

9600 bps

SYN6288E_BAUD_RATE_19200_BPS 

19200 bps

SYN6288E_BAUD_RATE_38400_BPS 

38400 bps

Definition at line 184 of file driver_syn6288e.h.

◆ syn6288e_mode_t

syn6288e mode enumeration definition

Enumerator
SYN6288E_MODE_COMMON 

common

SYN6288E_MODE_BACKGROUND_1 

background 1

SYN6288E_MODE_BACKGROUND_2 

background 2

SYN6288E_MODE_BACKGROUND_3 

background 3

SYN6288E_MODE_BACKGROUND_4 

background 4

SYN6288E_MODE_BACKGROUND_5 

background 5

SYN6288E_MODE_BACKGROUND_6 

background 6

SYN6288E_MODE_BACKGROUND_7 

background 7

SYN6288E_MODE_BACKGROUND_8 

background 8

SYN6288E_MODE_BACKGROUND_9 

background 9

SYN6288E_MODE_BACKGROUND_10 

background 10

SYN6288E_MODE_BACKGROUND_11 

background 11

SYN6288E_MODE_BACKGROUND_12 

background 12

SYN6288E_MODE_BACKGROUND_13 

background 13

SYN6288E_MODE_BACKGROUND_14 

background 14

SYN6288E_MODE_BACKGROUND_15 

background 15

Definition at line 160 of file driver_syn6288e.h.

Function Documentation

◆ syn6288e_get_background_volume()

uint8_t syn6288e_get_background_volume ( syn6288e_handle_t * handle,
uint8_t * volume )

get the chip synthesis background volume

Parameters
[in]*handlepointer to a syn6288e handle structure
[out]*volumepointer to a synthesis background volume buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1138 of file driver_syn6288e.c.

◆ syn6288e_get_baud_rate()

uint8_t syn6288e_get_baud_rate ( syn6288e_handle_t * handle,
syn6288e_baud_rate_t * rate )

get the baud rate

Parameters
[in]*handlepointer to a syn6288e handle structure
[out]*ratepointer to a baud rate buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 607 of file driver_syn6288e.c.

◆ syn6288e_get_mode()

uint8_t syn6288e_get_mode ( syn6288e_handle_t * handle,
syn6288e_mode_t * mode )

get the chip mode

Parameters
[in]*handlepointer to a syn6288e handle structure
[out]*modepointer to a chip mode buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 659 of file driver_syn6288e.c.

◆ syn6288e_get_synthesis_speed()

uint8_t syn6288e_get_synthesis_speed ( syn6288e_handle_t * handle,
uint8_t * speed )

get the synthesis speed

Parameters
[in]*handlepointer to a syn6288e handle structure
[out]*speedpointer to a synthesis speed
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1193 of file driver_syn6288e.c.

◆ syn6288e_get_synthesis_volume()

uint8_t syn6288e_get_synthesis_volume ( syn6288e_handle_t * handle,
uint8_t * volume )

get the chip synthesis volume

Parameters
[in]*handlepointer to a syn6288e handle structure
[out]*volumepointer to a synthesis volume buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1083 of file driver_syn6288e.c.

◆ syn6288e_set_background_volume()

uint8_t syn6288e_set_background_volume ( syn6288e_handle_t * handle,
uint8_t volume )

set the synthesis background volume

Parameters
[in]*handlepointer to a syn6288e handle structure
[in]volumebackground volume
Returns
status code
  • 0 success
  • 1 set background volume failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1110 of file driver_syn6288e.c.

Here is the call graph for this function:

◆ syn6288e_set_baud_rate()

uint8_t syn6288e_set_baud_rate ( syn6288e_handle_t * handle,
syn6288e_baud_rate_t rate )

set the baud rate

Parameters
[in]*handlepointer to a syn6288e handle structure
[in]ratebaud rate
Returns
status code
  • 0 success
  • 1 set baud rate failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 508 of file driver_syn6288e.c.

◆ syn6288e_set_mode()

uint8_t syn6288e_set_mode ( syn6288e_handle_t * handle,
syn6288e_mode_t mode )

set the chip mode

Parameters
[in]*handlepointer to a syn6288e handle structure
[in]modechip mode
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 633 of file driver_syn6288e.c.

◆ syn6288e_set_synthesis_speed()

uint8_t syn6288e_set_synthesis_speed ( syn6288e_handle_t * handle,
uint8_t speed )

set the synthesis speed

Parameters
[in]*handlepointer to a syn6288e handle structure
[in]speedsynthesis speed
Returns
status code
  • 0 success
  • 1 set synthesis speed failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1165 of file driver_syn6288e.c.

Here is the call graph for this function:

◆ syn6288e_set_synthesis_volume()

uint8_t syn6288e_set_synthesis_volume ( syn6288e_handle_t * handle,
uint8_t volume )

set the chip synthesis volume

Parameters
[in]*handlepointer to a syn6288e handle structure
[in]volumesynthesis volume
Returns
status code
  • 0 success
  • 1 set synthesis volume failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1055 of file driver_syn6288e.c.

Here is the call graph for this function: