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

syn6658 base driver modules More...

Collaboration diagram for syn6658 base driver function:

Data Structures

struct  syn6658_handle_s
 syn6658 handle structure definition More...
struct  syn6658_info_s
 syn6658 information structure definition More...

Macros

#define SYN6658_BUSY_TIMEOUT   1000
 syn6658 timeout definition
#define SYN6658_SOUND_101   "sound101"
 syn6658 sound enumeration definition
#define SYN6658_SOUND_102   "sound102"
#define SYN6658_SOUND_103   "sound103"
#define SYN6658_SOUND_104   "sound104"
#define SYN6658_SOUND_105   "sound105"
#define SYN6658_SOUND_106   "sound106"
#define SYN6658_SOUND_107   "sound107"
#define SYN6658_SOUND_108   "sound108"
#define SYN6658_SOUND_109   "sound109"
#define SYN6658_SOUND_110   "sound110"
#define SYN6658_SOUND_111   "sound111"
#define SYN6658_SOUND_112   "sound112"
#define SYN6658_SOUND_113   "sound113"
#define SYN6658_SOUND_114   "sound114"
#define SYN6658_SOUND_115   "sound115"
#define SYN6658_SOUND_116   "sound116"
#define SYN6658_SOUND_117   "sound117"
#define SYN6658_SOUND_118   "sound118"
#define SYN6658_SOUND_119   "sound119"
#define SYN6658_SOUND_120   "sound120"
#define SYN6658_SOUND_121   "sound121"
#define SYN6658_SOUND_122   "sound122"
#define SYN6658_SOUND_123   "sound123"
#define SYN6658_SOUND_124   "sound124"
#define SYN6658_SOUND_201   "sound201"
#define SYN6658_SOUND_202   "sound202"
#define SYN6658_SOUND_203   "sound203"
#define SYN6658_SOUND_204   "sound204"
#define SYN6658_SOUND_205   "sound205"
#define SYN6658_SOUND_206   "sound206"
#define SYN6658_SOUND_207   "sound207"
#define SYN6658_SOUND_208   "sound208"
#define SYN6658_SOUND_209   "sound209"
#define SYN6658_SOUND_210   "sound210"
#define SYN6658_SOUND_211   "sound211"
#define SYN6658_SOUND_212   "sound212"
#define SYN6658_SOUND_213   "sound213"
#define SYN6658_SOUND_214   "sound214"
#define SYN6658_SOUND_215   "sound215"
#define SYN6658_SOUND_216   "sound216"
#define SYN6658_SOUND_217   "sound217"
#define SYN6658_SOUND_218   "sound218"
#define SYN6658_SOUND_219   "sound219"
#define SYN6658_SOUND_301   "sound301"
#define SYN6658_SOUND_302   "sound302"
#define SYN6658_SOUND_303   "sound303"
#define SYN6658_SOUND_304   "sound304"
#define SYN6658_SOUND_305   "sound305"
#define SYN6658_SOUND_306   "sound306"
#define SYN6658_SOUND_307   "sound307"
#define SYN6658_SOUND_308   "sound308"
#define SYN6658_SOUND_309   "sound309"
#define SYN6658_SOUND_310   "sound310"
#define SYN6658_SOUND_311   "sound311"
#define SYN6658_SOUND_312   "sound312"
#define SYN6658_SOUND_313   "sound313"
#define SYN6658_SOUND_314   "sound314"
#define SYN6658_SOUND_315   "sound315"
#define SYN6658_SOUND_316   "sound316"
#define SYN6658_SOUND_317   "sound317"
#define SYN6658_SOUND_318   "sound318"
#define SYN6658_SOUND_319   "sound319"
#define SYN6658_SOUND_401   "sound401"
#define SYN6658_SOUND_402   "sound402"
#define SYN6658_SOUND_403   "sound403"
#define SYN6658_SOUND_404   "sound404"
#define SYN6658_SOUND_405   "sound405"
#define SYN6658_SOUND_406   "sound406"
#define SYN6658_SOUND_407   "sound407"
#define SYN6658_SOUND_408   "sound408"
#define SYN6658_SOUND_501   "sound501"
#define SYN6658_SOUND_502   "sound502"
#define SYN6658_SOUND_503   "sound503"
#define SYN6658_SOUND_504   "sound504"
#define SYN6658_SOUND_505   "sound505"
#define SYN6658_SOUND_506   "sound506"
#define SYN6658_SOUND_507   "sound507"
#define SYN6658_SOUND_601   "sound601"
#define SYN6658_SOUND_602   "sound602"
#define SYN6658_SOUND_701   "sound701"
#define SYN6658_SOUND_702   "sound702"
#define SYN6658_SOUND_703   "sound703"
#define SYN6658_SOUND_704   "sound704"
#define SYN6658_SOUND_705   "sound705"
#define SYN6658_SOUND_706   "sound706"
#define SYN6658_SOUND_707   "sound707"
#define SYN6658_SOUND_708   "sound708"
#define SYN6658_SOUND_709   "sound709"
#define SYN6658_SOUND_710   "sound710"
#define SYN6658_SOUND_711   "sound711"
#define SYN6658_SOUND_712   "sound712"
#define SYN6658_SOUND_713   "sound713"
#define SYN6658_SOUND_714   "sound714"
#define SYN6658_SOUND_715   "sound715"
#define SYN6658_SOUND_716   "sound716"
#define SYN6658_SOUND_717   "sound717"
#define SYN6658_SOUND_718   "sound718"
#define SYN6658_SOUND_719   "sound719"
#define SYN6658_MESSAGE_A   "msga"
 syn6658 message enumeration definition
