Bouffalo SDK
1.0
Bouffalolab Software Development Kit
|
![]() |
Modules | |
dac clock div definition | |
dac channel select | |
dac voltage reference select | |
dac format in dma mode | |
Functions | |
void | bflb_dac_init (struct bflb_device_s *dev, uint8_t clk_div) |
Initialize dac frequence. Dac clk = 512K/clk_div, source clock must be 512K. More... | |
void | bflb_dac_deinit (struct bflb_device_s *dev) |
Deinitialize dac. More... | |
void | bflb_dac_link_txdma (struct bflb_device_s *dev, bool enable) |
Enable dac tx dma. More... | |
void | bflb_dac_set_dma_format (struct bflb_device_s *dev, uint8_t format) |
Set dac format in dma mode. More... | |
void | bflb_dac_channel_enable (struct bflb_device_s *dev, uint8_t ch) |
Enable dac channel. More... | |
void | bflb_dac_channel_disable (struct bflb_device_s *dev, uint8_t ch) |
Disable dac channel. More... | |
void | bflb_dac_set_value (struct bflb_device_s *dev, uint8_t ch, uint16_t value) |
Set dac output value. More... | |
void bflb_dac_channel_disable | ( | struct bflb_device_s * | dev, |
uint8_t | ch | ||
) |
Disable dac channel.
[in] | dev | device handle |
[in] | ch | channel number |
void bflb_dac_channel_enable | ( | struct bflb_device_s * | dev, |
uint8_t | ch | ||
) |
Enable dac channel.
[in] | dev | device handle |
[in] | ch | channel number |
void bflb_dac_deinit | ( | struct bflb_device_s * | dev | ) |
Deinitialize dac.
[in] | dev | device handle |
void bflb_dac_init | ( | struct bflb_device_s * | dev, |
uint8_t | clk_div | ||
) |
Initialize dac frequence. Dac clk = 512K/clk_div, source clock must be 512K.
[in] | dev | device handle |
[in] | frequence | dac clock div, use dac clock div definition |
void bflb_dac_link_txdma | ( | struct bflb_device_s * | dev, |
bool | enable | ||
) |
Enable dac tx dma.
[in] | dev | device handle |
[in] | enable | true means enable, otherwise disable. |
void bflb_dac_set_dma_format | ( | struct bflb_device_s * | dev, |
uint8_t | format | ||
) |
Set dac format in dma mode.
[in] | dev | device handle |
[in] | format | format type |
void bflb_dac_set_value | ( | struct bflb_device_s * | dev, |
uint8_t | ch, | ||
uint16_t | value | ||
) |
Set dac output value.
[in] | dev | device handle |
[in] | ch | channel number |
[in] | value | output value |