SAM Peripheral Digital-to-Analog Converter Driver.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | dac_chan_config |
DAC channel configuration structure. More... | |
struct | dac_config |
DAC configuration structure. More... | |
struct | dac_events |
DAC event enable/disable structure. More... | |
struct | dac_module |
DAC software device instance structure. More... | |
Macros | |
DAC Status Flags | |
DAC status flags, returned by dac_get_status() and cleared by dac_clear_status(). | |
#define | DAC_STATUS_CHANNEL_0_EMPTY (1UL << 0) |
Data Buffer Empty Channel 0 - Set when data is transferred from DATABUF to DATA by a start conversion event and DATABUF is ready for new data. More... | |
#define | DAC_STATUS_CHANNEL_1_EMPTY (1UL << 1) |
Data Buffer Empty Channel 1 - Set when data is transferred from DATABUF to DATA by a start conversion event and DATABUF is ready for new data. More... | |
#define | DAC_STATUS_CHANNEL_0_UNDERRUN (1UL << 2) |
Underrun Channel 0 - Set when a start conversion event occurs when DATABUF is empty. More... | |
#define | DAC_STATUS_CHANNEL_1_UNDERRUN (1UL << 3) |
Underrun Channel 1 - Set when a start conversion event occurs when DATABUF is empty. More... | |
Enumerations | |
enum | dac_channel { DAC_CHANNEL_0, DAC_CHANNEL_1 } |
DAC channel selection enum. More... | |
enum | dac_current_ctrl { DAC_CURRENT_100K = DAC_DACCTRL_CCTRL(0), DAC_CURRENT_1M = DAC_DACCTRL_CCTRL(1), DAC_CURRENT_12M = DAC_DACCTRL_CCTRL(2), DAC_CURRENT_RESERVED = DAC_DACCTRL_CCTRL(3) } |
DAC current control enum. More... | |
enum | dac_reference { DAC_REFERENCE_VREFPU = DAC_CTRLB_REFSEL(0), DAC_REFERENCE_VDDANA = DAC_CTRLB_REFSEL(1), DAC_REFERENCE_VREFPB = DAC_CTRLB_REFSEL(2), DAC_REFERENCE_INTREF = DAC_CTRLB_REFSEL(3) } |
DAC reference voltage enum. More... | |
Functions | |
Status Management (Channel) | |
bool | dac_chan_is_end_of_conversion (struct dac_module *const module_inst, enum dac_channel channel) |
Retrieves the status of DAC channel end of conversion. More... | |