#define SYN6658_MESSAGE_B   "msgb"
#define SYN6658_MESSAGE_C   "msgc"
#define SYN6658_MESSAGE_D   "msgd"
#define SYN6658_MESSAGE_E   "msge"
#define SYN6658_MESSAGE_F   "msgf"
#define SYN6658_MESSAGE_G   "msgg"
#define SYN6658_MESSAGE_H   "msgh"
#define SYN6658_MESSAGE_I   "msgi"
#define SYN6658_MESSAGE_J   "msgj"
#define SYN6658_MESSAGE_K   "msgk"
#define SYN6658_MESSAGE_L   "msgl"
#define SYN6658_MESSAGE_M   "msgm"
#define SYN6658_MESSAGE_N   "msgn"

Typedefs

typedef struct syn6658_handle_s syn6658_handle_t
 syn6658 handle structure definition
typedef struct syn6658_info_s syn6658_info_t
 syn6658 information structure definition

Enumerations

enum  syn6658_interface_t { SYN6658_INTERFACE_UART = 0x00 , SYN6658_INTERFACE_SPI = 0x01 }
 syn6658 interface enumeration definition More...
enum  syn6658_type_t {
  SYN6658_TYPE_GB2312 = 0x00 , SYN6658_TYPE_GBK = 0x01 , SYN6658_TYPE_BIG5 = 0x02 , SYN6658_TYPE_UNICODE_LITTLE = 0x03 ,
  SYN6658_TYPE_UNICODE_BIG = 0x04
}
 syn6658 type enumeration definition More...
enum  syn6658_status_t { SYN6658_STATUS_OK = 0x00 , SYN6658_STATUS_BUSY = 0x01 }
 syn6658 status enumeration definition More...
enum  syn6658_speaker_t {
  SYN6658_SPEAKER_XIAOLING = 3 , SYN6658_SPEAKER_YIXIAOJIAN = 51 , SYN6658_SPEAKER_YIXIAOQIANG = 52 , SYN6658_SPEAKER_TIANPEIPEI = 53 ,
  SYN6658_SPEAKER_TANGLAOYA = 54 , SYN6658_SPEAKER_XIAOYANZI = 55
}
 syn6658 speaker enumeration definition More...

Functions

uint8_t syn6658_info (syn6658_info_t *info)
 get chip's information
uint8_t syn6658_set_interface (syn6658_handle_t *handle, syn6658_interface_t interface)
 set the chip interface
uint8_t syn6658_get_interface (syn6658_handle_t *handle, syn6658_interface_t *interface)
 get the chip interface
uint8_t syn6658_init (syn6658_handle_t *handle)
 initialize the chip
uint8_t syn6658_deinit (syn6658_handle_t *handle)
 close the chip
uint8_t syn6658_set_text_type (syn6658_handle_t *handle, syn6658_type_t type)
 set the chip text type
uint8_t syn6658_get_text_type (syn6658_handle_t *handle, syn6658_type_t *type)
 get the chip text type
uint8_t syn6658_synthesis_text (syn6658_handle_t *handle, const char *const fmt,...)
 synthesis the test
uint8_t syn6658_get_status (syn6658_handle_t *handle, syn6658_status_t *status)
 get the current status
uint8_t syn6658_stop (syn6658_handle_t *handle)
 stop the chip
uint8_t syn6658_pause (syn6658_handle_t *handle)
 pause the chip
uint8_t syn6658_resume (syn6658_handle_t *handle)
 resume the chip
uint8_t syn6658_standby (syn6658_handle_t *handle)
 set the chip to standby mode
