Bouffalo SDK
1.0
Bouffalolab Software Development Kit
|
#include "bflb_core.h"
Go to the source code of this file.
Data Structures | |
struct | bflb_adc_config_s |
ADC configuration structure. More... | |
struct | bflb_adc_channel_s |
ADC channel select. More... | |
struct | bflb_adc_result_s |
ADC result select. More... | |
Functions | |
void | bflb_adc_init (struct bflb_device_s *dev, const struct bflb_adc_config_s *config) |
Initialize adc. More... | |
void | bflb_adc_deinit (struct bflb_device_s *dev) |
Deinitialize adc. More... | |
void | bflb_adc_link_rxdma (struct bflb_device_s *dev, bool enable) |
Enable adc rx dma. More... | |
void | bflb_adc_set_reference_channel (int channel, int32_t millivolt) |
Select reference channel. More... | |
int | bflb_adc_channel_config (struct bflb_device_s *dev, struct bflb_adc_channel_s *chan, uint8_t channels) |
Config adc channels to sample. More... | |
void | bflb_adc_start_conversion (struct bflb_device_s *dev) |
Start adc conversion. More... | |
void | bflb_adc_stop_conversion (struct bflb_device_s *dev) |
Stop adc conversion. More... | |
uint8_t | bflb_adc_get_count (struct bflb_device_s *dev) |
Get adc number of completed conversions. More... | |
uint32_t | bflb_adc_read_raw (struct bflb_device_s *dev) |
Read adc conversion value. More... | |
void | bflb_adc_rxint_mask (struct bflb_device_s *dev, bool mask) |
Enable or disable adc conversion completion interrupt. Triggerring when a channel conversion is completed. More... | |
void | bflb_adc_errint_mask (struct bflb_device_s *dev, bool mask) |
Enable or disable adc error interrupt. More... | |
uint32_t | bflb_adc_get_intstatus (struct bflb_device_s *dev) |
Get adc interrupt instatus. More... | |
void | bflb_adc_int_clear (struct bflb_device_s *dev, uint32_t int_clear) |
Clear adc interrupt instatus. More... | |
void | bflb_adc_parse_result (struct bflb_device_s *dev, uint32_t *buffer, struct bflb_adc_result_s *result, uint16_t count) |
Parse adc conversion value into millivolt and actual numerical value. More... | |
void | bflb_adc_tsen_init (struct bflb_device_s *dev, uint8_t tsen_mod) |
Initialize adc temperature sensor. More... | |
float | bflb_adc_tsen_get_temp (struct bflb_device_s *dev) |
Get adc temperature. More... | |
void | bflb_adc_vbat_enable (struct bflb_device_s *dev) |
Enable adc vbat power. More... | |
void | bflb_adc_vbat_disable (struct bflb_device_s *dev) |
Disable adc vbat power. More... | |