Files | |
file | audio_frontend_api.h |
CXD5602 Audio Mic Frontend API. | |
Classes | |
struct | AsActivateFrontendParam |
struct | AsActivateMicFrontend |
struct | AsDeactivateMicFrontendParam |
union | AsDataDest |
struct | AsInitMicFrontendParam |
struct | AsStartMicFrontendParam |
struct | AsStopMicFrontendParam |
struct | AsInitPreProcParam |
struct | AsMicFrontendMicGainParam |
struct | MicFrontendCommandHeader |
struct | MicFrontendCommand |
struct | AsMicFrontendMsgQueId_t |
struct | AsMicFrontendPoolId_t |
struct | AsMicFrontendPoolId_old_t |
struct | AsCreateMicFrontendParam_t |
struct | AsCreateMicFrontendParams_t |
Macros | |
#define | AS_FEATURE_FRONTEND_ENABLE |
#define | AS_PREPROCESS_FILE_PATH_LEN 22 |
Length of Recognizer dsp file name and path. | |
Typedefs | |
typedef bool(* | MicFrontendCallback) (AsMicFrontendEvent evtype, uint32_t result, uint32_t sub_result) |
typedef void(* | FrontendDoneCallback) (AsPcmDataParam param) |
typedef struct AsInitPreProcParam | AsSetPreProcParam |
Enumerations | |
enum | AsMicFrontendEvent { AsMicFrontendEventAct = 0 , AsMicFrontendEventDeact , AsMicFrontendEventInit , AsMicFrontendEventStart , AsMicFrontendEventStop , AsMicFrontendEventInitPreProc , AsMicFrontendEventSetPreProc , AsMicFrontendEventSetMicGain } |
enum | AsMicFrontendInputDevice { AsMicFrontendDeviceMic = 0 , AsMicFrontendDeviceI2S } |
enum | AsMicFrontendPreProcType { AsMicFrontendPreProcThrough = 0 , AsMicFrontendPreProcSrc , AsMicFrontendPreProcUserCustom , AsMicFrontendPreProcInvalid = 0xff } |
enum | AsMicFrontendDataPath { AsDataPathCallback = 0 , AsDataPathMessage , AsDataPathSimpleFIFO } |
Packet length of command | |
#define | LENGTH_INIT_MICFRONTEND 4 |
Init Mic Frontend command (AUDCMD_INIT_MICFRONTEND) packet length. | |
#define | LENGTH_INIT_PREPROCESS_DSP 4 |
InitPreProcessDSP command (#AUDCMD_INIT_PREPROCESS) packet length. | |
#define | LENGTH_SET_PREPROCESS_DSP 4 |
SetPreProcessDSP command (AUDCMD_SET_PREPROCESS_DSP) packet length. | |
typedef void(* FrontendDoneCallback) (AsPcmDataParam param) |
InitMicFrontend Command parameter
enum AsMicFrontendEvent |
Event type of Mic FrontEnd
bool AS_CreateMicFrontend | ( | FAR AsCreateMicFrontendParam_t * | param, |
AudioAttentionCb | attcb | ||
) |
Create mic frontend.
[in] | param | Parameters of resources used by mic frontend |
[in] | attcb | Attention callback of Frontend. NULL means no callback. |
true | : success |
false | : failure |
bool AS_ActivateMicFrontend | ( | FAR AsActivateMicFrontend * | actparam | ) |
Activate mic frontend.
[in] | actparam | Activation parameters |
true | : success |
false | : failure |
bool AS_InitMicFrontend | ( | FAR AsInitMicFrontendParam * | initparam | ) |
Init mic frontend.
[in] | initparam | Initialization parameters |
true | : success |
false | : failure |
bool AS_StartMicFrontend | ( | FAR AsStartMicFrontendParam * | startparam | ) |
Start mic frontend.
[in] | startparam | Start parameters |
true | : success |
false | : failure |
bool AS_StopMicFrontend | ( | FAR AsStopMicFrontendParam * | stopparam | ) |
Stop mic frontend.
[in] | stopparam | Stop parameters |
true | : success |
false | : failure |
bool AS_InitPreprocFrontend | ( | FAR AsInitPreProcParam * | param | ) |
Init pre process.
true | : success |
false | : failure |
bool AS_SetPreprocMicFrontend | ( | FAR AsSetPreProcParam * | param | ) |
Set pre process.
true | : success |
false | : failure |
bool AS_SetMicGainMicFrontend | ( | FAR AsMicFrontendMicGainParam * | micgain_param | ) |
Set Mic gain.
true | : success |
false | : failure |
bool AS_DeactivateMicFrontend | ( | FAR AsDeactivateMicFrontendParam * | deactparam | ) |
Deactivate mic frontend.
true | : success |
false | : failure |
bool AS_DeleteMicFrontend | ( | void | ) |
Delete mic frontend.
true | : success |
false | : failure |
bool AS_checkAvailabilityMicFrontend | ( | void | ) |
Check availability of MicFrontend.
true | : avaliable |
false | : Not available |