uint8_t syn6658_wake_up (syn6658_handle_t *handle)
 wake up the chip
uint8_t syn6658_set_synthesis_volume (syn6658_handle_t *handle, uint8_t volume)
 set the chip synthesis volume
uint8_t syn6658_set_synthesis_speed (syn6658_handle_t *handle, uint8_t speed)
 set the synthesis speed
uint8_t syn6658_set_synthesis_speaker (syn6658_handle_t *handle, syn6658_speaker_t speaker)
 set the synthesis speaker
uint8_t syn6658_save_text (syn6658_handle_t *handle, uint8_t offset, char *text)
 save text to the buffer
uint8_t syn6658_play_text (syn6658_handle_t *handle, uint8_t times, syn6658_type_t type)
 play text

Detailed Description

syn6658 base driver modules

Macro Definition Documentation

◆ SYN6658_BUSY_TIMEOUT

#define SYN6658_BUSY_TIMEOUT   1000

syn6658 timeout definition

1000ms

Definition at line 63 of file driver_syn6658.h.

◆ SYN6658_MESSAGE_A

#define SYN6658_MESSAGE_A   "msga"

syn6658 message enumeration definition

message A

Definition at line 171 of file driver_syn6658.h.

◆ SYN6658_MESSAGE_B

#define SYN6658_MESSAGE_B   "msgb"

message B

Definition at line 172 of file driver_syn6658.h.

◆ SYN6658_MESSAGE_C

#define SYN6658_MESSAGE_C   "msgc"

message C

Definition at line 173 of file driver_syn6658.h.

◆ SYN6658_MESSAGE_D

#define SYN6658_MESSAGE_D   "msgd"

message D

Definition at line 174 of file driver_syn6658.h.

◆ SYN6658_MESSAGE_E

#define SYN6658_MESSAGE_E   "msge"

message E

Definition at line 175 of file driver_syn6658.h.

◆ SYN6658_MESSAGE_F

#define SYN6658_MESSAGE_F   "msgf"

message F

Definition at line 176 of file driver_syn6658.h.

◆ SYN6658_MESSAGE_G

#define SYN6658_MESSAGE_G   "msgg"

message G

Definition at line 177 of file driver_syn6658.h.

◆ SYN6658_MESSAGE_H

#define SYN6658_MESSAGE_H   "msgh"

message H

Definition at line 178 of file driver_syn6658.h.

◆ SYN6658_MESSAGE_I

#define SYN6658_MESSAGE_I   "msgi"

message I

Definition at line 179 of file driver_syn6658.h.

◆ SYN6658_MESSAGE_J

#define SYN6658_MESSAGE_J   "msgj"

message J

Definition at line 180 of file driver_syn6658.h.

◆ SYN6658_MESSAGE_K

#define SYN6658_MESSAGE_K   "msgk"

message K

Definition at line 181 of file driver_syn6658.h.

◆ SYN6658_MESSAGE_L

#define SYN6658_MESSAGE_L   "msgl"

message L

Definition at line 182 of file driver_syn6658.h.

◆ SYN6658_MESSAGE_M

#define SYN6658_MESSAGE_M   "msgm"

message M

Definition at line 183 of file driver_syn6658.h.

◆ SYN6658_MESSAGE_N

#define SYN6658_MESSAGE_N   "msgn"

message N

Definition at line 184 of file driver_syn6658.h.

◆ SYN6658_SOUND_101

#define SYN6658_SOUND_101   "sound101"

syn6658 sound enumeration definition

sound101

Definition at line 69 of file driver_syn6658.h.

◆ SYN6658_SOUND_102

#define SYN6658_SOUND_102   "sound102"

sound102

Definition at line 70 of file driver_syn6658.h.

◆ SYN6658_SOUND_103

#define SYN6658_SOUND_103   "sound103"

sound103

Definition at line 71 of file driver_syn6658.h.

◆ SYN6658_SOUND_104

#define SYN6658_SOUND_104   "sound104"

sound104

Definition at line 72 of file driver_syn6658.h.

◆ SYN6658_SOUND_105

#define SYN6658_SOUND_105   "sound105"

sound105

Definition at line 73 of file driver_syn6658.h.

◆ SYN6658_SOUND_106

#define SYN6658_SOUND_106   "sound106"

sound106

Definition at line 74 of file driver_syn6658.h.

◆ SYN6658_SOUND_107

#define SYN6658_SOUND_107   "sound107"

sound107

Definition at line 75 of file driver_syn6658.h.

◆ SYN6658_SOUND_108

#define SYN6658_SOUND_108   "sound108"

sound108

Definition at line 76 of file driver_syn6658.h.

