sound_trigger_hw_device 結構體參考資料

sound_trigger_hw_device 結構體參考資料

#include < sound_trigger.h >

資料欄位

struct hw_device_t   通用
 
int(*  get_properties )(const struct sound_trigger_hw_device *dev, struct sound_trigger_properties *properties)
 
int(*  load_sound_model )(const struct sound_trigger_hw_device *dev, struct sound_trigger_sound_model *sound_model, sound_model_callback_t callback, void *cookie, sound_model_handle_t *handle)
 
int(*  unload_sound_model )(const struct sound_trigger_hw_device *dev, sound_model_handle_t handle)
 
int(*  start_recognition )(const struct sound_trigger_hw_device *dev, sound_model_handle_t sound_model_handle, const struct sound_trigger_recognition_config *config, recognition_callback_t callback, void *cookie)
 
int(*  stop_recognition )(const struct sound_trigger_hw_device *dev, sound_model_handle_t sound_model_handle)
 
int(*  stop_all_recognitions )(const struct sound_trigger_hw_device *dev)
 

詳細說明

定義位於檔案 sound_trigger.h 67 行。

欄位說明文件

struct hw_device_t common

定義位於檔案 sound_trigger.h 68 行。

int(* get_properties)(const struct sound_trigger_hw_device *dev, struct sound_trigger_properties *properties)

定義位於檔案 sound_trigger.h 73 行。

int(* load_sound_model)(const struct sound_trigger_hw_device *dev, struct sound_trigger_sound_model *sound_model, sound_model_callback_t callback, void *cookie, sound_model_handle_t *handle)

定義位於檔案 sound_trigger.h 的 83 行。

int(* start_recognition)(const struct sound_trigger_hw_device *dev, sound_model_handle_t sound_model_handle, const struct sound_trigger_recognition_config *config, recognition_callback_t callback, void *cookie)

定義位於檔案 sound_trigger.h 100 行。

int(* stop_all_recognitions)(const struct sound_trigger_hw_device *dev)

定義位於檔案 sound_trigger.h 116 行。

int(* stop_recognition)(const struct sound_trigger_hw_device *dev, sound_model_handle_t sound_model_handle)

定義位於檔案 sound_trigger.h 109 行。

int(* unload_sound_model)(const struct sound_trigger_hw_device *dev, sound_model_handle_t handle)

定義位於檔案 sound_trigger.h 93 行。


這個結構體的說明文件是由下列檔案產生: