|
|
These macros give access to IP properties
Get maximal number of endpoints
|
#define | uhd_get_pipe_max_nbr() |
|
|
VBOF is an optional output pin which allows to enable or disable the external VBus generator.
Enables hardware control of USB_VBOF output pin when a Vbus error occur
|
#define | uhd_enable_vbus_error_hw_control() USBB_CLR_BITS(USBCON,VBUSHWC) |
|
#define | uhd_disable_vbus_error_hw_control() USBB_SET_BITS(USBCON,VBUSHWC) |
| Disables hardware control of USB_VBOF output pin when a Vbus error occur. More...
|
|
#define | USB_VBOF_PIN ATPASTE2(USB_VBOF, _PIN) |
| Pin and function for USB_VBOF according to configuration from USB_VBOF. More...
|
|
#define | USB_VBOF_FUNCTION ATPASTE2(USB_VBOF, _FUNCTION) |
|
#define | uhd_output_vbof_pin() |
| Output USB_VBOF onto its pin. More...
|
|
#define | uhd_set_vbof_active_high() USBB_CLR_BITS(USBCON,VBUSPO) |
| Set USB_VBOF output pin polarity. More...
|
|
#define | uhd_set_vbof_active_low() USBB_SET_BITS(USBCON,VBUSPO) |
|
#define | uhd_enable_vbus() USBB_REG_SET(USBSTA,VBUSRQ) |
| Requests VBus activation. More...
|
|
#define | uhd_disable_vbus() USBB_REG_CLR(USBSTA,VBUSRQ) |
| Requests VBus deactivation. More...
|
|
#define | Is_uhd_vbus_enabled() USBB_TST_BITS(USBSTA,VBUSRQ) |
| Tests if VBus activation has been requested. More...
|
|
|
The VBus level is always checked by USBB hardware.
|
#define | uhd_enable_vbus_error_interrupt() USBB_SET_BITS(USBCON,VBERRE) |
|
#define | uhd_disable_vbus_error_interrupt() USBB_CLR_BITS(USBCON,VBERRE) |
|
#define | Is_uhd_vbus_error_interrupt_enabled() USBB_TST_BITS(USBCON,VBERRE) |
|
#define | uhd_ack_vbus_error_interrupt() USBB_REG_CLR(USBSTA,VBERRI) |
|
#define | Is_uhd_vbus_error_interrupt() USBB_TST_BITS(USBSTA,VBERRI) |
|
|
#define | uhd_enable_connection_int() USBB_REG_SET(UHINTE,DCONNIE) |
|
#define | uhd_disable_connection_int() USBB_REG_CLR(UHINTE,DCONNIE) |
|
#define | Is_uhd_connection_int_enabled() USBB_TST_BITS(UHINTE,DCONNIE) |
|
#define | uhd_ack_connection() USBB_REG_CLR(UHINT,DCONNI) |
|
#define | Is_uhd_connection() USBB_TST_BITS(UHINT,DCONNI) |
|
#define | uhd_enable_disconnection_int() USBB_REG_SET(UHINTE,DDISCIE) |
|
#define | uhd_disable_disconnection_int() USBB_REG_CLR(UHINTE,DDISCIE) |
|
#define | Is_uhd_disconnection_int_enabled() USBB_TST_BITS(UHINTE,DDISCIE) |
|
#define | uhd_ack_disconnection() USBB_REG_CLR(UHINT,DDISCI) |
|
#define | Is_uhd_disconnection() USBB_TST_BITS(UHINT,DDISCI) |
|
|
#define | uhd_get_speed_mode() USBB_RD_BITFIELD(USBSTA,SPEED) |
|
#define | Is_uhd_low_speed_mode() (USBB_RD_BITFIELD(USBSTA,SPEED) == AVR32_USBB_USBSTA_SPEED_LOW) |
|
#define | Is_uhd_full_speed_mode() (USBB_RD_BITFIELD(USBSTA,SPEED) == AVR32_USBB_USBSTA_SPEED_FULL) |
|
#define | Is_uhd_high_speed_mode() false |
|
|
These macros manage the bus events: reset, SOF, resume, wakeup.
|
#define | uhd_start_reset() USBB_SET_BITS(UHCON,RESET) |
| Initiates a reset event. More...
|
|
#define | Is_uhd_starting_reset() USBB_TST_BITS(UHCON,RESET) |
|
#define | uhd_stop_reset() USBB_CLR_BITS(UHCON,RESET) |
|
#define | uhd_enable_reset_sent_interrupt() USBB_REG_SET(UHINTE,RSTIE) |
|
#define | uhd_disable_reset_sent_interrupt() USBB_REG_CLR(UHINTE,RSTIE) |
|
#define | Is_uhd_reset_sent_interrupt_enabled() USBB_TST_BITS(UHINTE,RSTIE) |
|
#define | uhd_ack_reset_sent() USBB_REG_CLR(UHINT,RSTI) |
|
#define | Is_uhd_reset_sent() USBB_TST_BITS(UHINT,RSTI) |
|
|
#define | uhd_enable_sof() USBB_SET_BITS(UHCON,SOFE) |
| Initiates a SOF events. More...
|
|
#define | uhd_disable_sof() USBB_CLR_BITS(UHCON,SOFE) |
|
#define | Is_uhd_sof_enabled() USBB_TST_BITS(UHCON,SOFE) |
|
#define | uhd_get_sof_number() USBB_RD_BITFIELD(UHFNUM,FNUM) |
|
#define | uhd_get_microsof_number() |
|
#define | uhd_get_frame_position() USBB_RD_BITFIELD(UHFNUM,FLENHIGH) |
|
#define | uhd_enable_sof_interrupt() USBB_REG_SET(UHINTE,HSOFIE) |
|
#define | uhd_disable_sof_interrupt() USBB_REG_CLR(UHINTE,HSOFIE) |
|
#define | Is_uhd_sof_interrupt_enabled() USBB_TST_BITS(UHINTE,HSOFIE) |
|
#define | uhd_ack_sof() USBB_REG_CLR(UHINT,HSOFI) |
|
#define | Is_uhd_sof() USBB_TST_BITS(UHINT,HSOFI) |
|
|
#define | uhd_send_resume() USBB_SET_BITS(UHCON,RESUME) |
| Initiates a resume event It is called downstream resume event. More...
|
|
#define | Is_uhd_sending_resume() USBB_TST_BITS(UHCON,RESUME) |
|
#define | uhd_enable_downstream_resume_interrupt() USBB_REG_SET(UHINTE,RSMEDIE) |
|
#define | uhd_disable_downstream_resume_interrupt() USBB_REG_CLR(UHINTE,RSMEDIE) |
|
#define | Is_uhd_downstream_resume_interrupt_enabled() USBB_TST_BITS(UHINTE,RSMEDIE) |
|
#define | uhd_ack_downstream_resume() USBB_REG_CLR(UHINT,RSMEDI) |
|
#define | Is_uhd_downstream_resume() USBB_TST_BITS(UHINT,RSMEDI) |
|
|
#define | uhd_enable_wakeup_interrupt() USBB_REG_SET(UHINTE,HWUPIE) |
| Detection of a wake-up event A wake-up event is received when the host controller is in the suspend mode: More...
|
|
#define | uhd_disable_wakeup_interrupt() USBB_REG_CLR(UHINTE,HWUPIE) |
|
#define | Is_uhd_wakeup_interrupt_enabled() USBB_TST_BITS(UHINTE,HWUPIE) |
|
#define | uhd_ack_wakeup() USBB_REG_CLR(UHINT,HWUPI) |
|
#define | Is_uhd_wakeup() USBB_TST_BITS(UHINT,HWUPI) |
|
#define | uhd_enable_upstream_resume_interrupt() USBB_REG_SET(UHINTE,RXRSMIE) |
|
#define | uhd_disable_upstream_resume_interrupt() USBB_REG_CLR(UHINTE,RXRSMIE) |
|
#define | Is_uhd_upstream_resume_interrupt_enabled() USBB_TST_BITS(UHINTE,RXRSMIE) |
|
#define | uhd_ack_upstream_resume() USBB_REG_CLR(UHINT,RXRSMI) |
|
#define | Is_uhd_upstream_resume() USBB_TST_BITS(UHINT,RXRSMI) |
|
|
#define | USBB_ARRAY(reg, index) (((volatile unsigned long*)(&AVR32_USBB.reg))[index]) |
| Generic macros for USBB pipe registers that can be arrayed. More...
|
|
#define | USBB_P_CLR_BITS(reg, bit, pipe) |
|
#define | USBB_P_SET_BITS(reg, bit, pipe) |
|
#define | USBB_P_TST_BITS(reg, bit, pipe) |
|
#define | USBB_P_RD_BITFIELD(reg, bit, pipe) |
|
#define | USBB_P_WR_BITFIELD(reg, bit, pipe, value) |
|
#define | USBB_P_REG_CLR(reg, bit, pipe) |
|
#define | USBB_P_REG_SET(reg, bit, pipe) |
|
|
#define | uhd_configure_address(p, addr) |
| USB address of pipes. More...
|
|
#define | uhd_get_configured_address(p) |
|
|
#define | uhd_enable_pipe(p) (Set_bits(AVR32_USBB.uprst, AVR32_USBB_UPRST_PEN0_MASK << (p))) |
| Pipe enable Enable, disable, reset, freeze. More...
|
|
#define | uhd_disable_pipe(p) (Clr_bits(AVR32_USBB.uprst, AVR32_USBB_UPRST_PEN0_MASK << (p))) |
|
#define | Is_uhd_pipe_enabled(p) (Tst_bits(AVR32_USBB.uprst, AVR32_USBB_UPRST_PEN0_MASK << (p))) |
|
#define | uhd_reset_pipe(p) |
|
#define | Is_uhd_resetting_pipe(p) (Tst_bits(AVR32_USBB.uprst, AVR32_USBB_UPRST_PRST0_MASK << (p))) |
|
#define | uhd_freeze_pipe(p) USBB_P_REG_SET(UPCON,PFREEZE,p) |
|
#define | uhd_unfreeze_pipe(p) USBB_P_REG_CLR(UPCON,PFREEZE,p) |
|
#define | Is_uhd_pipe_frozen(p) USBB_P_TST_BITS(UPCON,PFREEZE,p) |
|
#define | uhd_reset_data_toggle(p) USBB_P_REG_SET(UPCON,RSTDT,p) |
|
#define | Is_uhd_data_toggle_reset(p) USBB_P_TST_BITS(UPCON,RSTDT,p) |
|
|
#define | uhd_configure_pipe_int_req_freq(p, freq) USBB_P_WR_BITFIELD(UPCFG,INTFRQ,p,freq) |
| Pipe configuration. More...
|
|
#define | uhd_get_pipe_int_req_freq(p) USBB_P_RD_BITFIELD(UPCFG,INTFRQ,p) |
|
#define | uhd_configure_pipe_endpoint_number(p, ep) USBB_P_WR_BITFIELD(UPCFG,PEPNUM,p,ep) |
|
#define | uhd_get_pipe_endpoint_address(p) |
|
#define | uhd_get_pipe_endpoint_number(p) USBB_P_RD_BITFIELD(UPCFG,PEPNUM,p) |
|
#define | uhd_configure_pipe_type(p, type) USBB_P_WR_BITFIELD(UPCFG,PTYPE,p, type) |
|
#define | uhd_get_pipe_type(p) USBB_P_RD_BITFIELD(UPCFG,PTYPE,p) |
|
#define | Is_uhd_pipe_bulk(p) (AVR32_USBB_UPCFG0_PTYPE_BULK==uhd_get_pipe_type(p)) |
|
#define | Is_uhd_pipe_bulk_in(p) (Is_uhd_pipe_bulk(p)&&uhd_is_pipe_in(p)) |
|
#define | uhd_enable_pipe_bank_autoswitch(p) USBB_P_SET_BITS(UPCFG,AUTOSW,p) |
|
#define | uhd_disable_pipe_bank_autoswitch(p) USBB_P_CLR_BITS(UPCFG,AUTOSW,p) |
|
#define | Is_uhd_pipe_bank_autoswitch_enabled(p) USBB_P_TST_BITS(UPCFG,AUTOSW,p) |
|
#define | uhd_configure_pipe_token(p, token) USBB_P_WR_BITFIELD(UPCFG,PTOKEN,p, token) |
|
#define | uhd_get_pipe_token(p) USBB_P_RD_BITFIELD(UPCFG,PTOKEN,p) |
|
#define | uhd_is_pipe_in(p) (AVR32_USBB_UPCFG0_PTOKEN_IN==uhd_get_pipe_token(p)) |
|
#define | uhd_is_pipe_out(p) (AVR32_USBB_UPCFG0_PTOKEN_OUT==uhd_get_pipe_token(p)) |
|
#define | uhd_format_pipe_size(size) (32 - clz(((uint32_t)min(max(size, 8), 1024) << 1) - 1) - 1 - 3) |
| Bounds given integer size to allowed range and rounds it up to the nearest available greater size, then applies register format of USBB controller for pipe size bit-field. More...
|
|
#define | uhd_configure_pipe_size(p, size) USBB_P_WR_BITFIELD(UPCFG,PSIZE,p, uhd_format_pipe_size(size)) |
|
#define | uhd_get_pipe_size(p) (8 << USBB_P_RD_BITFIELD(UPCFG,PSIZE,p)) |
|
#define | uhd_configure_pipe_bank(p, bank) USBB_P_WR_BITFIELD(UPCFG,PBK,p, bank) |
|
#define | uhd_get_pipe_bank(p) USBB_P_RD_BITFIELD(UPCFG,PBK,p) |
|
#define | uhd_allocate_memory(p) USBB_P_SET_BITS(UPCFG,ALLOC,p) |
|
#define | uhd_unallocate_memory(p) USBB_P_CLR_BITS(UPCFG,ALLOC,p) |
|
#define | Is_uhd_memory_allocated(p) USBB_P_TST_BITS(UPCFG,ALLOC,p) |
|
#define | uhd_configure_pipe(p, freq, ep_num, type, token, size, bank, bank_switch) |
|
#define | Is_uhd_pipe_configured(p) USBB_P_TST_BITS(UPSTA,CFGOK,p) |
|
|
#define | uhd_enable_pipe_interrupt(p) (AVR32_USBB.uhinteset = AVR32_USBB_UHINTESET_P0INTES_MASK << (p)) |
| Pipe main interrupts management. More...
|
|
#define | uhd_disable_pipe_interrupt(p) (AVR32_USBB.uhinteclr = AVR32_USBB_UHINTECLR_P0INTEC_MASK << (p)) |
|
#define | Is_uhd_pipe_interrupt_enabled(p) (Tst_bits(AVR32_USBB.uhinte, AVR32_USBB_UHINTE_P0INTE_MASK << (p))) |
|
#define | Is_uhd_pipe_interrupt(p) (Tst_bits(AVR32_USBB.uhint, AVR32_USBB_UHINT_P0INT_MASK << (p))) |
|
#define | uhd_get_interrupt_pipe_number() |
| returns the lowest pipe number generating a pipe interrupt or AVR32_USBB_EPT_NUM if none More...
|
|
|
#define | uhd_enable_overflow_interrupt(p) USBB_P_REG_SET(UPCON,OVERFIE,p) |
| Pipe overflow and underflow for isochronous and interrupt endpoints. More...
|
|
#define | uhd_disable_overflow_interrupt(p) USBB_P_REG_CLR(UPCON,OVERFIE,p) |
|
#define | Is_uhd_overflow_interrupt_enabled(p) USBB_P_TST_BITS(UPCON,OVERFIE,p) |
|
#define | uhd_ack_overflow_interrupt(p) USBB_P_REG_CLR(UPSTA,OVERFI,p) |
|
#define | Is_uhd_overflow(p) USBB_P_TST_BITS(UPSTA,OVERFI,p) |
|
#define | uhd_enable_underflow_interrupt(p) USBB_P_REG_SET(UPCON,UNDERFE,p) |
|
#define | uhd_disable_underflow_interrupt(p) USBB_P_REG_CLR(UPCON,UNDERFE,p) |
|
#define | Is_uhd_underflow_interrupt_enabled(p) USBB_P_TST_BITS(UPCON,UNDERFE,p) |
|
#define | uhd_ack_underflow_interrupt(p) USBB_P_REG_CLR(UPSTA,UNDERFI,p) |
|
#define | Is_uhd_underflow(p) USBB_P_TST_BITS(UPSTA,UNDERFI,p) |
|
|
#define | uhd_enable_stall_interrupt(p) USBB_P_REG_SET(UPCON,RXSTALLDE,p) |
| USB packet errors management. More...
|
|
#define | uhd_disable_stall_interrupt(p) USBB_P_REG_CLR(UPCON,RXSTALLDE,p) |
|
#define | Is_uhd_stall_interrupt_enabled(p) USBB_P_TST_BITS(UPCON,RXSTALLDE,p) |
|
#define | uhd_ack_stall(p) USBB_P_REG_CLR(UPSTA,RXSTALLDI,p) |
|
#define | Is_uhd_stall(p) USBB_P_TST_BITS(UPSTA,RXSTALLDI,p) |
|
#define | uhd_enable_crc_error_interrupt(p) USBB_P_REG_SET(UPCON,RXSTALLDE,p) |
|
#define | uhd_disable_crc_error_interrupt(p) USBB_P_REG_CLR(UPCON,RXSTALLDE,p) |
|
#define | Is_uhd_crc_error_interrupt_enabled(p) USBB_P_TST_BITS(UPCON,RXSTALLDE,p) |
|
#define | uhd_ack_crc_error(p) USBB_P_REG_CLR(UPSTA,RXSTALLDI,p) |
|
#define | Is_uhd_crc_error(p) USBB_P_TST_BITS(UPSTA,RXSTALLDI,p) |
|
#define | uhd_enable_pipe_error_interrupt(p) USBB_P_REG_SET(UPCON,PERRE,p) |
|
#define | uhd_disable_pipe_error_interrupt(p) USBB_P_REG_CLR(UPCON,PERRE,p) |
|
#define | Is_uhd_pipe_error_interrupt_enabled(p) USBB_P_TST_BITS(UPCON,PERRE,p) |
|
#define | uhd_ack_all_errors(p) (USBB_ARRAY(uperr0,p) = 0) |
|
#define | Is_uhd_pipe_error(p) USBB_P_TST_BITS(UPSTA,PERRI,p) |
|
#define | uhd_error_status(p) (USBB_ARRAY(uperr0,p)) |
|
#define | Is_uhd_bad_data_toggle(p) USBB_P_TST_BITS(UPERR,DATATGL,p) |
|
#define | Is_uhd_data_pid_error(p) USBB_P_TST_BITS(UPERR,DATAPID,p) |
|
#define | Is_uhd_pid_error(p) USBB_P_TST_BITS(UPERR,PID,p) |
|
#define | Is_uhd_timeout_error(p) USBB_P_TST_BITS(UPERR,TIMEOUT,p) |
|
#define | Is_uhd_crc16_error(p) USBB_P_TST_BITS(UPERR,CRC16,p) |
|
#define | uhd_get_error_counter(p) USBB_P_RD_BITFIELD(UPERR,COUNTER,p) |
|
|
#define | uhd_data_toggle(p) USBB_P_RD_BITFIELD(UPSTA,DTSEQ,p) |
| Pipe data management. More...
|
|
#define | uhd_enable_bank_interrupt(p) USBB_P_REG_SET(UPCON,NBUSYBKE,p) |
|
#define | uhd_disable_bank_interrupt(p) USBB_P_REG_CLR(UPCON,NBUSYBKE,p) |
|
#define | Is_uhd_bank_interrupt_enabled(p) USBB_P_TST_BITS(UPCON,NBUSYBKE,p) |
|
#define | uhd_nb_busy_bank(p) USBB_P_RD_BITFIELD(UPSTA,NBUSYBK,p) |
|
#define | uhd_current_bank(p) USBB_P_RD_BITFIELD(UPSTA,CURRBK,p) |
|
#define | uhd_enable_short_packet_interrupt(p) USBB_P_REG_SET(UPCON,SHORTPACKETIE,p) |
|
#define | uhd_disable_short_packet_interrupt(p) USBB_P_REG_CLR(UPCON,SHORTPACKETIE,p) |
|
#define | Is_uhd_short_packet_interrupt_enabled(p) USBB_P_TST_BITS(UPCON,SHORTPACKETIE,p) |
|
#define | uhd_ack_short_packet(p) USBB_P_REG_CLR(UPSTA,SHORTPACKETI,p) |
|
#define | Is_uhd_short_packet(p) USBB_P_TST_BITS(UPSTA,SHORTPACKETI,p) |
|
#define | uhd_byte_count(p) USBB_P_RD_BITFIELD(UPSTA,PBYCT,p) |
|
#define | Is_uhd_fifocon(p) USBB_P_TST_BITS(UPCON,FIFOCON,p) |
|
#define | uhd_ack_fifocon(p) USBB_P_REG_CLR(UPCON,FIFOCON,p) |
|
#define | uhd_enable_setup_ready_interrupt(p) USBB_P_REG_SET(UPCON,TXSTPE,p) |
|
#define | uhd_disable_setup_ready_interrupt(p) USBB_P_REG_CLR(UPCON,TXSTPE,p) |
|
#define | Is_uhd_setup_ready_interrupt_enabled(p) USBB_P_TST_BITS(UPCON,TXSTPE,p) |
|
#define | uhd_ack_setup_ready(p) USBB_P_REG_CLR(UPSTA,TXSTPI,p) |
|
#define | Is_uhd_setup_ready(p) USBB_P_TST_BITS(UPSTA,TXSTPI,p) |
|
#define | uhd_enable_in_received_interrupt(p) USBB_P_REG_SET(UPCON,RXINE,p) |
|
#define | uhd_disable_in_received_interrupt(p) USBB_P_REG_CLR(UPCON,RXINE,p) |
|
#define | Is_uhd_in_received_interrupt_enabled(p) USBB_P_TST_BITS(UPCON,RXINE,p) |
|
#define | uhd_ack_in_received(p) USBB_P_REG_CLR(UPSTA,RXINI,p) |
|
#define | Is_uhd_in_received(p) USBB_P_TST_BITS(UPSTA,RXINI,p) |
|
#define | uhd_enable_out_ready_interrupt(p) USBB_P_REG_SET(UPCON,TXOUTE,p) |
|
#define | uhd_disable_out_ready_interrupt(p) USBB_P_REG_CLR(UPCON,TXOUTE,p) |
|
#define | Is_uhd_out_ready_interrupt_enabled(p) USBB_P_TST_BITS(UPCON,TXOUTE,p) |
|
#define | uhd_ack_out_ready(p) USBB_P_REG_CLR(UPSTA,TXOUTI,p) |
|
#define | Is_uhd_out_ready(p) USBB_P_TST_BITS(UPSTA,TXOUTI,p) |
|
#define | uhd_raise_out_ready(p) USBB_P_REG_SET(UPSTA,TXOUTI,p) |
|
#define | uhd_enable_nak_received_interrupt(p) USBB_P_REG_SET(UPCON,NAKEDE,p) |
|
#define | uhd_disable_nak_received_interrupt(p) USBB_P_REG_CLR(UPCON,NAKEDE,p) |
|
#define | Is_uhd_nak_received_interrupt_enabled(p) USBB_P_TST_BITS(UPCON,NAKEDE,p) |
|
#define | uhd_ack_nak_received(p) USBB_P_REG_CLR(UPSTA,NAKEDI,p) |
|
#define | Is_uhd_nak_received(p) USBB_P_TST_BITS(UPSTA,NAKEDI,p) |
|
#define | Is_uhd_read_enabled(p) USBB_P_TST_BITS(UPSTA,RWALL,p) |
|
#define | Is_uhd_write_enabled(p) USBB_P_TST_BITS(UPSTA,RWALL,p) |
|
#define | uhd_enable_continuous_in_mode(p) USBB_P_SET_BITS(UPINRQ,INMODE,p) |
|
#define | uhd_disable_continuous_in_mode(p) USBB_P_CLR_BITS(UPINRQ,INMODE,p) |
|
#define | Is_uhd_continuous_in_mode_enabled(p) USBB_P_TST_BITS(UPINRQ,INMODE,p) |
|
#define | uhd_in_request_number(p, in_num) USBB_P_WR_BITFIELD(UPINRQ,INRQ,p,in_num-1) |
|
#define | uhd_get_in_request_number(p) (USBB_P_RD_BITFIELD(UPINRQ,INRQ,p)+1) |
|
#define | uhd_get_pipe_fifo_access(p, scale) (((volatile TPASTE3(uint, scale, _t) (*)[0x10000 / ((scale) / 8)])AVR32_USBB_SLAVE)[(p)]) |
| Get 64-, 32-, 16- or 8-bit access to FIFO data register of selected pipe. More...
|
|
|
#define | UHD_PIPE_MAX_TRANS 0x10000 |
| Pipe DMA management. More...
|
|
#define | uhd_enable_pipe_int_dis_hdma_req(p) USBB_P_REG_SET(UPCON,PDISHDMA,p) |
|
#define | uhd_disable_pipe_int_dis_hdma_req(p) USBB_P_REG_CLR(UPCON,PDISHDMA,p) |
|
#define | Is_uhd_pipe_int_dis_hdma_req_enabled(p) USBB_P_TST_BITS(UPCON,PDISHDMA,p) |
|
#define | uhd_enable_pipe_dma_interrupt(p) (AVR32_USBB.uhinteset = AVR32_USBB_UHINTESET_DMA1INTES_MASK << ((p) - 1)) |
|
#define | uhd_disable_pipe_dma_interrupt(p) (AVR32_USBB.uhinteclr = AVR32_USBB_UHINTECLR_DMA1INTEC_MASK << ((p) - 1)) |
|
#define | Is_uhd_pipe_dma_interrupt_enabled(p) (Tst_bits(AVR32_USBB.uhinte, AVR32_USBB_UHINTE_DMA1INTE_MASK << ((p) - 1))) |
|
#define | Is_uhd_pipe_dma_interrupt(p) (Tst_bits(AVR32_USBB.uhint, AVR32_USBB_UHINT_DMA1INT_MASK << ((p) - 1))) |
|
#define | uhd_get_pipe_dma_interrupt_number() |
|
#define | USBB_UHDMA_ARRAY(p) (((volatile avr32_usbb_uhdmax_t *)&AVR32_USBB.uhdma1_nextdesc)[(p) - 1]) |
| Structure for DMA registers. More...
|
|
#define | uhd_pipe_dma_set_control(p, desc) (USBB_UHDMA_ARRAY(p).control=desc) |
| Set control desc to selected endpoint DMA channel. More...
|
|
#define | uhd_pipe_dma_get_control(p) (USBB_UHDMA_ARRAY(p).control) |
| Get control desc to selected endpoint DMA channel. More...
|
|
#define | uhd_pipe_dma_set_addr(p, add) (USBB_UHDMA_ARRAY(p).addr=add) |
| Set RAM address to selected endpoint DMA channel. More...
|
|
#define | uhd_pipe_dma_get_status(p) (USBB_UHDMA_ARRAY(p).status) |
| Get status to selected endpoint DMA channel. More...
|
|