◆ SYN6658_SOUND_109

#define SYN6658_SOUND_109   "sound109"

sound109

Definition at line 77 of file driver_syn6658.h.

◆ SYN6658_SOUND_110

#define SYN6658_SOUND_110   "sound110"

sound110

Definition at line 78 of file driver_syn6658.h.

◆ SYN6658_SOUND_111

#define SYN6658_SOUND_111   "sound111"

sound111

Definition at line 79 of file driver_syn6658.h.

◆ SYN6658_SOUND_112

#define SYN6658_SOUND_112   "sound112"

sound112

Definition at line 80 of file driver_syn6658.h.

◆ SYN6658_SOUND_113

#define SYN6658_SOUND_113   "sound113"

sound113

Definition at line 81 of file driver_syn6658.h.

◆ SYN6658_SOUND_114

#define SYN6658_SOUND_114   "sound114"

sound114

Definition at line 82 of file driver_syn6658.h.

◆ SYN6658_SOUND_115

#define SYN6658_SOUND_115   "sound115"

sound115

Definition at line 83 of file driver_syn6658.h.

◆ SYN6658_SOUND_116

#define SYN6658_SOUND_116   "sound116"

sound116

Definition at line 84 of file driver_syn6658.h.

◆ SYN6658_SOUND_117

#define SYN6658_SOUND_117   "sound117"

sound117

Definition at line 85 of file driver_syn6658.h.

◆ SYN6658_SOUND_118

#define SYN6658_SOUND_118   "sound118"

sound118

Definition at line 86 of file driver_syn6658.h.

◆ SYN6658_SOUND_119

#define SYN6658_SOUND_119   "sound119"

sound119

Definition at line 87 of file driver_syn6658.h.

◆ SYN6658_SOUND_120

#define SYN6658_SOUND_120   "sound120"

sound120

Definition at line 88 of file driver_syn6658.h.

◆ SYN6658_SOUND_121

#define SYN6658_SOUND_121   "sound121"

sound121

Definition at line 89 of file driver_syn6658.h.

◆ SYN6658_SOUND_122

#define SYN6658_SOUND_122   "sound122"

sound122

Definition at line 90 of file driver_syn6658.h.

◆ SYN6658_SOUND_123

#define SYN6658_SOUND_123   "sound123"

sound123

Definition at line 91 of file driver_syn6658.h.

◆ SYN6658_SOUND_124

#define SYN6658_SOUND_124   "sound124"

sound124

Definition at line 92 of file driver_syn6658.h.

◆ SYN6658_SOUND_201

#define SYN6658_SOUND_201   "sound201"

sound201

Definition at line 93 of file driver_syn6658.h.

◆ SYN6658_SOUND_202

#define SYN6658_SOUND_202   "sound202"

sound202

Definition at line 94 of file driver_syn6658.h.

◆ SYN6658_SOUND_203

#define SYN6658_SOUND_203   "sound203"

sound203

Definition at line 95 of file driver_syn6658.h.

◆ SYN6658_SOUND_204

#define SYN6658_SOUND_204   "sound204"

sound204

Definition at line 96 of file driver_syn6658.h.

◆ SYN6658_SOUND_205

#define SYN6658_SOUND_205   "sound205"

sound205

Definition at line 97 of file driver_syn6658.h.

◆ SYN6658_SOUND_206

#define SYN6658_SOUND_206   "sound206"

sound206

Definition at line 98 of file driver_syn6658.h.

◆ SYN6658_SOUND_207

#define SYN6658_SOUND_207   "sound207"

sound207

Definition at line 99 of file driver_syn6658.h.

◆ SYN6658_SOUND_208

#define SYN6658_SOUND_208   "sound208"

sound208

Definition at line 100 of file driver_syn6658.h.

◆ SYN6658_SOUND_209

#define SYN6658_SOUND_209   "sound209"

sound209

Definition at line 101 of file driver_syn6658.h.

◆ SYN6658_SOUND_210

#define SYN6658_SOUND_210   "sound210"

sound210

Definition at line 102 of file driver_syn6658.h.

◆ SYN6658_SOUND_211

#define SYN6658_SOUND_211   "sound211"

sound211

Definition at line 103 of file driver_syn6658.h.

◆ SYN6658_SOUND_212

#define SYN6658_SOUND_212   "sound212"

sound212

Definition at line 104 of file driver_syn6658.h.

◆ SYN6658_SOUND_213

#define SYN6658_SOUND_213   "sound213"

sound213

Definition at line 105 of file driver_syn6658.h.

◆ SYN6658_SOUND_214

#define SYN6658_SOUND_214   "sound214"

