Component Paraments Functions

Functions

__STATIC_INLINE uint32_t ll_i2s_get_rx_resolution (i2s_regs_t *I2Sx, uint8_t channel)
 Get I2S component paramenters: rx resolution. More...
 
__STATIC_INLINE uint32_t ll_i2s_get_tx_resolution (i2s_regs_t *I2Sx, uint8_t channel)
 Get I2S component paramenters: tx resolution. More...
 
__STATIC_INLINE uint32_t ll_i2s_get_tx_channels (i2s_regs_t *I2Sx)
 Get I2S component paramenters: the number of tx channels. More...
 
__STATIC_INLINE uint32_t ll_i2s_get_rx_channels (i2s_regs_t *I2Sx)
 Get I2S component paramenters: the number of rx channels. More...
 
__STATIC_INLINE uint32_t ll_i2s_get_rx_block (i2s_regs_t *I2Sx)
 Get I2S component paramenters: whether the receiver block is enabled or not. More...
 
__STATIC_INLINE uint32_t ll_i2s_get_tx_block (i2s_regs_t *I2Sx)
 Get I2S component paramenters: whether the transmitter block is enabled or not. More...
 
__STATIC_INLINE uint32_t ll_i2s_get_master_mode (i2s_regs_t *I2Sx)
 Get I2S component paramenters: whether the master mode is enabled or not. More...
 
__STATIC_INLINE uint32_t ll_i2s_get_fifo_depth (i2s_regs_t *I2Sx)
 Get I2S component paramenters: FIOF depth. More...
 
__STATIC_INLINE uint32_t ll_i2s_get_apb_width (i2s_regs_t *I2Sx)
 Get I2S component paramenters: APB data width. More...
 
__STATIC_INLINE uint32_t ll_i2s_get_version (i2s_regs_t *I2Sx)
 Get I2S component version. More...
 
__STATIC_INLINE uint32_t ll_i2s_get_type (i2s_regs_t *I2Sx)
 Get I2S component type. More...
 

Detailed Description

Function Documentation

◆ ll_i2s_get_apb_width()

__STATIC_INLINE uint32_t ll_i2s_get_apb_width ( i2s_regs_t *  I2Sx)

Get I2S component paramenters: APB data width.

Register BitsName
I2S_PARAM1 APB_DATA_WIDTH
Parameters
I2SxI2S instance
Return values
ReturnedValue can be one of the following values:

◆ ll_i2s_get_fifo_depth()

__STATIC_INLINE uint32_t ll_i2s_get_fifo_depth ( i2s_regs_t *  I2Sx)

Get I2S component paramenters: FIOF depth.

Register BitsName
I2S_PARAM1 FIFO_DEPTH
Parameters
I2SxI2S instance
Return values
ReturnedValue can be one of the following values:

◆ ll_i2s_get_master_mode()

__STATIC_INLINE uint32_t ll_i2s_get_master_mode ( i2s_regs_t *  I2Sx)

Get I2S component paramenters: whether the master mode is enabled or not.

Register BitsName
I2S_PARAM1 MODE
Parameters
I2SxI2S instance
Return values
Stateof bit (1 or 0).

◆ ll_i2s_get_rx_block()

__STATIC_INLINE uint32_t ll_i2s_get_rx_block ( i2s_regs_t *  I2Sx)

Get I2S component paramenters: whether the receiver block is enabled or not.

Register BitsName
I2S_PARAM1 RXBLOCK
Parameters
I2SxI2S instance
Return values
Stateof bit (1 or 0).

◆ ll_i2s_get_rx_channels()

__STATIC_INLINE uint32_t ll_i2s_get_rx_channels ( i2s_regs_t *  I2Sx)

Get I2S component paramenters: the number of rx channels.

Register BitsName
I2S_PARAM1 RXCHN
Parameters
I2SxI2S instance
Return values
ReturnedValue can be one of the following values:

◆ ll_i2s_get_rx_resolution()

__STATIC_INLINE uint32_t ll_i2s_get_rx_resolution ( i2s_regs_t *  I2Sx,
uint8_t  channel 
)

Get I2S component paramenters: rx resolution.

Register BitsName
I2S_PARAM2 RXSIZE_3
I2S_PARAM2 RXSIZE_2
I2S_PARAM2 RXSIZE_1
I2S_PARAM2 RXSIZE_0
Parameters
I2SxI2S instance
channelThe special channel: 0 ~ 3
Return values
ReturnedValue can be one of the following values:

◆ ll_i2s_get_tx_block()

__STATIC_INLINE uint32_t ll_i2s_get_tx_block ( i2s_regs_t *  I2Sx)

Get I2S component paramenters: whether the transmitter block is enabled or not.

Register BitsName
I2S_PARAM1 TXBLOCK
Parameters
I2SxI2S instance
Return values
Stateof bit (1 or 0).

◆ ll_i2s_get_tx_channels()

__STATIC_INLINE uint32_t ll_i2s_get_tx_channels ( i2s_regs_t *  I2Sx)

Get I2S component paramenters: the number of tx channels.

Register BitsName
I2S_PARAM1 TXCHN
Parameters
I2SxI2S instance
Return values
ReturnedValue can be one of the following values:

◆ ll_i2s_get_tx_resolution()

__STATIC_INLINE uint32_t ll_i2s_get_tx_resolution ( i2s_regs_t *  I2Sx,
uint8_t  channel 
)

Get I2S component paramenters: tx resolution.

Register BitsName
I2S_PARAM1 TXSIZE_3
I2S_PARAM1 TXSIZE_2
I2S_PARAM1 TXSIZE_1
I2S_PARAM1 TXSIZE_0
Parameters
I2SxI2S instance
channelThe special channel: 0 ~ 3
Return values
ReturnedValue can be one of the following values:

◆ ll_i2s_get_type()

__STATIC_INLINE uint32_t ll_i2s_get_type ( i2s_regs_t *  I2Sx)

Get I2S component type.

Register BitsName
I2S_TYPE TYPE
Parameters
I2SxI2S instance
Return values
ReturnedValue is const.

◆ ll_i2s_get_version()

__STATIC_INLINE uint32_t ll_i2s_get_version ( i2s_regs_t *  I2Sx)

Get I2S component version.

Register BitsName
I2S_VERSION VERSION
Parameters
I2SxI2S instance
Return values
ReturnedValue is const.