You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
586 B
48 lines
586 B
3 years ago
|
#ifndef _APP_TASK_SPEECH_H
|
||
|
#define _APP_TASK_SPEECH_H
|
||
|
#define CC_SPEECH_INFO_MAX 1
|
||
|
#define D_s_TS_speech_max 32
|
||
|
|
||
|
enum SPEECH_OPER
|
||
|
{
|
||
|
SPEECH_NAME_PLAY 0xA3;
|
||
|
};
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
vU8 start;
|
||
|
vU8 num;
|
||
|
vU8 oper;
|
||
|
vU8 title;
|
||
|
vU8 buf[D_s_TS_speech_max - 3];
|
||
|
vU8 crc;
|
||
|
vU8 end;
|
||
|
}TS_SPEECH;
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
U16 slaver;
|
||
|
U16 oper;
|
||
|
U16 reg;
|
||
|
U16 regnum;
|
||
|
U16 bytes;
|
||
|
U8 *buf;
|
||
|
U16 mask;
|
||
|
}CC_SPEECH_INFO;
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
TS_task task;
|
||
|
U16 slaverIndex;
|
||
|
U16 pkglen;
|
||
|
CC_SPEECH_INFO cc_speech_info[CC_SPEECH_INFO_MAX];
|
||
|
}TS_TASK_SPEECH;
|
||
|
|
||
|
extern TS_TASK_SPEECH ts_speech;
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
#endif
|
||
|
|