Defines | |
#define | Is_usb_address_enabled() (Tst_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_ADDEN_MASK)) |
#define | Is_usb_detached() (Tst_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_DETACH_MASK)) |
test if the device is detached | |
#define | Is_usb_frame_number_crc_error() (Tst_bits(AVR32_USBB_udfnum, AVR32_USBB_UDFNUM_FNCERR_MASK)) |
tests if a crc error occurs in frame number | |
#define | Is_usb_pending_remote_wake_up() (Tst_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_RMWKUP_MASK)) |
test if remote wake-up still running | |
#define | Is_usb_remote_wake_up_interrupt_enabled() (Tst_bits(AVR32_USBB_udinte, AVR32_USBB_UDINTE_UPRSME_MASK)) |
#define | Is_usb_remote_wake_up_start() (Tst_bits(AVR32_USBB_udint, AVR32_USBB_UDINT_UPRSM_MASK)) |
tests if remote wake-up still running | |
#define | Is_usb_reset() (Tst_bits(AVR32_USBB_udint, AVR32_USBB_UDINT_EORST_MASK)) |
tests if USB reset occurs | |
#define | Is_usb_reset_interrupt_enabled() (Tst_bits(AVR32_USBB_udinte, AVR32_USBB_UDINTE_EORSTE_MASK)) |
#define | Is_usb_resume() (Tst_bits(AVR32_USBB_udint, AVR32_USBB_UDINT_EORSM_MASK)) |
tests if resume occurs | |
#define | Is_usb_resume_interrupt_enabled() (Tst_bits(AVR32_USBB_udinte, AVR32_USBB_UDINTE_EORSME_MASK)) |
#define | Is_usb_sof() (Tst_bits(AVR32_USBB_udint, AVR32_USBB_UDINT_SOF_MASK)) |
tests if Start-of-Frame occurs | |
#define | Is_usb_sof_interrupt_enabled() (Tst_bits(AVR32_USBB_udinte, AVR32_USBB_UDINTE_SOFE_MASK)) |
#define | Is_usb_suspend() (Tst_bits(AVR32_USBB_udint, AVR32_USBB_UDINT_SUSP_MASK)) |
tests if Suspend state detected | |
#define | Is_usb_suspend_interrupt_enabled() (Tst_bits(AVR32_USBB_udinte, AVR32_USBB_UDINTE_SUSPE_MASK)) |
#define | Is_usb_wake_up() (Tst_bits(AVR32_USBB_udint, AVR32_USBB_UDINT_WAKEUP_MASK)) |
tests if wake-up occurs | |
#define | Is_usb_wake_up_interrupt_enabled() (Tst_bits(AVR32_USBB_udinte, AVR32_USBB_UDINTE_WAKEUPE_MASK)) |
#define | Usb_ack_remote_wake_up_start() (AVR32_USBB_udintclr = AVR32_USBB_UDINTCLR_UPRSMC_MASK) |
acks remote wake-up | |
#define | Usb_ack_reset() (AVR32_USBB_udintclr = AVR32_USBB_UDINTCLR_EORSTC_MASK) |
acks USB reset | |
#define | Usb_ack_resume() (AVR32_USBB_udintclr = AVR32_USBB_UDINTCLR_EORSMC_MASK) |
acks resume | |
#define | Usb_ack_sof() (AVR32_USBB_udintclr = AVR32_USBB_UDINTCLR_SOFC_MASK) |
acks Start-of-Frame | |
#define | Usb_ack_suspend() (AVR32_USBB_udintclr = AVR32_USBB_UDINTCLR_SUSPC_MASK) |
acks Suspend | |
#define | Usb_ack_wake_up() (AVR32_USBB_udintclr = AVR32_USBB_UDINTCLR_WAKEUPC_MASK) |
acks wake-up | |
#define | Usb_attach() (Clr_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_DETACH_MASK)) |
attaches to USB bus | |
#define | Usb_configure_address(addr) (Wr_bitfield(AVR32_USBB_udcon, AVR32_USBB_UDCON_UADD_MASK, addr)) |
configures the USB device address | |
#define | Usb_detach() (Set_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_DETACH_MASK)) |
detaches from USB bus | |
#define | Usb_disable_address() (Clr_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_ADDEN_MASK)) |
disables USB device address | |
#define | Usb_disable_remote_wake_up_interrupt() (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_UPRSMEC_MASK) |
disables remote wake-up interrupt | |
#define | Usb_disable_reset_interrupt() (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_EORSTEC_MASK) |
disables USB reset interrupt | |
#define | Usb_disable_resume_interrupt() (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_EORSMEC_MASK) |
disables resume interrupt | |
#define | Usb_disable_sof_interrupt() (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_SOFEC_MASK) |
disables Start-of-Frame Interrupt | |
#define | Usb_disable_suspend_interrupt() (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_SUSPEC_MASK) |
disables suspend state interrupt | |
#define | Usb_disable_wake_up_interrupt() (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_WAKEUPEC_MASK) |
disables wake-up interrupt | |
#define | Usb_enable_address() (Set_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_ADDEN_MASK)) |
enables USB device address | |
#define | Usb_enable_remote_wake_up_interrupt() (AVR32_USBB_udinteset = AVR32_USBB_UDINTESET_UPRSMES_MASK) |
enables remote wake-up interrupt | |
#define | Usb_enable_reset_interrupt() (AVR32_USBB_udinteset = AVR32_USBB_UDINTESET_EORSTES_MASK) |
enables USB reset interrupt | |
#define | Usb_enable_resume_interrupt() (AVR32_USBB_udinteset = AVR32_USBB_UDINTESET_EORSMES_MASK) |
enables resume interrupt | |
#define | Usb_enable_sof_interrupt() (AVR32_USBB_udinteset = AVR32_USBB_UDINTESET_SOFES_MASK) |
enables Start-of-Frame Interrupt | |
#define | Usb_enable_suspend_interrupt() (AVR32_USBB_udinteset = AVR32_USBB_UDINTESET_SUSPES_MASK) |
enables suspend state interrupt | |
#define | Usb_enable_wake_up_interrupt() (AVR32_USBB_udinteset = AVR32_USBB_UDINTESET_WAKEUPES_MASK) |
enables wake-up interrupt | |
#define | Usb_frame_number() (Rd_bitfield(AVR32_USBB_udfnum, AVR32_USBB_UDFNUM_FNUM_MASK)) |
returns the current frame number | |
#define | Usb_get_configured_address() (Rd_bitfield(AVR32_USBB_udcon, AVR32_USBB_UDCON_UADD_MASK)) |
gets the currently configured USB device address | |
#define | Usb_initiate_remote_wake_up() (Set_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_RMWKUP_MASK)) |
initiates a remote wake-up | |
#define | Usb_raise_remote_wake_up_start() (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_UPRSMS_MASK) |
raises remote wake-up | |
#define | Usb_raise_reset() (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_EORSTS_MASK) |
raises USB reset | |
#define | Usb_raise_resume() (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_EORSMS_MASK) |
raises resume | |
#define | Usb_raise_sof() (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_SOFS_MASK) |
raises Start-of-Frame | |
#define | Usb_raise_suspend() (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_SUSPS_MASK) |
raises Suspend | |
#define | Usb_raise_wake_up() (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_WAKEUPS_MASK) |
raises wake-up |
#define Is_usb_address_enabled | ( | ) | (Tst_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_ADDEN_MASK)) |
#define Is_usb_detached | ( | ) | (Tst_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_DETACH_MASK)) |
#define Is_usb_frame_number_crc_error | ( | ) | (Tst_bits(AVR32_USBB_udfnum, AVR32_USBB_UDFNUM_FNCERR_MASK)) |
#define Is_usb_pending_remote_wake_up | ( | ) | (Tst_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_RMWKUP_MASK)) |
#define Is_usb_remote_wake_up_interrupt_enabled | ( | ) | (Tst_bits(AVR32_USBB_udinte, AVR32_USBB_UDINTE_UPRSME_MASK)) |
#define Is_usb_remote_wake_up_start | ( | ) | (Tst_bits(AVR32_USBB_udint, AVR32_USBB_UDINT_UPRSM_MASK)) |
#define Is_usb_reset | ( | ) | (Tst_bits(AVR32_USBB_udint, AVR32_USBB_UDINT_EORST_MASK)) |
tests if USB reset occurs
Definition at line 507 of file usb_drv.h.
Referenced by usb_general_interrupt_non_naked().
#define Is_usb_reset_interrupt_enabled | ( | ) | (Tst_bits(AVR32_USBB_udinte, AVR32_USBB_UDINTE_EORSTE_MASK)) |
#define Is_usb_resume | ( | ) | (Tst_bits(AVR32_USBB_udint, AVR32_USBB_UDINT_EORSM_MASK)) |
tests if resume occurs
Definition at line 483 of file usb_drv.h.
Referenced by usb_general_interrupt_non_naked().
#define Is_usb_resume_interrupt_enabled | ( | ) | (Tst_bits(AVR32_USBB_udinte, AVR32_USBB_UDINTE_EORSME_MASK)) |
#define Is_usb_sof | ( | ) | (Tst_bits(AVR32_USBB_udint, AVR32_USBB_UDINT_SOF_MASK)) |
tests if Start-of-Frame occurs
Definition at line 519 of file usb_drv.h.
Referenced by usb_general_interrupt_non_naked().
#define Is_usb_sof_interrupt_enabled | ( | ) | (Tst_bits(AVR32_USBB_udinte, AVR32_USBB_UDINTE_SOFE_MASK)) |
#define Is_usb_suspend | ( | ) | (Tst_bits(AVR32_USBB_udint, AVR32_USBB_UDINT_SUSP_MASK)) |
tests if Suspend state detected
Definition at line 531 of file usb_drv.h.
Referenced by usb_general_interrupt_non_naked().
#define Is_usb_suspend_interrupt_enabled | ( | ) | (Tst_bits(AVR32_USBB_udinte, AVR32_USBB_UDINTE_SUSPE_MASK)) |
#define Is_usb_wake_up | ( | ) | (Tst_bits(AVR32_USBB_udint, AVR32_USBB_UDINT_WAKEUP_MASK)) |
tests if wake-up occurs
Definition at line 495 of file usb_drv.h.
Referenced by usb_general_interrupt_non_naked().
#define Is_usb_wake_up_interrupt_enabled | ( | ) | (Tst_bits(AVR32_USBB_udinte, AVR32_USBB_UDINTE_WAKEUPE_MASK)) |
#define Usb_ack_remote_wake_up_start | ( | ) | (AVR32_USBB_udintclr = AVR32_USBB_UDINTCLR_UPRSMC_MASK) |
#define Usb_ack_reset | ( | ) | (AVR32_USBB_udintclr = AVR32_USBB_UDINTCLR_EORSTC_MASK) |
acks USB reset
Definition at line 503 of file usb_drv.h.
Referenced by usb_general_interrupt_non_naked().
#define Usb_ack_resume | ( | ) | (AVR32_USBB_udintclr = AVR32_USBB_UDINTCLR_EORSMC_MASK) |
acks resume
Definition at line 479 of file usb_drv.h.
Referenced by usb_general_interrupt_non_naked().
#define Usb_ack_sof | ( | ) | (AVR32_USBB_udintclr = AVR32_USBB_UDINTCLR_SOFC_MASK) |
acks Start-of-Frame
Definition at line 515 of file usb_drv.h.
Referenced by usb_general_interrupt_non_naked().
#define Usb_ack_suspend | ( | ) | (AVR32_USBB_udintclr = AVR32_USBB_UDINTCLR_SUSPC_MASK) |
acks Suspend
Definition at line 527 of file usb_drv.h.
Referenced by usb_device_task_init(), and usb_general_interrupt_non_naked().
#define Usb_ack_wake_up | ( | ) | (AVR32_USBB_udintclr = AVR32_USBB_UDINTCLR_WAKEUPC_MASK) |
acks wake-up
Definition at line 491 of file usb_drv.h.
Referenced by usb_general_interrupt_non_naked().
#define Usb_attach | ( | ) | (Clr_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_DETACH_MASK)) |
#define Usb_configure_address | ( | addr | ) | (Wr_bitfield(AVR32_USBB_udcon, AVR32_USBB_UDCON_UADD_MASK, addr)) |
configures the USB device address
Definition at line 539 of file usb_drv.h.
Referenced by usb_set_address().
#define Usb_detach | ( | ) | (Set_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_DETACH_MASK)) |
detaches from USB bus
Definition at line 452 of file usb_drv.h.
Referenced by usb_general_interrupt_non_naked().
#define Usb_disable_address | ( | ) | (Clr_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_ADDEN_MASK)) |
#define Usb_disable_remote_wake_up_interrupt | ( | ) | (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_UPRSMEC_MASK) |
#define Usb_disable_reset_interrupt | ( | ) | (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_EORSTEC_MASK) |
#define Usb_disable_resume_interrupt | ( | ) | (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_EORSMEC_MASK) |
disables resume interrupt
Definition at line 476 of file usb_drv.h.
Referenced by usb_general_interrupt_non_naked().
#define Usb_disable_sof_interrupt | ( | ) | (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_SOFEC_MASK) |
#define Usb_disable_suspend_interrupt | ( | ) | (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_SUSPEC_MASK) |
#define Usb_disable_wake_up_interrupt | ( | ) | (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_WAKEUPEC_MASK) |
disables wake-up interrupt
Definition at line 488 of file usb_drv.h.
Referenced by usb_general_interrupt_non_naked().
#define Usb_enable_address | ( | ) | (Set_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_ADDEN_MASK)) |
enables USB device address
Definition at line 534 of file usb_drv.h.
Referenced by usb_set_address().
#define Usb_enable_remote_wake_up_interrupt | ( | ) | (AVR32_USBB_udinteset = AVR32_USBB_UDINTESET_UPRSMES_MASK) |
#define Usb_enable_reset_interrupt | ( | ) | (AVR32_USBB_udinteset = AVR32_USBB_UDINTESET_EORSTES_MASK) |
enables USB reset interrupt
Definition at line 498 of file usb_drv.h.
Referenced by usb_start_device().
#define Usb_enable_resume_interrupt | ( | ) | (AVR32_USBB_udinteset = AVR32_USBB_UDINTESET_EORSMES_MASK) |
#define Usb_enable_sof_interrupt | ( | ) | (AVR32_USBB_udinteset = AVR32_USBB_UDINTESET_SOFES_MASK) |
enables Start-of-Frame Interrupt
Definition at line 510 of file usb_drv.h.
Referenced by device_template_task_init().
#define Usb_enable_suspend_interrupt | ( | ) | (AVR32_USBB_udinteset = AVR32_USBB_UDINTESET_SUSPES_MASK) |
enables suspend state interrupt
Definition at line 522 of file usb_drv.h.
Referenced by usb_start_device().
#define Usb_enable_wake_up_interrupt | ( | ) | (AVR32_USBB_udinteset = AVR32_USBB_UDINTESET_WAKEUPES_MASK) |
enables wake-up interrupt
Definition at line 486 of file usb_drv.h.
Referenced by usb_general_interrupt_non_naked().
#define Usb_frame_number | ( | ) | (Rd_bitfield(AVR32_USBB_udfnum, AVR32_USBB_UDFNUM_FNUM_MASK)) |
#define Usb_get_configured_address | ( | ) | (Rd_bitfield(AVR32_USBB_udcon, AVR32_USBB_UDCON_UADD_MASK)) |
#define Usb_initiate_remote_wake_up | ( | ) | (Set_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_RMWKUP_MASK)) |
#define Usb_raise_remote_wake_up_start | ( | ) | (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_UPRSMS_MASK) |
#define Usb_raise_reset | ( | ) | (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_EORSTS_MASK) |
#define Usb_raise_resume | ( | ) | (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_EORSMS_MASK) |
#define Usb_raise_sof | ( | ) | (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_SOFS_MASK) |
#define Usb_raise_suspend | ( | ) | (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_SUSPS_MASK) |
#define Usb_raise_wake_up | ( | ) | (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_WAKEUPS_MASK) |