These macros give access to IP properties.
Macros | |
#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. More... | |
#define | Usb_get_dma_buffer_size() (Rd_bitfield(AVR32_USBB_ufeatures, AVR32_USBB_UFEATURES_DMA_BUFFER_SIZE_MASK)) |
Get DMA buffer size. More... | |
#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. More... | |
#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. More... | |
#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. More... | |
#define | Usb_get_ip_name(part) (AVR32_USBB_unamex(part)) |
Get IP name part 1 or 2. More... | |
#define | Usb_get_ip_paddress_size() (AVR32_USBB_uaddrsize) |
Get size of USBB PB address space. More... | |
#define | Usb_get_ip_version() (Rd_bitfield(AVR32_USBB_uvers, AVR32_USBB_UVERS_VERSION_NUM_MASK)) |
Get IP version. More... | |
#define | Usb_get_metal_fix_nbr() (Rd_bitfield(AVR32_USBB_uvers, AVR32_USBB_UVERS_METAL_FIX_NUM_MASK)) |
Get number of metal fixes. More... | |
#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) More... | |
#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)