sound214

Definition at line 106 of file driver_syn6658.h.

◆ SYN6658_SOUND_215

#define SYN6658_SOUND_215   "sound215"

sound215

Definition at line 107 of file driver_syn6658.h.

◆ SYN6658_SOUND_216

#define SYN6658_SOUND_216   "sound216"

sound216

Definition at line 108 of file driver_syn6658.h.

◆ SYN6658_SOUND_217

#define SYN6658_SOUND_217   "sound217"

sound217

Definition at line 109 of file driver_syn6658.h.

◆ SYN6658_SOUND_218

#define SYN6658_SOUND_218   "sound218"

sound218

Definition at line 110 of file driver_syn6658.h.

◆ SYN6658_SOUND_219

#define SYN6658_SOUND_219   "sound219"

sound219

Definition at line 111 of file driver_syn6658.h.

◆ SYN6658_SOUND_301

#define SYN6658_SOUND_301   "sound301"

sound301

Definition at line 112 of file driver_syn6658.h.

◆ SYN6658_SOUND_302

#define SYN6658_SOUND_302   "sound302"

sound302

Definition at line 113 of file driver_syn6658.h.

◆ SYN6658_SOUND_303

#define SYN6658_SOUND_303   "sound303"

sound303

Definition at line 114 of file driver_syn6658.h.

◆ SYN6658_SOUND_304

#define SYN6658_SOUND_304   "sound304"

sound304

Definition at line 115 of file driver_syn6658.h.

◆ SYN6658_SOUND_305

#define SYN6658_SOUND_305   "sound305"

sound305

Definition at line 116 of file driver_syn6658.h.

◆ SYN6658_SOUND_306

#define SYN6658_SOUND_306   "sound306"

sound306

Definition at line 117 of file driver_syn6658.h.

◆ SYN6658_SOUND_307

#define SYN6658_SOUND_307   "sound307"

sound307

Definition at line 118 of file driver_syn6658.h.

◆ SYN6658_SOUND_308

#define SYN6658_SOUND_308   "sound308"

sound308

Definition at line 119 of file driver_syn6658.h.

◆ SYN6658_SOUND_309

#define SYN6658_SOUND_309   "sound309"

sound309

Definition at line 120 of file driver_syn6658.h.

◆ SYN6658_SOUND_310

#define SYN6658_SOUND_310   "sound310"

sound310

Definition at line 121 of file driver_syn6658.h.

◆ SYN6658_SOUND_311

#define SYN6658_SOUND_311   "sound311"

sound311

Definition at line 122 of file driver_syn6658.h.

◆ SYN6658_SOUND_312

#define SYN6658_SOUND_312   "sound312"

sound312

Definition at line 123 of file driver_syn6658.h.

◆ SYN6658_SOUND_313

#define SYN6658_SOUND_313   "sound313"

sound313

Definition at line 124 of file driver_syn6658.h.

◆ SYN6658_SOUND_314

#define SYN6658_SOUND_314   "sound314"

sound314

Definition at line 125 of file driver_syn6658.h.

◆ SYN6658_SOUND_315

#define SYN6658_SOUND_315   "sound315"

sound315

Definition at line 126 of file driver_syn6658.h.

◆ SYN6658_SOUND_316

#define SYN6658_SOUND_316   "sound316"

sound316

Definition at line 127 of file driver_syn6658.h.

◆ SYN6658_SOUND_317

#define SYN6658_SOUND_317   "sound317"

sound317

Definition at line 128 of file driver_syn6658.h.

◆ SYN6658_SOUND_318

#define SYN6658_SOUND_318   "sound318"

sound318

Definition at line 129 of file driver_syn6658.h.

◆ SYN6658_SOUND_319

#define SYN6658_SOUND_319   "sound319"

sound319

Definition at line 130 of file driver_syn6658.h.

◆ SYN6658_SOUND_401

#define SYN6658_SOUND_401   "sound401"

sound401

Definition at line 131 of file driver_syn6658.h.

◆ SYN6658_SOUND_402

#define SYN6658_SOUND_402   "sound402"

sound402

Definition at line 132 of file driver_syn6658.h.

◆ SYN6658_SOUND_403

#define SYN6658_SOUND_403   "sound403"

sound403

Definition at line 133 of file driver_syn6658.h.

◆ SYN6658_SOUND_404

#define SYN6658_SOUND_404   "sound404"

sound404

Definition at line 134 of file driver_syn6658.h.

◆ SYN6658_SOUND_405

#define SYN6658_SOUND_405   "sound405"

sound405

Definition at line 135 of file driver_syn6658.h.

◆ SYN6658_SOUND_406

