text: /*
   * This file is a part of the open source stm32plus library.
   * Copyright (c) 2011,2012,2013,2014 Andy Brown <www.andybrown.me.uk>
   * Please see website for licensing terms.
   */
  
  #pragma once
  
  // ensure the MCU series is correct
  #ifndef STM32PLUS_F4
  #error This class can only be used with the STM32F4 series
  #endif
  
  
  namespace stm32plus {
  
    /**
     * Feature collection for this DMA channel. Parameterise this class with the features
     * that you want to use on this channel.
     */
  
    template<class... Features>
    class Dma1Channel0Stream3 : public Dma,
                                public Features... {
  
      public:
  
        /**
         * Constructor
         */
  
        Dma1Channel0Stream3()
          : Dma(DMA1_Stream3,DMA_Channel_0,DMA_FLAG_TCIF3,DMA_FLAG_HTIF3,DMA_FLAG_TEIF3),
            Features(static_cast<Dma&>(*this))... {
  
          ClockControl<PERIPHERAL_DMA1>::On();
        }
    };
  
  
    /**
     * Types for the peripherals mapped to this channel
     */
  
    template<class... Features> using Spi2RxDmaChannel=Dma1Channel0Stream3<Features...>;
  }
  