#include <modm/platform/dac/dac_dma.hpp>
template<typename DmaChannel>
class modm::platform::DacDma::Channel1< DmaChannel >
DAC output channel 1 
 
template<typename DmaChannel > 
  
  
      
        
          | static void modm::platform::DacDma::Channel1< DmaChannel >::configure  | 
          ( | 
          const void *  | 
          data,  | 
         
        
           | 
           | 
          size_t  | 
          dataSize,  | 
         
        
           | 
           | 
          DmaChannel::CircularMode  | 
          circularMode,  | 
         
        
           | 
           | 
          DmaChannel::Priority  | 
          priority = DmaChannel::Priority::Medium  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Configure the DMA channel
- Warning
 - this function must be called before enabling the DMA channel 
 
- Precondition
 - the DMA channel must be disabled to be reconfigured
 
- Parameters
 - 
  
    | data | output data  | 
    | dataSize | number of DMA transfers to be performed  | 
    | circularMode | DMA circular mode setting  | 
    | priority | DMA transfer priority  | 
  
   
 
 
template<typename DmaChannel > 
  
  
      
        
          | static bool modm::platform::DacDma::Channel1< DmaChannel >::hasDmaUnderrun  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Returns true on DMA underrun
- Warning
 - To reset the condition both the DAC channel and DMA channel have to be disabled and and the DMA channel must be reconfigured. 
 
 
 
template<typename DmaChannel > 
  
  
      
        
          | static void modm::platform::DacDma::Channel1< DmaChannel >::setData  | 
          ( | 
          const void *  | 
          data,  | 
         
        
           | 
           | 
          size_t  | 
          dataSize  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Set data to transfer
- Precondition
 - the DMA channel must be disabled to call this function
 
- Parameters
 - 
  
    | data | output data  | 
    | dataSize | number of DMA transfers to be performed  | 
  
   
 
 
template<typename DmaChannel > 
  
  
      
        
          | static void modm::platform::DacDma::Channel1< DmaChannel >::setTriggerSource  | 
          ( | 
          uint8_t  | 
          triggerSource | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Configure the external trigger source
If DMA is used the external trigger mode is always active
- Parameters
 - 
  
    | triggerSource | trigger source id, please refer to the reference manual  | 
  
   
 
 
template<typename DmaChannel > 
  
  
      
        
          | static void modm::platform::DacDma::Channel1< DmaChannel >::startDma  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Start DMA transfers 
- Precondition
 - before starting the transfer the channel must be configured 
 
 
 
The documentation for this class was generated from the following file: