CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
宏定义 | 类型定义 | 枚举 | 函数
status_share.h 文件参考
#include "ci_log.h"

浏览源代码.

宏定义

#define STATUS_SHARE_MODULE
 
#define INVALID_STATUS   (((status_t)0) - 1)
 
#define LOG_STATUS_SHARE   CI_LOG_WARN
 

类型定义

typedef unsigned long status_t
 

枚举

enum  status_id_t {
  EM_STATUS_ID_START = 0,
  CI_SS_EXT_OSC_CLK,
  CI_SS_SRC_CLK,
  CI_SS_AHB_CLK,
  CI_SS_APB_CLK,
  CI_SS_IPCORE_CLK,
  CI_SS_SYSTEMTICK_CLK,
  CI_SS_VAD_STATE,
  CI_SS_ASR_SYS_STATE,
  CI_SS_WAKING_UP_STATE,
  CI_SS_CMD_STATE,
  CI_SS_CMD_SCORE,
  CI_SS_CMD_SCORE_CHA0,
  CI_SS_CMD_SCORE_CHA1,
  CI_SS_WAKING_UP_STATE_FOR_SSP,
  CI_SS_CMD_STATE_FOR_SSP,
  CI_SS_PLAY_STATE,
  CI_SS_FLASH_HOST_STATE,
  CI_SS_AST_STATE,
  CI_SS_ASR_WARNING,
  CI_SS_FLASH_BNPU_STATE,
  CI_SS_MIC_VOICE_STATUE,
  CI_SS_ALC_STATE,
  CI_SS_CWSL_OUTPUT_FLAG,
  CI_SS_INTERCEPT_ASR_OUT,
  CI_SS_CWSL_IN_REG,
  CI_SS_PR_ADDR,
  CI_SS_START_SLEEP_PROCESS,
  CI_SS_ASR_TASK_PAUSED,
  CI_SS_DECODER_MIN_ACTIVE,
  CI_SS_DECODER_BEAM,
  CI_SS_NN_OUT_ERR_CNT,
  CI_SS_CWSL_AEC_MUTE_STATE,
  EM_STATUS_NUM
}
 
enum  ci_ss_vad_state_t {
  CI_SS_VAD_IDLE = 0,
  CI_SS_VAD_START,
  CI_SS_VAD_ON,
  CI_SS_VAD_END
}
 
enum  ci_ss_alc_state_t {
  CI_SS_ALC_OFF = 0,
  CI_SS_ALC_UP
}
 
enum  ci_ss_asr_sys_state_t {
  CI_SS_ASR_SYS_POWER_OFF = 0,
  CI_SS_ASR_SYS_STARTED_UP
}
 
enum  ci_ss_wakeup_state_t {
  CI_SS_NO_WAKEUP = 0,
  CI_SS_WAKEUPED
}
 
enum  ci_ss_cmd_state_t {
  CI_SS_CMD_IS_NULL = 0,
  CI_SS_CMD_IS_WAKEUP,
  CI_SS_CMD_IS_NORMAL
}
 
enum  ci_ss_play_state {
  CI_SS_PLAY_STATE_IDLE = 0,
  CI_SS_PLAY_STATE_PLAYING
}
 
enum  ci_ss_flash_state {
  CI_SS_FLASH_POWER_OFF = 0,
  CI_SS_FLASH_IDLE,
  CI_SS_FLASH_READ,
  CI_SS_FLASH_WRITE,
  CI_SS_FLASH_ERASE,
  CI_SS_FLASH_READ_UNIQUE_ID
}
 
enum  ci_ss_mic_voice_state {
  CI_SS_MIC_VOICE_NOT_START = 0,
  CI_SS_MIC_VOICE_NORMAL,
  CI_SS_MIC_VOICE_MUTE
}
 
enum  ci_ss_cwsl_aec_mute_state {
  CI_SS_CWSL_AEC_MUTE_OFF = 0,
  CI_SS_CWSL_AEC_MUTE_ON
}
 

函数

void ciss_init (void)
 信息共享模块初始化. 更多...
 
void ciss_set (status_id_t id, status_t value)
 设置状态信息,如果状态有变化且是可等待状态,发送状态等待事件标志位. 更多...
 
status_t ciss_get (status_id_t id)
 读取状态信息. 更多...
 

