USBB device controller drivers
[USBB low-level driver module]


Detailed Description

These macros manage the USBB Device controller.


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 Documentation

 
#define Is_usb_address_enabled (  )     (Tst_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_ADDEN_MASK))

Definition at line 537 of file usb_drv.h.

 
#define Is_usb_detached (  )     (Tst_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_DETACH_MASK))

test if the device is detached

Definition at line 458 of file usb_drv.h.

 
#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

Definition at line 546 of file usb_drv.h.

 
#define Is_usb_pending_remote_wake_up (  )     (Tst_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_RMWKUP_MASK))

test if remote wake-up still running

Definition at line 456 of file usb_drv.h.

 
#define Is_usb_remote_wake_up_interrupt_enabled (  )     (Tst_bits(AVR32_USBB_udinte, AVR32_USBB_UDINTE_UPRSME_MASK))

Definition at line 465 of file usb_drv.h.

 
#define Is_usb_remote_wake_up_start (  )     (Tst_bits(AVR32_USBB_udint, AVR32_USBB_UDINT_UPRSM_MASK))

tests if remote wake-up still running

Definition at line 471 of file usb_drv.h.

 
#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))

Definition at line 501 of file usb_drv.h.

Referenced by usb_general_interrupt_non_naked().

 
#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))

Definition at line 477 of file usb_drv.h.

Referenced by usb_general_interrupt_non_naked().

 
#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))

Definition at line 513 of file usb_drv.h.

Referenced by usb_general_interrupt_non_naked().

 
#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))

Definition at line 525 of file usb_drv.h.

Referenced by usb_general_interrupt_non_naked().

 
#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))

Definition at line 489 of file usb_drv.h.

Referenced by usb_general_interrupt_non_naked().

 
#define Usb_ack_remote_wake_up_start (  )     (AVR32_USBB_udintclr = AVR32_USBB_UDINTCLR_UPRSMC_MASK)

acks remote wake-up

Definition at line 467 of file usb_drv.h.

 
#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))

attaches to USB bus

Definition at line 454 of file usb_drv.h.

Referenced by usb_start_device().

#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))

disables USB device address

Definition at line 536 of file usb_drv.h.

 
#define Usb_disable_remote_wake_up_interrupt (  )     (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_UPRSMEC_MASK)

disables remote wake-up interrupt

Definition at line 463 of file usb_drv.h.

 
#define Usb_disable_reset_interrupt (  )     (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_EORSTEC_MASK)

disables USB reset interrupt

Definition at line 500 of file usb_drv.h.

 
#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)

disables Start-of-Frame Interrupt

Definition at line 512 of file usb_drv.h.

 
#define Usb_disable_suspend_interrupt (  )     (AVR32_USBB_udinteclr = AVR32_USBB_UDINTECLR_SUSPEC_MASK)

disables suspend state interrupt

Definition at line 524 of file usb_drv.h.

 
#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)

enables remote wake-up interrupt

Definition at line 461 of file usb_drv.h.

 
#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)

enables resume interrupt

Definition at line 474 of file usb_drv.h.

 
#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))

returns the current frame number

Definition at line 544 of file usb_drv.h.

 
#define Usb_get_configured_address (  )     (Rd_bitfield(AVR32_USBB_udcon, AVR32_USBB_UDCON_UADD_MASK))

gets the currently configured USB device address

Definition at line 541 of file usb_drv.h.

 
#define Usb_initiate_remote_wake_up (  )     (Set_bits(AVR32_USBB_udcon, AVR32_USBB_UDCON_RMWKUP_MASK))

initiates a remote wake-up

Definition at line 450 of file usb_drv.h.

 
#define Usb_raise_remote_wake_up_start (  )     (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_UPRSMS_MASK)

raises remote wake-up

Definition at line 469 of file usb_drv.h.

 
#define Usb_raise_reset (  )     (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_EORSTS_MASK)

raises USB reset

Definition at line 505 of file usb_drv.h.

 
#define Usb_raise_resume (  )     (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_EORSMS_MASK)

raises resume

Definition at line 481 of file usb_drv.h.

 
#define Usb_raise_sof (  )     (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_SOFS_MASK)

raises Start-of-Frame

Definition at line 517 of file usb_drv.h.

 
#define Usb_raise_suspend (  )     (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_SUSPS_MASK)

raises Suspend

Definition at line 529 of file usb_drv.h.

 
#define Usb_raise_wake_up (  )     (AVR32_USBB_udintset = AVR32_USBB_UDINTSET_WAKEUPS_MASK)

raises wake-up

Definition at line 493 of file usb_drv.h.


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