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

syn6658 example driver modules More...

Collaboration diagram for syn6658 example driver function:

Macros

#define SYN6658_BASIC_SEND_CONFIG   0
 syn6658 basic send command configure
#define SYN6658_BASIC_DEFAULT_TEXT_TYPE   SYN6658_TYPE_GB2312
 syn6658 basic example default definition
#define SYN6658_BASIC_DEFAULT_SYNTHESIS_VOLUME   10
#define SYN6658_BASIC_DEFAULT_SYNTHESIS_SPEED   5
#define SYN6658_BASIC_DEFAULT_SYNTHESIS_SPEAKER   SYN6658_SPEAKER_XIAOLING

Functions

uint8_t syn6658_basic_init (syn6658_interface_t interface)
 basic example init
uint8_t syn6658_basic_deinit (void)
 basic example deinit
uint8_t syn6658_basic_synthesis (const char *const fmt,...)
 basic example synthesis
uint8_t syn6658_basic_sync (void)
 basic example sync
uint8_t syn6658_basic_stop (void)
 basic example stop
uint8_t syn6658_basic_pause (void)
 basic example pause
uint8_t syn6658_basic_resume (void)
 basic example resume
uint8_t syn6658_basic_standby (void)
 basic example standby
uint8_t syn6658_basic_wake_up (void)
 basic example wake up
uint8_t syn6658_basic_save_text (uint8_t offset, char *text)
 basic example save text
uint8_t syn6658_basic_play_text (uint8_t times, syn6658_type_t type)
 basic example play text

Detailed Description

syn6658 example driver modules

Macro Definition Documentation

◆ SYN6658_BASIC_DEFAULT_SYNTHESIS_SPEAKER

#define SYN6658_BASIC_DEFAULT_SYNTHESIS_SPEAKER   SYN6658_SPEAKER_XIAOLING

xiaoling

Definition at line 66 of file driver_syn6658_basic.h.

◆ SYN6658_BASIC_DEFAULT_SYNTHESIS_SPEED

#define SYN6658_BASIC_DEFAULT_SYNTHESIS_SPEED   5

synthesis speed 5

Definition at line 65 of file driver_syn6658_basic.h.

◆ SYN6658_BASIC_DEFAULT_SYNTHESIS_VOLUME

#define SYN6658_BASIC_DEFAULT_SYNTHESIS_VOLUME   10

synthesis volume 10

Definition at line 64 of file driver_syn6658_basic.h.

◆ SYN6658_BASIC_DEFAULT_TEXT_TYPE

#define SYN6658_BASIC_DEFAULT_TEXT_TYPE   SYN6658_TYPE_GB2312

syn6658 basic example default definition

gb2312 type

Definition at line 63 of file driver_syn6658_basic.h.

◆ SYN6658_BASIC_SEND_CONFIG

#define SYN6658_BASIC_SEND_CONFIG   0

syn6658 basic send command configure

don't send

Definition at line 57 of file driver_syn6658_basic.h.

Function Documentation

◆ syn6658_basic_deinit()

uint8_t syn6658_basic_deinit ( void )

basic example deinit

Returns
status code
  • 0 success
  • 1 deinit failed
Note
none

Definition at line 200 of file driver_syn6658_basic.c.

Here is the call graph for this function:

◆ syn6658_basic_init()

uint8_t syn6658_basic_init ( syn6658_interface_t interface)

basic example init

Parameters
[in]interfacechip interface
Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 49 of file driver_syn6658_basic.c.

Here is the call graph for this function:

◆ syn6658_basic_pause()

uint8_t syn6658_basic_pause ( void )

basic example pause

Returns
status code
  • 0 success
  • 1 pause failed
Note
none

Definition at line 236 of file driver_syn6658_basic.c.

Here is the call graph for this function:

◆ syn6658_basic_play_text()

uint8_t syn6658_basic_play_text ( uint8_t times,
syn6658_type_t type )

basic example play text

Parameters
[in]timesplay times
[in]typeencode type
Returns
status code
  • 0 success
  • 1 play text failed
Note
0 <= times <= 15

Definition at line 331 of file driver_syn6658_basic.c.

Here is the call graph for this function:

◆ syn6658_basic_resume()

uint8_t syn6658_basic_resume ( void )

basic example resume

Returns
status code
  • 0 success
  • 1 resume failed
Note
none

Definition at line 254 of file driver_syn6658_basic.c.

Here is the call graph for this function:

◆ syn6658_basic_save_text()

uint8_t syn6658_basic_save_text ( uint8_t offset,
char * text )

basic example save text

Parameters
[in]offsetbuffer offset
[in]*textpointer to a text buffer
Returns
status code
  • 0 success
  • 1 save text failed
Note
0 <= offset <= 15 text length <= ((16 - offset) * 256)

Definition at line 311 of file driver_syn6658_basic.c.

Here is the call graph for this function:

◆ syn6658_basic_standby()

uint8_t syn6658_basic_standby ( void )

basic example standby

Returns
status code
  • 0 success
  • 1 standby failed
Note
none

Definition at line 272 of file driver_syn6658_basic.c.

Here is the call graph for this function:

◆ syn6658_basic_stop()

uint8_t syn6658_basic_stop ( void )

basic example stop

Returns
status code
  • 0 success
  • 1 stop failed
Note
none

Definition at line 218 of file driver_syn6658_basic.c.

Here is the call graph for this function:

◆ syn6658_basic_sync()

uint8_t syn6658_basic_sync ( void )

basic example sync

Returns
status code
  • 0 success
  • 1 sync failed
Note
none

Definition at line 174 of file driver_syn6658_basic.c.

Here is the call graph for this function:

◆ syn6658_basic_synthesis()

uint8_t syn6658_basic_synthesis ( const char *const fmt,
... )

basic example synthesis

Parameters
[in]fmtformat data
Returns
status code
  • 0 success
  • 1 synthesis failed
Note
none

Definition at line 140 of file driver_syn6658_basic.c.

Here is the call graph for this function:

◆ syn6658_basic_wake_up()

uint8_t syn6658_basic_wake_up ( void )

basic example wake up

Returns
status code
  • 0 success
  • 1 wake up failed
Note
none

Definition at line 290 of file driver_syn6658_basic.c.

Here is the call graph for this function: