Bouffalo SDK
1.0
Bouffalolab Software Development Kit
|
![]() |
Modules | |
i2s role definition | |
i2s mode definition | |
i2s mode definition | |
i2s slot width definition | |
i2s interrupt status definition | |
i2s feature control cmd definition | |
i2s data enable type | |
Data Structures | |
struct | bflb_i2s_config_s |
I2S configuration structure. More... | |
Functions | |
void | bflb_i2s_init (struct bflb_device_s *dev, const struct bflb_i2s_config_s *config) |
Initialize i2s. More... | |
void | bflb_i2s_deinit (struct bflb_device_s *dev) |
Deinitialize i2s. More... | |
void | bflb_i2s_link_txdma (struct bflb_device_s *dev, bool enable) |
Enable i2s tx dma. More... | |
void | bflb_i2s_link_rxdma (struct bflb_device_s *dev, bool enable) |
Enable i2s rx dma. More... | |
void | bflb_i2s_txint_mask (struct bflb_device_s *dev, bool mask) |
Enable or disable i2s rx fifo threhold interrupt. More... | |
void | bflb_i2s_rxint_mask (struct bflb_device_s *dev, bool mask) |
Enable or disable i2s rx fifo threhold interrupt. More... | |
void | bflb_i2s_errint_mask (struct bflb_device_s *dev, bool mask) |
Enable or disable i2s error interrupt. More... | |
uint32_t | bflb_i2s_get_intstatus (struct bflb_device_s *dev) |
Get i2s interrupt status. More... | |
int | bflb_i2s_feature_control (struct bflb_device_s *dev, int cmd, size_t arg) |
Control i2s feature. More... | |
void bflb_i2s_deinit | ( | struct bflb_device_s * | dev | ) |
Deinitialize i2s.
[in] | dev | device handle |
void bflb_i2s_errint_mask | ( | struct bflb_device_s * | dev, |
bool | mask | ||
) |
Enable or disable i2s error interrupt.
[in] | dev | device handle |
[in] | mask | true means disable, false means enable |
int bflb_i2s_feature_control | ( | struct bflb_device_s * | dev, |
int | cmd, | ||
size_t | arg | ||
) |
Control i2s feature.
[in] | dev | device handle |
[in] | cmd | feature command, use i2s feature control cmd definition |
[in] | arg | user data |
uint32_t bflb_i2s_get_intstatus | ( | struct bflb_device_s * | dev | ) |
Get i2s interrupt status.
[in] | dev | device handle |
void bflb_i2s_init | ( | struct bflb_device_s * | dev, |
const struct bflb_i2s_config_s * | config | ||
) |
Initialize i2s.
[in] | dev | device handle |
[in] | config | pointer to save i2s config |
void bflb_i2s_link_rxdma | ( | struct bflb_device_s * | dev, |
bool | enable | ||
) |
Enable i2s rx dma.
[in] | dev | device handle |
[in] | enable | true means enable, otherwise disable. |
void bflb_i2s_link_txdma | ( | struct bflb_device_s * | dev, |
bool | enable | ||
) |
Enable i2s tx dma.
[in] | dev | device handle |
[in] | enable | true means enable, otherwise disable. |
void bflb_i2s_rxint_mask | ( | struct bflb_device_s * | dev, |
bool | mask | ||
) |
Enable or disable i2s rx fifo threhold interrupt.
[in] | dev | device handle |
[in] | mask | true means disable, false means enable |
void bflb_i2s_txint_mask | ( | struct bflb_device_s * | dev, |
bool | mask | ||
) |
Enable or disable i2s rx fifo threhold interrupt.
[in] | dev | device handle |
[in] | mask | true means disable, false means enable |