WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
SIO

宏定义

#define I2S_S_CLK   32000
 
#define FREQ_OF_NEED   32
 
#define SIO_LOOP   8
 
#define I2S_M_CLK   32000
 
#define I2S_CR   0x608
 
#define I2S_CR_DIV_NUM_BIT   5
 
#define I2S_CR_DIV_NUM_LEN   4
 
#define I2S_FIFO_SIZE   16
 
#define HAL_CFG_I2S_BCLK_DIV_EN   0x1000
 
#define HAL_CFG_I2S_CLK_SEL   0x1014
 
#define HAL_CFG_I2S_MS_CFG   0x1024
 
#define HAL_CFG_I2S_FS_DIV_EN   0x1008
 
#define HAL_CFG_I2S_FS_DIV_NUM   0x100c
 
#define HAL_CFG_I2S_FS_DIV_RATIO_NUM   0x1010
 
#define M_CLKEN0   0x40
 
#define I2S_DUTY_CYCLE   2
 
#define PCM_DIV_RATIO_NUM   1
 
#define CFG_I2S_BCLK_DIV_EN   0
 
#define CFG_I2S_BCLK_LOAD_DIV_EN   1
 
#define I2S_FS_DIV_NUM_CONFIG_BITS   11
 
#define I2S_FS_DIV_RATIO_NUM_BITS   11
 
#define I2S_READ_WAIT_TIMES_MAX   8
 
#define I2S_PARAM   2
 
#define SIXTEEN_WIDTH   16
 
#define EIGHTTEEN_WIDTH   18
 
#define TWENTY_WIDTH   20
 
#define TWENTY_FOUR_WIDTH   24
 
#define THIRTY_TWO_WIDTH   32
 
#define NUM_OF_PIN_REGS   5
 
#define CONFIG_I2S_BUS_MAX_NUM   1
 
#define CONFIG_I2S_SUPPORT_LOOPBACK   1
 
#define CONFIG_DATA_LEN_MAX   128
 

类型定义

typedef void(* i2s_irq_func_t) (void)
 Definition of the contorl ID of hal sio.
 

函数

uintptr_t sio_porting_base_addr_get (sio_bus_t bus)
 Get the base address of a specified sio.
 
void sio_porting_register_hal_funcs (sio_bus_t bus)
 Register hal funcs objects into hal_sio module.
 
void sio_porting_unregister_hal_funcs (sio_bus_t bus)
 Unregister hal funcs objects from hal_sio module.
 
void sio_porting_register_irq (sio_bus_t bus)
 Register the interrupt of sio.
 
void sio_porting_unregister_irq (sio_bus_t bus)
 Unregister the interrupt of sio.
 
void irq_sio0_handler (void)
 The interrupt handler of sio0.
 
void sio_porting_clock_enable (bool enable)
 SIO clock.
 
void sio_porting_i2s_pinmux (void)
 Config the pin mode.
 
uint32_t sio_porting_get_mclk (void)
 get mclk.
 
uint32_t sio_porting_get_bclk_div_num (uint8_t data_width, uint32_t ch)
 get bclk.
 
uintptr_t i2s_porting_tx_left_data_addr_get (sio_bus_t bus)
 
uintptr_t i2s_porting_tx_merge_data_addr_get (sio_bus_t bus)
 
uintptr_t i2s_porting_rx_merge_data_addr_get (sio_bus_t bus)
 
uintptr_t i2s_porting_tx_right_data_addr_get (sio_bus_t bus)
 
uintptr_t i2s_porting_rx_left_data_addr_get (sio_bus_t bus)
 
uintptr_t i2s_porting_rx_right_data_addr_get (sio_bus_t bus)
 

详细描述

宏定义说明

◆ CFG_I2S_BCLK_DIV_EN

#define CFG_I2S_BCLK_DIV_EN   0

◆ CFG_I2S_BCLK_LOAD_DIV_EN

#define CFG_I2S_BCLK_LOAD_DIV_EN   1

◆ CONFIG_DATA_LEN_MAX

#define CONFIG_DATA_LEN_MAX   128

◆ CONFIG_I2S_BUS_MAX_NUM

#define CONFIG_I2S_BUS_MAX_NUM   1

◆ CONFIG_I2S_SUPPORT_LOOPBACK

#define CONFIG_I2S_SUPPORT_LOOPBACK   1

◆ EIGHTTEEN_WIDTH

#define EIGHTTEEN_WIDTH   18

◆ FREQ_OF_NEED

#define FREQ_OF_NEED   32

◆ HAL_CFG_I2S_BCLK_DIV_EN

#define HAL_CFG_I2S_BCLK_DIV_EN   0x1000

◆ HAL_CFG_I2S_CLK_SEL

#define HAL_CFG_I2S_CLK_SEL   0x1014

◆ HAL_CFG_I2S_FS_DIV_EN

#define HAL_CFG_I2S_FS_DIV_EN   0x1008

