RTEMS 6.1-rc6
|
#include "fsl_common.h"
Go to the source code of this file.
Data Structures | |
struct | _dac12_hardware_info |
DAC12 hardware information. More... | |
struct | dac12_config_t |
DAC12 module configuration. More... | |
Functions | |
Initialization and de-initialization | |
void | DAC12_GetHardwareInfo (DAC_Type *base, dac12_hardware_info_t *info) |
Get hardware information about this module. | |
void | DAC12_Init (DAC_Type *base, const dac12_config_t *config) |
Initialize the DAC12 module. | |
void | DAC12_GetDefaultConfig (dac12_config_t *config) |
Initializes the DAC12 user configuration structure. | |
void | DAC12_Deinit (DAC_Type *base) |
De-initialize the DAC12 module. | |
Status | |
Interrupts | |
DMA control | |
Functional feature |
Driver version | |
#define | FSL_DAC12_DRIVER_VERSION (MAKE_VERSION(2, 1, 0)) |
DAC12 driver version 2.1.0. | |
#define | DAC12_CR_W1C_FLAGS_MASK (DAC_CR_OVFF_MASK | DAC_CR_UDFF_MASK) |
Define "write 1 to clear" flags. | |
#define | DAC12_CR_ALL_FLAGS_MASK (DAC12_CR_W1C_FLAGS_MASK | DAC_CR_WMF_MASK | DAC_CR_NEMPTF_MASK | DAC_CR_FULLF_MASK) |
Define all the flag bits in DACx_CR register. | |
enum | _dac12_status_flags { kDAC12_OverflowFlag = DAC_CR_OVFF_MASK , kDAC12_UnderflowFlag = DAC_CR_UDFF_MASK , kDAC12_WatermarkFlag = DAC_CR_WMF_MASK , kDAC12_NearlyEmptyFlag = DAC_CR_NEMPTF_MASK , kDAC12_FullFlag = DAC_CR_FULLF_MASK } |
DAC12 flags. More... | |
enum | _dac12_interrupt_enable { kDAC12_UnderOrOverflowInterruptEnable = DAC_CR_UVIE_MASK , kDAC12_WatermarkInterruptEnable = DAC_CR_WTMIE_MASK , kDAC12_NearlyEmptyInterruptEnable = DAC_CR_EMPTIE_MASK , kDAC12_FullInterruptEnable = DAC_CR_FULLIE_MASK } |
DAC12 interrupts. More... | |
enum | _dac12_fifo_size_info { kDAC12_FIFOSize2 = 0U , kDAC12_FIFOSize4 = 1U , kDAC12_FIFOSize8 = 2U , kDAC12_FIFOSize16 = 3U , kDAC12_FIFOSize32 = 4U , kDAC12_FIFOSize64 = 5U , kDAC12_FIFOSize128 = 6U , kDAC12_FIFOSize256 = 7U } |
DAC12 FIFO size information provided by hardware. More... | |
enum | _dac12_fifo_work_mode { kDAC12_FIFODisabled = 0U , kDAC12_FIFOWorkAsNormalMode = 1U , kDAC12_FIFOWorkAsSwingMode = 2U } |
DAC12 FIFO work mode. More... | |
enum | _dac12_reference_voltage_source { kDAC12_ReferenceVoltageSourceAlt1 = 0U , kDAC12_ReferenceVoltageSourceAlt2 = 1U } |
DAC12 reference voltage source. More... | |
enum | _dac12_fifo_trigger_mode { kDAC12_FIFOTriggerByHardwareMode = 0U , kDAC12_FIFOTriggerBySoftwareMode = 1U } |
DAC12 FIFO trigger mode. More... | |
enum | _dac12_reference_current_source { kDAC12_ReferenceCurrentSourceDisabled = 0U , kDAC12_ReferenceCurrentSourceAlt0 = 1U , kDAC12_ReferenceCurrentSourceAlt1 = 2U , kDAC12_ReferenceCurrentSourceAlt2 = 3U } |
DAC internal reference current source. More... | |
enum | _dac12_speed_mode { kDAC12_SpeedLowMode = 0U , kDAC12_SpeedMiddleMode = 1U , kDAC12_SpeedHighMode = 2U } |
DAC analog buffer speed mode for conversion. More... | |
typedef enum _dac12_fifo_size_info | dac12_fifo_size_info_t |
DAC12 FIFO size information provided by hardware. | |
typedef enum _dac12_fifo_work_mode | dac12_fifo_work_mode_t |
DAC12 FIFO work mode. | |
typedef enum _dac12_reference_voltage_source | dac12_reference_voltage_source_t |
DAC12 reference voltage source. | |
typedef enum _dac12_fifo_trigger_mode | dac12_fifo_trigger_mode_t |
DAC12 FIFO trigger mode. | |
typedef enum _dac12_reference_current_source | dac12_reference_current_source_t |
DAC internal reference current source. | |
typedef enum _dac12_speed_mode | dac12_speed_mode_t |
DAC analog buffer speed mode for conversion. | |
typedef struct _dac12_hardware_info | dac12_hardware_info_t |
DAC12 hardware information. | |