USBB IP properties
[USBB low-level driver module]


Detailed Description

These macros give access to IP properties.


Defines

#define Is_usb_dpram_byte_write_capable()   (Tst_bits(AVR32_USBB_ufeatures, AVR32_USBB_UFEATURES_BYTE_WRITE_DPRAM_MASK))
 Test if DPRAM is natively byte write capable.
#define Usb_get_dma_buffer_size()   (Rd_bitfield(AVR32_USBB_ufeatures, AVR32_USBB_UFEATURES_DMA_BUFFER_SIZE_MASK))
 Get DMA buffer size.
#define Usb_get_dma_channel_nbr()   (Rd_bitfield(AVR32_USBB_ufeatures, AVR32_USBB_UFEATURES_DMA_CHANNEL_NBR_MASK))
 Get number of hardware-implemented DMA channels.
#define Usb_get_dma_fifo_word_depth()   (((Rd_bitfield(AVR32_USBB_ufeatures, AVR32_USBB_UFEATURES_DMA_FIFO_WORD_DEPTH_MASK) - 1) & ((1 << AVR32_USBB_UFEATURES_DMA_FIFO_WORD_DEPTH_SIZE) - 1)) + 1)
 Get DMA FIFO depth in words.
#define Usb_get_dpram_size()   (128 << Rd_bitfield(AVR32_USBB_ufeatures, AVR32_USBB_UFEATURES_FIFO_MAX_SIZE_MASK))
 Get DPRAM size (FIFO maximal size) in bytes.
#define Usb_get_ip_name(part)   (AVR32_USBB_unamex(part))
 Get IP name part 1 or 2.
#define Usb_get_ip_paddress_size()   (AVR32_USBB_uaddrsize)
 Get size of USBB PB address space.
#define Usb_get_ip_version()   (Rd_bitfield(AVR32_USBB_uvers, AVR32_USBB_UVERS_VERSION_NUM_MASK))
 Get IP version.
#define Usb_get_metal_fix_nbr()   (Rd_bitfield(AVR32_USBB_uvers, AVR32_USBB_UVERS_METAL_FIX_NUM_MASK))
 Get number of metal fixes.
#define Usb_get_pipe_endpoint_max_nbr()   (((Rd_bitfield(AVR32_USBB_ufeatures, AVR32_USBB_UFEATURES_EPT_NBR_MAX_MASK) - 1) & ((1 << AVR32_USBB_UFEATURES_EPT_NBR_MAX_SIZE) - 1)) + 1)
 Get maximal number of pipes/endpoints (number of hardware-implemented pipes/endpoints).


Define Documentation

 
#define Is_usb_dpram_byte_write_capable (  )     (Tst_bits(AVR32_USBB_ufeatures, AVR32_USBB_UFEATURES_BYTE_WRITE_DPRAM_MASK))

Test if DPRAM is natively byte write capable.

Definition at line 187 of file usb_drv.h.

 
#define Usb_get_dma_buffer_size (  )     (Rd_bitfield(AVR32_USBB_ufeatures, AVR32_USBB_UFEATURES_DMA_BUFFER_SIZE_MASK))

Get DMA buffer size.

Definition at line 181 of file usb_drv.h.

 
#define Usb_get_dma_channel_nbr (  )     (Rd_bitfield(AVR32_USBB_ufeatures, AVR32_USBB_UFEATURES_DMA_CHANNEL_NBR_MASK))

Get number of hardware-implemented DMA channels.

Definition at line 179 of file usb_drv.h.

 
#define Usb_get_dma_fifo_word_depth (  )     (((Rd_bitfield(AVR32_USBB_ufeatures, AVR32_USBB_UFEATURES_DMA_FIFO_WORD_DEPTH_MASK) - 1) & ((1 << AVR32_USBB_UFEATURES_DMA_FIFO_WORD_DEPTH_SIZE) - 1)) + 1)

Get DMA FIFO depth in words.

Definition at line 183 of file usb_drv.h.

 
#define Usb_get_dpram_size (  )     (128 << Rd_bitfield(AVR32_USBB_ufeatures, AVR32_USBB_UFEATURES_FIFO_MAX_SIZE_MASK))

Get DPRAM size (FIFO maximal size) in bytes.

Definition at line 185 of file usb_drv.h.

#define Usb_get_ip_name ( part   )     (AVR32_USBB_unamex(part))

Get IP name part 1 or 2.

Definition at line 171 of file usb_drv.h.

 
#define Usb_get_ip_paddress_size (  )     (AVR32_USBB_uaddrsize)

Get size of USBB PB address space.

Definition at line 189 of file usb_drv.h.

 
#define Usb_get_ip_version (  )     (Rd_bitfield(AVR32_USBB_uvers, AVR32_USBB_UVERS_VERSION_NUM_MASK))

Get IP version.

Definition at line 173 of file usb_drv.h.

 
#define Usb_get_metal_fix_nbr (  )     (Rd_bitfield(AVR32_USBB_uvers, AVR32_USBB_UVERS_METAL_FIX_NUM_MASK))

Get number of metal fixes.

Definition at line 175 of file usb_drv.h.

 
#define Usb_get_pipe_endpoint_max_nbr (  )     (((Rd_bitfield(AVR32_USBB_ufeatures, AVR32_USBB_UFEATURES_EPT_NBR_MAX_MASK) - 1) & ((1 << AVR32_USBB_UFEATURES_EPT_NBR_MAX_SIZE) - 1)) + 1)

Get maximal number of pipes/endpoints (number of hardware-implemented pipes/endpoints).

Definition at line 177 of file usb_drv.h.


Generated on Fri Feb 19 02:27:53 2010 for AVR32 - USB Enumeration Example by  doxygen 1.5.5