#define SYN6658_SOUND_406   "sound406"

sound406

Definition at line 136 of file driver_syn6658.h.

◆ SYN6658_SOUND_407

#define SYN6658_SOUND_407   "sound407"

sound407

Definition at line 137 of file driver_syn6658.h.

◆ SYN6658_SOUND_408

#define SYN6658_SOUND_408   "sound408"

sound408

Definition at line 138 of file driver_syn6658.h.

◆ SYN6658_SOUND_501

#define SYN6658_SOUND_501   "sound501"

sound501

Definition at line 139 of file driver_syn6658.h.

◆ SYN6658_SOUND_502

#define SYN6658_SOUND_502   "sound502"

sound502

Definition at line 140 of file driver_syn6658.h.

◆ SYN6658_SOUND_503

#define SYN6658_SOUND_503   "sound503"

sound503

Definition at line 141 of file driver_syn6658.h.

◆ SYN6658_SOUND_504

#define SYN6658_SOUND_504   "sound504"

sound504

Definition at line 142 of file driver_syn6658.h.

◆ SYN6658_SOUND_505

#define SYN6658_SOUND_505   "sound505"

sound505

Definition at line 143 of file driver_syn6658.h.

◆ SYN6658_SOUND_506

#define SYN6658_SOUND_506   "sound506"

sound506

Definition at line 144 of file driver_syn6658.h.

◆ SYN6658_SOUND_507

#define SYN6658_SOUND_507   "sound507"

sound507

Definition at line 145 of file driver_syn6658.h.

◆ SYN6658_SOUND_601

#define SYN6658_SOUND_601   "sound601"

sound601

Definition at line 146 of file driver_syn6658.h.

◆ SYN6658_SOUND_602

#define SYN6658_SOUND_602   "sound602"

sound602

Definition at line 147 of file driver_syn6658.h.

◆ SYN6658_SOUND_701

#define SYN6658_SOUND_701   "sound701"

sound701

Definition at line 148 of file driver_syn6658.h.

◆ SYN6658_SOUND_702

#define SYN6658_SOUND_702   "sound702"

sound702

Definition at line 149 of file driver_syn6658.h.

◆ SYN6658_SOUND_703

#define SYN6658_SOUND_703   "sound703"

sound703

Definition at line 150 of file driver_syn6658.h.

◆ SYN6658_SOUND_704

#define SYN6658_SOUND_704   "sound704"

sound704

Definition at line 151 of file driver_syn6658.h.

◆ SYN6658_SOUND_705

#define SYN6658_SOUND_705   "sound705"

sound705

Definition at line 152 of file driver_syn6658.h.

◆ SYN6658_SOUND_706

#define SYN6658_SOUND_706   "sound706"

sound706

Definition at line 153 of file driver_syn6658.h.

◆ SYN6658_SOUND_707

#define SYN6658_SOUND_707   "sound707"

sound707

Definition at line 154 of file driver_syn6658.h.

◆ SYN6658_SOUND_708

#define SYN6658_SOUND_708   "sound708"

sound708

Definition at line 155 of file driver_syn6658.h.

◆ SYN6658_SOUND_709

#define SYN6658_SOUND_709   "sound709"

sound709

Definition at line 156 of file driver_syn6658.h.

◆ SYN6658_SOUND_710

#define SYN6658_SOUND_710   "sound710"

sound710

Definition at line 157 of file driver_syn6658.h.

◆ SYN6658_SOUND_711

#define SYN6658_SOUND_711   "sound711"

sound711

Definition at line 158 of file driver_syn6658.h.

◆ SYN6658_SOUND_712

#define SYN6658_SOUND_712   "sound712"

sound712

Definition at line 159 of file driver_syn6658.h.

◆ SYN6658_SOUND_713

#define SYN6658_SOUND_713   "sound713"

sound713

Definition at line 160 of file driver_syn6658.h.

◆ SYN6658_SOUND_714

#define SYN6658_SOUND_714   "sound714"

sound714

Definition at line 161 of file driver_syn6658.h.

◆ SYN6658_SOUND_715

#define SYN6658_SOUND_715   "sound715"

sound715

Definition at line 162 of file driver_syn6658.h.

◆ SYN6658_SOUND_716

#define SYN6658_SOUND_716   "sound716"

sound716

Definition at line 163 of file driver_syn6658.h.

◆ SYN6658_SOUND_717

#define SYN6658_SOUND_717   "sound717"

sound717

Definition at line 164 of file driver_syn6658.h.

◆ SYN6658_SOUND_718

#define SYN6658_SOUND_718   "sound718"

sound718

