1 #ifndef __COMMAND_FILE_READER_V3_H__ 2 #define __COMMAND_FILE_READER_V3_H__ 11 #define CMD_FLAG_WAKEUP_WORD 0x01 12 #define CMD_FLAG_COMBO_WORD 0x02 13 #define CMD_FLAG_EXPECTED_WORD 0x04 14 #define CMD_FLAG_UNEXPECTED_WORD 0x08 15 #define CMD_FLAG_SPECIAL_WORD 0x10 16 #define CMD_FLAG_AUTO_PLAY 0x20 struct command_string_index_st command_string_index_t
Index of command string, used to get command id by command string.
uint16_t command_id
Index of this command's voice in voice table.
Definition: command_file_reader_v2.h:31
struct command_info_st command_info_t
Command information
uint8_t flags
Definition: command_file_reader_v2.h:27
uint32_t cmd_file_read_string_index_table(void *table_buffer)
Read string index table to the specifiled buffer.
Definition: command_file_reader_v2.c:267
struct Special_wait_count_st special_wait_count_t
time wait after special word.
Index of command string, used to get command id by command string.
Definition: command_file_reader_v2.h:49
uint16_t voice_end_index
Index of this command's voice in voice table.
Definition: command_file_reader_v2.h:30
time wait after special word.
Definition: command_file_reader_v2.h:39
uint32_t cmd_file_get_cur_model_id(uint32_t *p_dnn_id, uint32_t *p_asr_id)
Get models ID.
Definition: command_file_reader_v2.c:226
Voice information
Definition: command_file_reader_v2.h:59
uint32_t cmd_file_get_string_table_size()
Get size of string table.
Definition: command_file_reader_v2.c:277
Command information
Definition: command_file_reader_v2.h:25
uint32_t cmd_file_get_voice_number()
Get number of voice.
Definition: command_file_reader_v2.c:291
uint32_t cmd_file_get_special_word_number()
Get number of special words.
Definition: command_file_reader_v2.c:253
int32_t cmd_file_get_send_data_item_len(void)
Definition: command_file_reader_v3.c:298
uint32_t cmd_file_read_string_table(void *table_buffer)
Read string table to the specifiled buffer.
Definition: command_file_reader_v2.c:282
uint8_t wait_count
Identity of command.
Definition: command_file_reader_v2.h:42
uint32_t cmd_file_change_cur_model_group(uint8_t model_group_id)
Definition: command_file_reader_v2.c:97
uint32_t cmd_file_get_command_number()
Get number of commands in current model.
Definition: command_file_reader_v2.c:239
uint32_t cmd_file_change_model(uint32_t model_index)
Change current model group.
Definition: command_file_reader_v2.c:126
int32_t cmd_file_get_recieve_data_item_len(void)
Definition: command_file_reader_v3.c:303
uint32_t semantic_id
Identity of command.
Definition: command_file_reader_v2.h:32
uint32_t cmd_file_reader_init(uint32_t start_addr_in_flash)
Initialize command file reader.
Definition: command_file_reader_v2.c:79
uint16_t voice_group
Definition: command_file_reader_v2.h:61
uint32_t cmd_file_read_voice_table(void *table_buffer)
Read voice table to the specifiled buffer.
Definition: command_file_reader_v2.c:296
uint16_t voice_start_index
100 times the true float value of score.
Definition: command_file_reader_v2.h:29
uint32_t cmd_file_get_model_number()
Get models number.
Definition: command_file_reader_v2.c:91
uint16_t index_of_cmd_table
Definition: command_file_reader_v2.h:41
int32_t cmd_file_read_send_data_table(uint8_t *p_send_data_table, uint8_t *p_item_length)
Definition: command_file_reader_v3.c:308
struct voice_info_st voice_info_t
Voice information
uint32_t cmd_file_read_command_table(void *table_buffer)
Reads commands table to the specifiled buffer.
Definition: command_file_reader_v2.c:244
uint16_t function_id
Semantically related unique value.
Definition: command_file_reader_v3.h:34
int32_t cmd_file_read_recieve_data_table(uint8_t *p_recieve_data_table, uint8_t *p_item_length)
Definition: command_file_reader_v3.c:317
uint32_t cmd_file_get_max_model_group_id()
Get id of model group, that prun of asr is the max.
Definition: command_file_reader_v2.c:158
uint16_t voice_id
voice group information.
Definition: command_file_reader_v2.h:62
uint32_t command_string_offset
Definition: command_file_reader_v2.h:51
uint8_t score
Use to save flags that indicate this command is a special word,or is a combo word,or is a expected word,and so on.
Definition: command_file_reader_v2.h:28
uint32_t cmd_file_read_special_word_table(void *table_buffer)
Reads special words table to the specifiled buffer.
Definition: command_file_reader_v2.c:258