◆ HAL_CFG_I2S_FS_DIV_NUM

#define HAL_CFG_I2S_FS_DIV_NUM   0x100c

◆ HAL_CFG_I2S_FS_DIV_RATIO_NUM

#define HAL_CFG_I2S_FS_DIV_RATIO_NUM   0x1010

◆ HAL_CFG_I2S_MS_CFG

#define HAL_CFG_I2S_MS_CFG   0x1024

◆ I2S_CR

#define I2S_CR   0x608

◆ I2S_CR_DIV_NUM_BIT

#define I2S_CR_DIV_NUM_BIT   5

◆ I2S_CR_DIV_NUM_LEN

#define I2S_CR_DIV_NUM_LEN   4

◆ I2S_DUTY_CYCLE

#define I2S_DUTY_CYCLE   2

◆ I2S_FIFO_SIZE

#define I2S_FIFO_SIZE   16

◆ I2S_FS_DIV_NUM_CONFIG_BITS

#define I2S_FS_DIV_NUM_CONFIG_BITS   11

◆ I2S_FS_DIV_RATIO_NUM_BITS

#define I2S_FS_DIV_RATIO_NUM_BITS   11

◆ I2S_M_CLK

#define I2S_M_CLK   32000

◆ I2S_PARAM

#define I2S_PARAM   2

◆ I2S_READ_WAIT_TIMES_MAX

#define I2S_READ_WAIT_TIMES_MAX   8

◆ I2S_S_CLK

#define I2S_S_CLK   32000

◆ M_CLKEN0

#define M_CLKEN0   0x40

◆ NUM_OF_PIN_REGS

#define NUM_OF_PIN_REGS   5

◆ PCM_DIV_RATIO_NUM

#define PCM_DIV_RATIO_NUM   1

◆ SIO_LOOP

#define SIO_LOOP   8

◆ SIXTEEN_WIDTH

#define SIXTEEN_WIDTH   16

◆ THIRTY_TWO_WIDTH

#define THIRTY_TWO_WIDTH   32

◆ TWENTY_FOUR_WIDTH

#define TWENTY_FOUR_WIDTH   24

◆ TWENTY_WIDTH

#define TWENTY_WIDTH   20

类型定义说明

◆ i2s_irq_func_t

typedef void(* i2s_irq_func_t) (void)

Definition of the contorl ID of hal sio.

函数说明

◆ i2s_porting_rx_left_data_addr_get()

uintptr_t i2s_porting_rx_left_data_addr_get ( sio_bus_t  bus)

◆ i2s_porting_rx_merge_data_addr_get()

uintptr_t i2s_porting_rx_merge_data_addr_get ( sio_bus_t  bus)

◆ i2s_porting_rx_right_data_addr_get()

uintptr_t i2s_porting_rx_right_data_addr_get ( sio_bus_t  bus)

◆ i2s_porting_tx_left_data_addr_get()

uintptr_t i2s_porting_tx_left_data_addr_get ( sio_bus_t  bus)

◆ i2s_porting_tx_merge_data_addr_get()

uintptr_t i2s_porting_tx_merge_data_addr_get ( sio_bus_t  bus)

◆ i2s_porting_tx_right_data_addr_get()

uintptr_t i2s_porting_tx_right_data_addr_get ( sio_bus_t  bus)

◆ irq_sio0_handler()

void irq_sio0_handler ( void  )

The interrupt handler of sio0.

◆ sio_porting_base_addr_get()

uintptr_t sio_porting_base_addr_get ( sio_bus_t  bus)

Get the base address of a specified sio.

参数
[in]busPCM device to use.
返回
The base address of specified sio.

◆ sio_porting_clock_enable()

void sio_porting_clock_enable ( bool  enable)

SIO clock.

参数
[in]enableEnable or not.

◆ sio_porting_get_bclk_div_num()

uint32_t sio_porting_get_bclk_div_num ( uint8_t  data_width,
uint32_t  ch 
)

get bclk.

◆ sio_porting_get_mclk()

uint32_t sio_porting_get_mclk ( void  )

get mclk.

◆ sio_porting_i2s_pinmux()

void sio_porting_i2s_pinmux ( void  )

Config the pin mode.

◆ sio_porting_register_hal_funcs()

void sio_porting_register_hal_funcs ( sio_bus_t  bus)

Register hal funcs objects into hal_sio module.

参数
[in]busPCM device to use.

◆ sio_porting_register_irq()

void sio_porting_register_irq ( sio_bus_t  bus)

Register the interrupt of sio.

参数
[in]busPCM device to use.

◆ sio_porting_unregister_hal_funcs()

void sio_porting_unregister_hal_funcs ( sio_bus_t  bus)

Unregister hal funcs objects from hal_sio module.

参数
[in]busPCM device to use.

◆ sio_porting_unregister_irq()

void sio_porting_unregister_irq ( sio_bus_t  bus)

Unregister the interrupt of sio.

参数
[in]busPCM device to use.