Host controller states
[USB host task module]


Detailed Description

Defines for device state coding.

usb_host_task.jpg

USB Host Task Overview


Defines

#define DEVICE_ADDRESSED   4
#define DEVICE_ATTACHED   1
#define DEVICE_CONFIGURED   5
#define DEVICE_DEFAULT   3
#define DEVICE_ERROR   7
#define DEVICE_POWERED   2
#define DEVICE_READY   6
#define DEVICE_SUSPENDED   8
#define DEVICE_UNATTACHED   0
#define DEVICE_WAIT_RESUME   9
#define Host_clear_configured()   (Clr_bits(device_status, 0x04))
#define Host_clear_device_ready()   (Clr_bits(device_status, 0x02))
#define Host_clear_device_status()   (device_status = 0x00)
#define Host_clear_device_supported()   (Clr_bits(device_status, 0x01))
#define Host_set_configured()   (Set_bits(device_status, 0x04))
#define Host_set_device_ready()   (Set_bits(device_status, 0x02))
#define Host_set_device_supported()   (Set_bits(device_status, 0x01))
#define Is_host_configured()   (Tst_bits(device_status, 0x04))
#define Is_host_device_ready()   (Tst_bits(device_status, 0x02))
#define Is_host_device_supported()   (Tst_bits(device_status, 0x01))


Define Documentation

#define DEVICE_ADDRESSED   4

Definition at line 139 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_ATTACHED   1

Definition at line 136 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_CONFIGURED   5

Definition at line 140 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_DEFAULT   3

Definition at line 138 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_ERROR   7

Definition at line 143 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_POWERED   2

Definition at line 137 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_READY   6

Definition at line 141 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_SUSPENDED   8

Definition at line 145 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_UNATTACHED   0

#define DEVICE_WAIT_RESUME   9

Definition at line 146 of file usb_host_task.h.

Referenced by usb_host_task().

 
#define Host_clear_configured (  )     (Clr_bits(device_status, 0x04))

Definition at line 157 of file usb_host_task.h.

Referenced by host_check_class().

 
#define Host_clear_device_ready (  )     (Clr_bits(device_status, 0x02))

Definition at line 153 of file usb_host_task.h.

 
#define Host_clear_device_status (  )     (device_status = 0x00)

Definition at line 160 of file usb_host_task.h.

Referenced by usb_host_task(), and usb_host_task_init().

 
#define Host_clear_device_supported (  )     (Clr_bits(device_status, 0x01))

Definition at line 149 of file usb_host_task.h.

 
#define Host_set_configured (  )     (Set_bits(device_status, 0x04))

Definition at line 156 of file usb_host_task.h.

Referenced by host_check_class(), and usb_host_task().

 
#define Host_set_device_ready (  )     (Set_bits(device_status, 0x02))

Definition at line 152 of file usb_host_task.h.

 
#define Host_set_device_supported (  )     (Set_bits(device_status, 0x01))

Definition at line 148 of file usb_host_task.h.

Referenced by usb_host_task().

 
#define Is_host_configured (  )     (Tst_bits(device_status, 0x04))

Definition at line 158 of file usb_host_task.h.

Referenced by usb_host_task().

 
#define Is_host_device_ready (  )     (Tst_bits(device_status, 0x02))

Definition at line 154 of file usb_host_task.h.

 
#define Is_host_device_supported (  )     (Tst_bits(device_status, 0x01))

Definition at line 150 of file usb_host_task.h.


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