Definition at line 165 of file driver_syn6658.h.

◆ SYN6658_SOUND_719

#define SYN6658_SOUND_719   "sound719"

sound719

Definition at line 166 of file driver_syn6658.h.

Typedef Documentation

◆ syn6658_handle_t

syn6658 handle structure definition

◆ syn6658_info_t

syn6658 information structure definition

Enumeration Type Documentation

◆ syn6658_interface_t

syn6658 interface enumeration definition

Enumerator
SYN6658_INTERFACE_UART 

uart interface function

SYN6658_INTERFACE_SPI 

spi interface function

Definition at line 189 of file driver_syn6658.h.

◆ syn6658_speaker_t

syn6658 speaker enumeration definition

Enumerator
SYN6658_SPEAKER_XIAOLING 

xiaoling

SYN6658_SPEAKER_YIXIAOJIAN 

yixiaojian

SYN6658_SPEAKER_YIXIAOQIANG 

yixiaoqiang

SYN6658_SPEAKER_TIANPEIPEI 

tianpeipei

SYN6658_SPEAKER_TANGLAOYA 

tanglaoya

SYN6658_SPEAKER_XIAOYANZI 

xiaoyanzi

Definition at line 219 of file driver_syn6658.h.

◆ syn6658_status_t

syn6658 status enumeration definition

Enumerator
SYN6658_STATUS_OK 

ok status

SYN6658_STATUS_BUSY 

busy status

Definition at line 210 of file driver_syn6658.h.

◆ syn6658_type_t

syn6658 type enumeration definition

Enumerator
SYN6658_TYPE_GB2312 

gb2312 type

SYN6658_TYPE_GBK 

gbk type

SYN6658_TYPE_BIG5 

big5 type

SYN6658_TYPE_UNICODE_LITTLE 

unicode little endian type

SYN6658_TYPE_UNICODE_BIG 

unicode big endian type

Definition at line 198 of file driver_syn6658.h.

Function Documentation

◆ syn6658_deinit()

uint8_t syn6658_deinit ( syn6658_handle_t * handle)

close the chip

Parameters
[in]*handlepointer to a syn6658 handle structure
Returns
status code
  • 0 success
  • 1 uart or spi deinit failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 gpio ready deinit failed
Note
none

Definition at line 352 of file driver_syn6658.c.

◆ syn6658_get_interface()

uint8_t syn6658_get_interface ( syn6658_handle_t * handle,
syn6658_interface_t * interface )

get the chip interface

Parameters
[in]*handlepointer to a syn6658 handle structure
[out]*interfacepointer to a chip interface buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
Note
none

Definition at line 198 of file driver_syn6658.c.

◆ syn6658_get_status()

uint8_t syn6658_get_status ( syn6658_handle_t * handle,
syn6658_status_t * status )

get the current status

Parameters
[in]*handlepointer to a syn6658 handle structure
[out]*statuspointer to a status buffer
Returns
status code
  • 0 success
  • 1 get status failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 403 of file driver_syn6658.c.

◆ syn6658_get_text_type()

uint8_t syn6658_get_text_type ( syn6658_handle_t * handle,
syn6658_type_t * type )

get the chip text type

Parameters
[in]*handlepointer to a syn6658 handle structure
[out]*typepointer to a chip text type
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 867 of file driver_syn6658.c.

◆ syn6658_info()

uint8_t syn6658_info ( syn6658_info_t * info)

get chip's information

Parameters
[out]*infopointer to a syn6658 info structure
Returns
status code
  • 0 success
  • 2 handle is NULL
Note
none

Definition at line 1353 of file driver_syn6658.c.

◆ syn6658_init()

uint8_t syn6658_init ( syn6658_handle_t * handle)

initialize the chip

Parameters
[in]*handlepointer to a syn6658 handle structure
Returns
status code
  • 0 success
  • 1 uart or spi initialization failed
  • 2 handle is NULL
  • 3 linked functions is NULL
  • 4 gpio ready init failed
Note
none

Definition at line 221 of file driver_syn6658.c.

◆ syn6658_pause()

uint8_t syn6658_pause ( syn6658_handle_t * handle)

pause the chip

Parameters
[in]*handlepointer to a syn6658 handle structure
Returns
status code
  • 0 success
  • 1 pause failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 spi interface can't use this function
Note
none

Definition at line 573 of file driver_syn6658.c.

◆ syn6658_play_text()

uint8_t syn6658_play_text ( syn6658_handle_t * handle,
uint8_t times,
syn6658_type_t type )

play text

