![]() |
RTEMS 6.3
|
Go to the source code of this file.
Data Structures | |
| struct | DacCmd |
| Dac Transfer Request prepared by the application upper layer. More... | |
| struct | DacDma |
Macros | |
| #define | DAC_OK 0 |
| #define | DAC_ERROR 1 |
| #define | DAC_ERROR_LOCK 2 |
| #define | DACC_CHANNEL_0 0 |
| #define | DACC_CHANNEL_1 1 |
| #define | DACC_SoftReset(pDACC) |
| #define | DACC_CfgModeReg(pDACC, mode) |
| #define | DACC_GetModeReg(pDACC) |
| #define | DACC_CfgTrigger(pDACC, mode) |
| #define | DACC_EnableChannel(pDACC, channel) |
| #define | DACC_DisableChannel(pDACC, channel) |
| #define | DACC_EnableIt(pDACC, mode) |
| #define | DACC_DisableIt(pDACC, mode) |
| #define | DACC_GetStatus(pDACC) |
| #define | DACC_GetChannelStatus(pDACC) |
| #define | DACC_GetInterruptMaskStatus(pDACC) |
Typedefs | |
| typedef void(*) | DacCallback(uint8_t, void *) |
Functions | |
| uint32_t | Dac_ConfigureDma (DacDma *pDacd, Dacc *pDacHw, uint8_t DacId, sXdmad *pXdmad) |
| Initializes the DacDma structure and the corresponding DAC & DMA . hardware select value. The driver will uses DMA channel 0 for RX . The DMA channels are freed automatically when no DMA command processing. | |
| uint32_t | Dac_SendData (DacDma *pDacd, DacCmd *pCommand) |
| Starts a DAC transfer. This is a non blocking function. It will return as soon as the transfer is started. | |
Interface for configuration the Analog-to-Digital Converter (DACC) peripheral.
| #define DACC_CfgModeReg | ( | pDACC, | |
| mode ) |
| #define DACC_CfgTrigger | ( | pDACC, | |
| mode ) |
| #define DACC_DisableChannel | ( | pDACC, | |
| channel ) |
| #define DACC_DisableIt | ( | pDACC, | |
| mode ) |
| #define DACC_EnableChannel | ( | pDACC, | |
| channel ) |
| #define DACC_EnableIt | ( | pDACC, | |
| mode ) |
| #define DACC_GetChannelStatus | ( | pDACC | ) |
| #define DACC_GetInterruptMaskStatus | ( | pDACC | ) |
| #define DACC_GetModeReg | ( | pDACC | ) |
| #define DACC_GetStatus | ( | pDACC | ) |
| #define DACC_SoftReset | ( | pDACC | ) |
| typedef void(*) DacCallback(uint8_t, void *) |
DAC transfer complete callback.
Initializes the DacDma structure and the corresponding DAC & DMA . hardware select value. The driver will uses DMA channel 0 for RX . The DMA channels are freed automatically when no DMA command processing.
| pDacd | Pointer to a DacDma instance. |
| pDacHw | Associated Dac peripheral. |
| DacId | Dac peripheral identifier. |
| pDmad | Pointer to a Dmad instance. |
Starts a DAC transfer. This is a non blocking function. It will return as soon as the transfer is started.
| pDacd | Pointer to a DacDma instance. |
| pCommand | Pointer to the Dac command to execute. |