VSF Documented
|
#include "../driver.h"
#include "../vendor/plf/aic8800/src/driver/sysctrl/reg_sysctrl.h"
#include "../vendor/plf/aic8800/src/driver/sysctrl/sysctrl_api.h"
#include "../vendor/plf/aic8800/src/driver/aud_proc/aud_proc.h"
#include "../vendor/plf/aic8800/src/driver/dma/dma_api_bt.h"
#include "../vendor/audio/common/audio_types.h"
#include "hal/driver/common/i2s/i2s_template.inc"
Data Structures | |
struct | vsf_hw_i2s_const_t |
struct | vsf_hw_i2s_t |
Macros | |
#define | VSF_HW_I2S_CFG_MULTI_CLASS VSF_I2S_CFG_MULTI_CLASS |
#define | I2S_MCLK 12288000 |
#define | SRC_MODE_NB 9 |
#define | AUD_SRC_DIV_NB 6 |
#define | AUD_PROC_WLEN(__N) (((__N) & 3) << 10) |
#define | AUD_PROC_BCK_LRCK(__N) (((__N) & 31) << 5) |
#define | VSF_I2S_CFG_REIMPLEMENT_API_CAPABILITY ENABLED |
#define | VSF_I2S_CFG_IMP_PREFIX vsf_hw |
#define | VSF_I2S_CFG_IMP_UPCASE_PREFIX VSF_HW |
#define | VSF_I2S_CFG_IMP_LV0(__IDX, __HAL_OP) |
Typedefs | |
typedef struct vsf_hw_i2s_const_t | vsf_hw_i2s_const_t |
typedef struct vsf_hw_i2s_t | vsf_hw_i2s_t |
Functions | |
vsf_err_t | vsf_hw_i2s_init (vsf_hw_i2s_t *hw_i2s_ptr, vsf_i2s_cfg_t *cfg_ptr) |
vsf_err_t | vsf_hw_i2s_tx_init (vsf_hw_i2s_t *hw_i2s_ptr, vsf_i2s_cfg_t *cfg_ptr) |
void | vsf_hw_i2s_tx_fini (vsf_hw_i2s_t *hw_i2s_ptr) |
vsf_err_t | vsf_hw_i2s_tx_start (vsf_hw_i2s_t *hw_i2s_ptr) |
vsf_err_t | vsf_hw_i2s_rx_init (vsf_hw_i2s_t *hw_i2s_ptr, vsf_i2s_cfg_t *cfg_ptr) |
void | vsf_hw_i2s_rx_fini (vsf_hw_i2s_t *hw_i2s_ptr) |
vsf_err_t | vsf_hw_i2s_rx_start (vsf_hw_i2s_t *hw_i2s_ptr) |
vsf_i2s_capability_t | vsf_hw_i2s_capability (vsf_hw_i2s_t *hw_i2s_ptr) |
void | vsf_hw_i2s_fini (vsf_hw_i2s_t *hw_i2s_ptr) |
fsm_rt_t | vsf_hw_i2s_enable (vsf_hw_i2s_t *hw_i2s_ptr) |
fsm_rt_t | vsf_hw_i2s_disable (vsf_hw_i2s_t *hw_i2s_ptr) |
vsf_i2s_status_t | vsf_hw_i2s_status (vsf_hw_i2s_t *hw_i2s_ptr) |
#define VSF_HW_I2S_CFG_MULTI_CLASS VSF_I2S_CFG_MULTI_CLASS |
#define I2S_MCLK 12288000 |
#define SRC_MODE_NB 9 |
#define AUD_SRC_DIV_NB 6 |
#define AUD_PROC_WLEN | ( | __N | ) | (((__N) & 3) << 10) |
#define AUD_PROC_BCK_LRCK | ( | __N | ) | (((__N) & 31) << 5) |
#define VSF_I2S_CFG_REIMPLEMENT_API_CAPABILITY ENABLED |
#define VSF_I2S_CFG_IMP_PREFIX vsf_hw |
#define VSF_I2S_CFG_IMP_UPCASE_PREFIX VSF_HW |
#define VSF_I2S_CFG_IMP_LV0 | ( | __IDX, | |
__HAL_OP | |||
) |
typedef struct vsf_hw_i2s_const_t vsf_hw_i2s_const_t |
typedef struct vsf_hw_i2s_t vsf_hw_i2s_t |
vsf_err_t vsf_hw_i2s_init | ( | vsf_hw_i2s_t * | hw_i2s_ptr, |
vsf_i2s_cfg_t * | cfg_ptr | ||
) |
vsf_err_t vsf_hw_i2s_tx_init | ( | vsf_hw_i2s_t * | hw_i2s_ptr, |
vsf_i2s_cfg_t * | cfg_ptr | ||
) |
void vsf_hw_i2s_tx_fini | ( | vsf_hw_i2s_t * | hw_i2s_ptr | ) |
vsf_err_t vsf_hw_i2s_tx_start | ( | vsf_hw_i2s_t * | hw_i2s_ptr | ) |
vsf_err_t vsf_hw_i2s_rx_init | ( | vsf_hw_i2s_t * | hw_i2s_ptr, |
vsf_i2s_cfg_t * | cfg_ptr | ||
) |
void vsf_hw_i2s_rx_fini | ( | vsf_hw_i2s_t * | hw_i2s_ptr | ) |
vsf_err_t vsf_hw_i2s_rx_start | ( | vsf_hw_i2s_t * | hw_i2s_ptr | ) |
vsf_i2s_capability_t vsf_hw_i2s_capability | ( | vsf_hw_i2s_t * | hw_i2s_ptr | ) |
void vsf_hw_i2s_fini | ( | vsf_hw_i2s_t * | hw_i2s_ptr | ) |
fsm_rt_t vsf_hw_i2s_enable | ( | vsf_hw_i2s_t * | hw_i2s_ptr | ) |
fsm_rt_t vsf_hw_i2s_disable | ( | vsf_hw_i2s_t * | hw_i2s_ptr | ) |
vsf_i2s_status_t vsf_hw_i2s_status | ( | vsf_hw_i2s_t * | hw_i2s_ptr | ) |