Parameters
[in]*handlepointer to a syn6658 handle structure
[in]timesplay times
[in]typeencode type
Returns
status code
  • 0 success
  • 1 play text failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 times is invalid
  • 5 spi interface can't use this function
Note
1 <= times <= 15

Definition at line 1150 of file driver_syn6658.c.

Here is the call graph for this function:

◆ syn6658_resume()

uint8_t syn6658_resume ( syn6658_handle_t * handle)

resume the chip

Parameters
[in]*handlepointer to a syn6658 handle structure
Returns
status code
  • 0 success
  • 1 resume failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 spi interface can't use this function
Note
none

Definition at line 639 of file driver_syn6658.c.

◆ syn6658_save_text()

uint8_t syn6658_save_text ( syn6658_handle_t * handle,
uint8_t offset,
char * text )

save text to the buffer

Parameters
[in]*handlepointer to a syn6658 handle structure
[in]offsetbuffer offset
[in]*textpointer to a text buffer
Returns
status code
  • 0 success
  • 1 save text failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 offset is invalid
  • 5 text length is invalid
  • 6 spi interface can't use this function
Note
0 <= offset <= 15 text length <= ((16 - offset) * 256)

Definition at line 1099 of file driver_syn6658.c.

Here is the call graph for this function:

◆ syn6658_set_interface()

uint8_t syn6658_set_interface ( syn6658_handle_t * handle,
syn6658_interface_t interface )

set the chip interface

Parameters
[in]*handlepointer to a syn6658 handle structure
[in]interfacechip interface
Returns
status code
  • 0 success
  • 2 handle is NULL
Note
none

Definition at line 177 of file driver_syn6658.c.

◆ syn6658_set_synthesis_speaker()

uint8_t syn6658_set_synthesis_speaker ( syn6658_handle_t * handle,
syn6658_speaker_t speaker )

set the synthesis speaker

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

Definition at line 1060 of file driver_syn6658.c.

Here is the call graph for this function:

◆ syn6658_set_synthesis_speed()

uint8_t syn6658_set_synthesis_speed ( syn6658_handle_t * handle,
uint8_t speed )

set the synthesis speed

Parameters
[in]*handlepointer to a syn6658 handle structure
[in]speedsynthesis speed
Returns
status code
  • 0 success
  • 1 set synthesis speed failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 speed is invalid
Note
0 <= speed <= 10

Definition at line 1020 of file driver_syn6658.c.

Here is the call graph for this function:

◆ syn6658_set_synthesis_volume()

uint8_t syn6658_set_synthesis_volume ( syn6658_handle_t * handle,
uint8_t volume )

set the chip synthesis volume

Parameters
[in]*handlepointer to a syn6658 handle structure
[in]volumesynthesis volume
Returns
status code
  • 0 success
  • 1 set synthesis volume failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 volume is invalid
Note
0 <= volume <= 10

Definition at line 979 of file driver_syn6658.c.

Here is the call graph for this function:

◆ syn6658_set_text_type()

uint8_t syn6658_set_text_type ( syn6658_handle_t * handle,
syn6658_type_t type )

set the chip text type

Parameters
[in]*handlepointer to a syn6658 handle structure
[in]typechip text type
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 841 of file driver_syn6658.c.

◆ syn6658_standby()

uint8_t syn6658_standby ( syn6658_handle_t * handle)

set the chip to standby mode

Parameters
[in]*handlepointer to a syn6658 handle structure
Returns
status code
  • 0 success
  • 1 standby failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 spi interface can't use this function
Note
none

Definition at line 704 of file driver_syn6658.c.

◆ syn6658_stop()

uint8_t syn6658_stop ( syn6658_handle_t * handle)

stop the chip

Parameters
[in]*handlepointer to a syn6658 handle structure
Returns
status code
  • 0 success
  • 1 stop failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 spi interface can't use this function
Note
none

Definition at line 508 of file driver_syn6658.c.

◆ syn6658_synthesis_text()

uint8_t syn6658_synthesis_text ( syn6658_handle_t * handle,
const char *const fmt,
... )

synthesis the test

Parameters
[in]*handlepointer to a syn6658 handle structure
[in]fmtformat data
Returns
status code
  • 0 success
  • 1 synthesis text failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 chip is busy
  • 5 uart read failed
Note
none

Definition at line 896 of file driver_syn6658.c.

◆ syn6658_wake_up()

uint8_t syn6658_wake_up ( syn6658_handle_t * handle)

wake up the chip

Parameters
[in]*handlepointer to a syn6658 handle structure
Returns
status code
  • 0 success
  • 1 wake up failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 spi interface can't use this function
Note
none

Definition at line 769 of file driver_syn6658.c.