Atmel Software Framework

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
USBB endpoint DMA drivers

These macros manage the common features of the endpoint DMA channels.

Macros

#define Is_usb_endpoint_dma_interrupt(epdma)   (Tst_bits(AVR32_USBB_udint, AVR32_USBB_UDINT_DMA1INT_MASK << ((epdma) - 1)))
 tests if an interrupt is triggered by the selected endpoint DMA channel More...
 
#define Is_usb_endpoint_dma_interrupt_enabled(epdma)   (Tst_bits(AVR32_USBB_udinte, AVR32_USBB_UDINTE_DMA1INTE_MASK << ((epdma) - 1)))
 tests if the selected endpoint DMA channel interrupt is enabled More...
 
#define Is_usb_endpoint_int_dis_hdma_req_enabled(ep)   (Tst_bits(AVR32_USBB_ueconx(ep), AVR32_USBB_UECONX_EPDISHDMA_MASK))
 tests if the disabling of HDMA requests by endpoint interrupts is enabled More...
 
#define Usb_disable_endpoint_dma_interrupt(epdma)   (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_DMA1INTEC_MASK << ((epdma) - 1))
 disables the selected endpoint DMA channel interrupt More...
 
#define Usb_disable_endpoint_int_dis_hdma_req(ep)   (AVR32_USBB_ueconxclr(ep) = AVR32_USBB_UECONXCLR_EPDISHDMAC_MASK)
 disables the disabling of HDMA requests by endpoint interrupts More...
 
#define Usb_enable_endpoint_dma_interrupt(epdma)   (AVR32_USBB_udinteset = AVR32_USBB_UDINTESET_DMA1INTES_MASK << ((epdma) - 1))
 enables the selected endpoint DMA channel interrupt More...
 
#define Usb_enable_endpoint_int_dis_hdma_req(ep)   (AVR32_USBB_ueconxset(ep) = AVR32_USBB_UECONXSET_EPDISHDMAS_MASK)
 enables the disabling of HDMA requests by endpoint interrupts More...
 
#define Usb_raise_endpoint_dma_interrupt(epdma)   (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_DMA1INTS_MASK << ((epdma) - 1))
 raises the selected endpoint DMA channel interrupt More...
 

#define Is_usb_endpoint_dma_interrupt (   epdma)    (Tst_bits(AVR32_USBB_udint, AVR32_USBB_UDINT_DMA1INT_MASK << ((epdma) - 1)))

tests if an interrupt is triggered by the selected endpoint DMA channel

#define Is_usb_endpoint_dma_interrupt_enabled (   epdma)    (Tst_bits(AVR32_USBB_udinte, AVR32_USBB_UDINTE_DMA1INTE_MASK << ((epdma) - 1)))

tests if the selected endpoint DMA channel interrupt is enabled

#define Is_usb_endpoint_int_dis_hdma_req_enabled (   ep)    (Tst_bits(AVR32_USBB_ueconx(ep), AVR32_USBB_UECONX_EPDISHDMA_MASK))

tests if the disabling of HDMA requests by endpoint interrupts is enabled

#define Usb_disable_endpoint_dma_interrupt (   epdma)    (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_DMA1INTEC_MASK << ((epdma) - 1))

disables the selected endpoint DMA channel interrupt

#define Usb_disable_endpoint_int_dis_hdma_req (   ep)    (AVR32_USBB_ueconxclr(ep) = AVR32_USBB_UECONXCLR_EPDISHDMAC_MASK)

disables the disabling of HDMA requests by endpoint interrupts

#define Usb_enable_endpoint_dma_interrupt (   epdma)    (AVR32_USBB_udinteset = AVR32_USBB_UDINTESET_DMA1INTES_MASK << ((epdma) - 1))

enables the selected endpoint DMA channel interrupt

#define Usb_enable_endpoint_int_dis_hdma_req (   ep)    (AVR32_USBB_ueconxset(ep) = AVR32_USBB_UECONXSET_EPDISHDMAS_MASK)

enables the disabling of HDMA requests by endpoint interrupts

#define Usb_raise_endpoint_dma_interrupt (   epdma)    (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_DMA1INTS_MASK << ((epdma) - 1))

raises the selected endpoint DMA channel interrupt