宏定义说明

◆ INVALID_STATUS

#define INVALID_STATUS   (((status_t)0) - 1)

◆ LOG_STATUS_SHARE

#define LOG_STATUS_SHARE   CI_LOG_WARN

◆ STATUS_SHARE_MODULE

#define STATUS_SHARE_MODULE

类型定义说明

◆ status_t

typedef unsigned long status_t

枚举类型说明

◆ ci_ss_alc_state_t

枚举值
CI_SS_ALC_OFF 
CI_SS_ALC_UP 

◆ ci_ss_asr_sys_state_t

枚举值
CI_SS_ASR_SYS_POWER_OFF 
CI_SS_ASR_SYS_STARTED_UP 

◆ ci_ss_cmd_state_t

枚举值
CI_SS_CMD_IS_NULL 
CI_SS_CMD_IS_WAKEUP 
CI_SS_CMD_IS_NORMAL 

◆ ci_ss_cwsl_aec_mute_state

枚举值
CI_SS_CWSL_AEC_MUTE_OFF 
CI_SS_CWSL_AEC_MUTE_ON 

◆ ci_ss_flash_state

枚举值
CI_SS_FLASH_POWER_OFF 
CI_SS_FLASH_IDLE 
CI_SS_FLASH_READ 
CI_SS_FLASH_WRITE 
CI_SS_FLASH_ERASE 
CI_SS_FLASH_READ_UNIQUE_ID 

◆ ci_ss_mic_voice_state

枚举值
CI_SS_MIC_VOICE_NOT_START 
CI_SS_MIC_VOICE_NORMAL 
CI_SS_MIC_VOICE_MUTE 

◆ ci_ss_play_state

枚举值
CI_SS_PLAY_STATE_IDLE 
CI_SS_PLAY_STATE_PLAYING 

◆ ci_ss_vad_state_t

枚举值
CI_SS_VAD_IDLE 
CI_SS_VAD_START 
CI_SS_VAD_ON 
CI_SS_VAD_END 

◆ ci_ss_wakeup_state_t

枚举值
CI_SS_NO_WAKEUP 
CI_SS_WAKEUPED 

◆ status_id_t

枚举值
EM_STATUS_ID_START 
CI_SS_EXT_OSC_CLK 
CI_SS_SRC_CLK 
CI_SS_AHB_CLK 
CI_SS_APB_CLK 
CI_SS_IPCORE_CLK 
CI_SS_SYSTEMTICK_CLK 
CI_SS_VAD_STATE 
CI_SS_ASR_SYS_STATE 
CI_SS_WAKING_UP_STATE 
CI_SS_CMD_STATE 
CI_SS_CMD_SCORE 
CI_SS_CMD_SCORE_CHA0 
CI_SS_CMD_SCORE_CHA1 
CI_SS_WAKING_UP_STATE_FOR_SSP 
CI_SS_CMD_STATE_FOR_SSP 
CI_SS_PLAY_STATE 
CI_SS_FLASH_HOST_STATE 
CI_SS_AST_STATE 
CI_SS_ASR_WARNING 
CI_SS_FLASH_BNPU_STATE 
CI_SS_MIC_VOICE_STATUE 
CI_SS_ALC_STATE 
CI_SS_CWSL_OUTPUT_FLAG 
CI_SS_INTERCEPT_ASR_OUT 
CI_SS_CWSL_IN_REG 
CI_SS_PR_ADDR 
CI_SS_START_SLEEP_PROCESS 
CI_SS_ASR_TASK_PAUSED 
CI_SS_DECODER_MIN_ACTIVE 
CI_SS_DECODER_BEAM 
CI_SS_NN_OUT_ERR_CNT 
CI_SS_CWSL_AEC_MUTE_STATE 
EM_STATUS_NUM 

函数说明

◆ ciss_get()

status_t ciss_get ( status_id_t  id)

读取状态信息.

参数
id状态信息标识,指定要读取的状态.
返回
要读取的状态值.

◆ ciss_init()

void ciss_init ( void  )

信息共享模块初始化.

◆ ciss_set()

void ciss_set ( status_id_t  id,
status_t  value 
)

设置状态信息,如果状态有变化且是可等待状态,发送状态等待事件标志位.

参数
id状态信息标识,指定要设置的状态.
value要设置的状态值.