RTEMS
5.0.0
|
Data Structures | |
struct | Dacc |
Dacc hardware registers. More... | |
Macros | |
#define | DACC_CR_SWRST (0x1u << 0) |
(DACC_CR) Software Reset | |
#define | DACC_MR_MAXS0 (0x1u << 0) |
(DACC_MR) Max Speed Mode for Channel 0 | |
#define | DACC_MR_MAXS0_TRIG_EVENT (0x0u << 0) |
(DACC_MR) External trigger mode or Free-running mode enabled. (See TRGENx.DACC_TRIGR.) | |
#define | DACC_MR_MAXS0_MAXIMUM (0x1u << 0) |
(DACC_MR) Max speed mode enabled. | |
#define | DACC_MR_MAXS1 (0x1u << 1) |
(DACC_MR) Max Speed Mode for Channel 1 | |
#define | DACC_MR_MAXS1_TRIG_EVENT (0x0u << 1) |
(DACC_MR) External trigger mode or Free-running mode enabled. (See TRGENx.DACC_TRIGR.) | |
#define | DACC_MR_MAXS1_MAXIMUM (0x1u << 1) |
(DACC_MR) Max speed mode enabled. | |
#define | DACC_MR_WORD (0x1u << 4) |
(DACC_MR) Word Transfer Mode | |
#define | DACC_MR_WORD_DISABLED (0x0u << 4) |
(DACC_MR) One data to convert is written to the FIFO per access to DACC. | |
#define | DACC_MR_WORD_ENABLED (0x1u << 4) |
(DACC_MR) Two data to convert are written to the FIFO per access to DACC (reduces the number of requests to DMA and the number of system bus accesses). | |
#define | DACC_MR_ZERO (0x1u << 5) |
(DACC_MR) Must always be written to 0. | |
#define | DACC_MR_DIFF (0x1u << 23) |
(DACC_MR) Differential Mode | |
#define | DACC_MR_DIFF_DISABLED (0x0u << 23) |
(DACC_MR) DAC0 and DAC1 are single-ended outputs. | |
#define | DACC_MR_DIFF_ENABLED (0x1u << 23) |
(DACC_MR) DACP and DACN are differential outputs. The differential level is configured by the channel 0 value. | |
#define | DACC_MR_PRESCALER_Pos 24 |
#define | DACC_MR_PRESCALER_Msk (0xfu << DACC_MR_PRESCALER_Pos) |
(DACC_MR) Peripheral Clock to DAC Clock Ratio | |
#define | DACC_MR_PRESCALER(value) ((DACC_MR_PRESCALER_Msk & ((value) << DACC_MR_PRESCALER_Pos))) |
#define | DACC_TRIGR_TRGEN0 (0x1u << 0) |
(DACC_TRIGR) Trigger Enable of Channel 0 | |
#define | DACC_TRIGR_TRGEN0_DIS (0x0u << 0) |
(DACC_TRIGR) External trigger mode disabled. DACC is in Free-running mode or Max speed mode. | |
#define | DACC_TRIGR_TRGEN0_EN (0x1u << 0) |
(DACC_TRIGR) External trigger mode enabled. | |
#define | DACC_TRIGR_TRGEN1 (0x1u << 1) |
(DACC_TRIGR) Trigger Enable of Channel 1 | |
#define | DACC_TRIGR_TRGEN1_DIS (0x0u << 1) |
(DACC_TRIGR) External trigger mode disabled. DACC is in Free-running mode or Max speed mode. | |
#define | DACC_TRIGR_TRGEN1_EN (0x1u << 1) |
(DACC_TRIGR) External trigger mode enabled. | |
#define | DACC_TRIGR_TRGSEL0_Pos 4 |
#define | DACC_TRIGR_TRGSEL0_Msk (0x7u << DACC_TRIGR_TRGSEL0_Pos) |
(DACC_TRIGR) Trigger Selection of Channel 0 | |
#define | DACC_TRIGR_TRGSEL0(value) ((DACC_TRIGR_TRGSEL0_Msk & ((value) << DACC_TRIGR_TRGSEL0_Pos))) |
#define | DACC_TRIGR_TRGSEL0_TRGSEL0 (0x0u << 4) |
(DACC_TRIGR) TC0 output | |
#define | DACC_TRIGR_TRGSEL0_TRGSEL1 (0x1u << 4) |
(DACC_TRIGR) TC1 output | |
#define | DACC_TRIGR_TRGSEL0_TRGSEL2 (0x2u << 4) |
(DACC_TRIGR) TC2 output | |
#define | DACC_TRIGR_TRGSEL0_TRGSEL3 (0x3u << 4) |
(DACC_TRIGR) PWM0 event 0 | |
#define | DACC_TRIGR_TRGSEL0_TRGSEL4 (0x4u << 4) |
(DACC_TRIGR) PWM0 event 1 | |
#define | DACC_TRIGR_TRGSEL0_TRGSEL5 (0x5u << 4) |
(DACC_TRIGR) PWM1 event 0 | |
#define | DACC_TRIGR_TRGSEL0_TRGSEL6 (0x6u << 4) |
(DACC_TRIGR) PWM1 event 1 | |
#define | DACC_TRIGR_TRGSEL1_Pos 8 |
#define | DACC_TRIGR_TRGSEL1_Msk (0x7u << DACC_TRIGR_TRGSEL1_Pos) |
(DACC_TRIGR) Trigger Selection of Channel 1 | |
#define | DACC_TRIGR_TRGSEL1(value) ((DACC_TRIGR_TRGSEL1_Msk & ((value) << DACC_TRIGR_TRGSEL1_Pos))) |
#define | DACC_TRIGR_TRGSEL1_TRGSEL0 (0x0u << 8) |
(DACC_TRIGR) TC0 output | |
#define | DACC_TRIGR_TRGSEL1_TRGSEL1 (0x1u << 8) |
(DACC_TRIGR) TC1 output | |
#define | DACC_TRIGR_TRGSEL1_TRGSEL2 (0x2u << 8) |
(DACC_TRIGR) TC2 output | |
#define | DACC_TRIGR_TRGSEL1_TRGSEL3 (0x3u << 8) |
(DACC_TRIGR) PWM0 event 0 | |
#define | DACC_TRIGR_TRGSEL1_TRGSEL4 (0x4u << 8) |
(DACC_TRIGR) PWM0 event 1 | |
#define | DACC_TRIGR_TRGSEL1_TRGSEL5 (0x5u << 8) |
(DACC_TRIGR) PWM1 event 0 | |
#define | DACC_TRIGR_TRGSEL1_TRGSEL6 (0x6u << 8) |
(DACC_TRIGR) PWM1 event 1 | |
#define | DACC_TRIGR_OSR0_Pos 16 |
#define | DACC_TRIGR_OSR0_Msk (0x7u << DACC_TRIGR_OSR0_Pos) |
(DACC_TRIGR) Over Sampling Ratio of Channel 0 | |
#define | DACC_TRIGR_OSR0(value) ((DACC_TRIGR_OSR0_Msk & ((value) << DACC_TRIGR_OSR0_Pos))) |
#define | DACC_TRIGR_OSR0_OSR_1 (0x0u << 16) |
(DACC_TRIGR) OSR = 1 | |
#define | DACC_TRIGR_OSR0_OSR_2 (0x1u << 16) |
(DACC_TRIGR) OSR = 2 | |
#define | DACC_TRIGR_OSR0_OSR_4 (0x2u << 16) |
(DACC_TRIGR) OSR = 4 | |
#define | DACC_TRIGR_OSR0_OSR_8 (0x3u << 16) |
(DACC_TRIGR) OSR = 8 | |
#define | DACC_TRIGR_OSR0_OSR_16 (0x4u << 16) |
(DACC_TRIGR) OSR = 16 | |
#define | DACC_TRIGR_OSR0_OSR_32 (0x5u << 16) |
(DACC_TRIGR) OSR = 32 | |
#define | DACC_TRIGR_OSR1_Pos 20 |
#define | DACC_TRIGR_OSR1_Msk (0x7u << DACC_TRIGR_OSR1_Pos) |
(DACC_TRIGR) Over Sampling Ratio of Channel 1 | |
#define | DACC_TRIGR_OSR1(value) ((DACC_TRIGR_OSR1_Msk & ((value) << DACC_TRIGR_OSR1_Pos))) |
#define | DACC_TRIGR_OSR1_OSR_1 (0x0u << 20) |
(DACC_TRIGR) OSR = 1 | |
#define | DACC_TRIGR_OSR1_OSR_2 (0x1u << 20) |
(DACC_TRIGR) OSR = 2 | |
#define | DACC_TRIGR_OSR1_OSR_4 (0x2u << 20) |
(DACC_TRIGR) OSR = 4 | |
#define | DACC_TRIGR_OSR1_OSR_8 (0x3u << 20) |
(DACC_TRIGR) OSR = 8 | |
#define | DACC_TRIGR_OSR1_OSR_16 (0x4u << 20) |
(DACC_TRIGR) OSR = 16 | |
#define | DACC_TRIGR_OSR1_OSR_32 (0x5u << 20) |
(DACC_TRIGR) OSR = 32 | |
#define | DACC_CHER_CH0 (0x1u << 0) |
(DACC_CHER) Channel 0 Enable | |
#define | DACC_CHER_CH1 (0x1u << 1) |
(DACC_CHER) Channel 1 Enable | |
#define | DACC_CHDR_CH0 (0x1u << 0) |
(DACC_CHDR) Channel 0 Disable | |
#define | DACC_CHDR_CH1 (0x1u << 1) |
(DACC_CHDR) Channel 1 Disable | |
#define | DACC_CHSR_CH0 (0x1u << 0) |
(DACC_CHSR) Channel 0 Status | |
#define | DACC_CHSR_CH1 (0x1u << 1) |
(DACC_CHSR) Channel 1 Status | |
#define | DACC_CHSR_DACRDY0 (0x1u << 8) |
(DACC_CHSR) DAC Ready Flag | |
#define | DACC_CHSR_DACRDY1 (0x1u << 9) |
(DACC_CHSR) DAC Ready Flag | |
#define | DACC_CDR_DATA0_Pos 0 |
#define | DACC_CDR_DATA0_Msk (0xffffu << DACC_CDR_DATA0_Pos) |
(DACC_CDR[2]) Data to Convert for channel 0 | |
#define | DACC_CDR_DATA0(value) ((DACC_CDR_DATA0_Msk & ((value) << DACC_CDR_DATA0_Pos))) |
#define | DACC_CDR_DATA1_Pos 16 |
#define | DACC_CDR_DATA1_Msk (0xffffu << DACC_CDR_DATA1_Pos) |
(DACC_CDR[2]) Data to Convert for channel 1 | |
#define | DACC_CDR_DATA1(value) ((DACC_CDR_DATA1_Msk & ((value) << DACC_CDR_DATA1_Pos))) |
#define | DACC_IER_TXRDY0 (0x1u << 0) |
(DACC_IER) Transmit Ready Interrupt Enable of channel 0 | |
#define | DACC_IER_TXRDY1 (0x1u << 1) |
(DACC_IER) Transmit Ready Interrupt Enable of channel 1 | |
#define | DACC_IER_EOC0 (0x1u << 4) |
(DACC_IER) End of Conversion Interrupt Enable of channel 0 | |
#define | DACC_IER_EOC1 (0x1u << 5) |
(DACC_IER) End of Conversion Interrupt Enable of channel 1 | |
#define | DACC_IDR_TXRDY0 (0x1u << 0) |
(DACC_IDR) Transmit Ready Interrupt Disable of channel 0 | |
#define | DACC_IDR_TXRDY1 (0x1u << 1) |
(DACC_IDR) Transmit Ready Interrupt Disable of channel 1 | |
#define | DACC_IDR_EOC0 (0x1u << 4) |
(DACC_IDR) End of Conversion Interrupt Disable of channel 0 | |
#define | DACC_IDR_EOC1 (0x1u << 5) |
(DACC_IDR) End of Conversion Interrupt Disable of channel 1 | |
#define | DACC_IMR_TXRDY0 (0x1u << 0) |
(DACC_IMR) Transmit Ready Interrupt Mask of channel 0 | |
#define | DACC_IMR_TXRDY1 (0x1u << 1) |
(DACC_IMR) Transmit Ready Interrupt Mask of channel 1 | |
#define | DACC_IMR_EOC0 (0x1u << 4) |
(DACC_IMR) End of Conversion Interrupt Mask of channel 0 | |
#define | DACC_IMR_EOC1 (0x1u << 5) |
(DACC_IMR) End of Conversion Interrupt Mask of channel 1 | |
#define | DACC_ISR_TXRDY0 (0x1u << 0) |
(DACC_ISR) Transmit Ready Interrupt Flag of channel 0 | |
#define | DACC_ISR_TXRDY1 (0x1u << 1) |
(DACC_ISR) Transmit Ready Interrupt Flag of channel 1 | |
#define | DACC_ISR_EOC0 (0x1u << 4) |
(DACC_ISR) End of Conversion Interrupt Flag of channel 0 | |
#define | DACC_ISR_EOC1 (0x1u << 5) |
(DACC_ISR) End of Conversion Interrupt Flag of channel 1 | |
#define | DACC_ACR_IBCTLCH0_Pos 0 |
#define | DACC_ACR_IBCTLCH0_Msk (0x3u << DACC_ACR_IBCTLCH0_Pos) |
(DACC_ACR) Analog Output Current Control | |
#define | DACC_ACR_IBCTLCH0(value) ((DACC_ACR_IBCTLCH0_Msk & ((value) << DACC_ACR_IBCTLCH0_Pos))) |
#define | DACC_ACR_IBCTLCH1_Pos 2 |
#define | DACC_ACR_IBCTLCH1_Msk (0x3u << DACC_ACR_IBCTLCH1_Pos) |
(DACC_ACR) Analog Output Current Control | |
#define | DACC_ACR_IBCTLCH1(value) ((DACC_ACR_IBCTLCH1_Msk & ((value) << DACC_ACR_IBCTLCH1_Pos))) |
#define | DACC_WPMR_WPEN (0x1u << 0) |
(DACC_WPMR) Write Protection Enable | |
#define | DACC_WPMR_WPKEY_Pos 8 |
#define | DACC_WPMR_WPKEY_Msk (0xffffffu << DACC_WPMR_WPKEY_Pos) |
(DACC_WPMR) Write Protect Key | |
#define | DACC_WPMR_WPKEY(value) ((DACC_WPMR_WPKEY_Msk & ((value) << DACC_WPMR_WPKEY_Pos))) |
#define | DACC_WPMR_WPKEY_PASSWD (0x444143u << 8) |
(DACC_WPMR) Writing any other value in this field aborts the write operation of bit WPEN.Always reads as 0. | |
#define | DACC_WPSR_WPVS (0x1u << 0) |
(DACC_WPSR) Write Protection Violation Status | |
#define | DACC_WPSR_WPVSRC_Pos 8 |
#define | DACC_WPSR_WPVSRC_Msk (0xffu << DACC_WPSR_WPVSRC_Pos) |
(DACC_WPSR) Write Protection Violation Source | |
SOFTWARE API DEFINITION FOR Digital-to-Analog Converter Controller