Host controller states
[USB host task]

Defines for device state coding. More...

Defines

#define DEVICE_UNATTACHED   0
#define DEVICE_ATTACHED   1
#define DEVICE_POWERED   2
#define DEVICE_DEFAULT   3
#define DEVICE_ADDRESSED   4
#define DEVICE_CONFIGURED   5
#define DEVICE_READY   6
#define DEVICE_ERROR   7
#define DEVICE_SUSPENDED   8
#define DEVICE_WAIT_RESUME   9
#define DEVICE_DISCONNECTED   10
#define DEVICE_DISCONNECTED_ACK   11
#define Host_set_device_supported()   (device_status |= 0x01)
#define Host_clear_device_supported()   (device_status &= ~0x01)
#define Is_host_device_supported()   (device_status & 0x01)
#define Host_set_device_ready()   (device_status |= 0x02)
#define Host_clear_device_ready()   (device_status &= ~0x02)
#define Is_host_device_ready()   (device_status & 0x02)
#define Host_set_configured()   (device_status |= 0x04)
#define Host_clear_configured()   (device_status &= ~0x04)
#define Is_host_configured()   (device_status & 0x04)
#define Host_clear_device_status()   (device_status = 0x00)

Detailed Description

Defines for device state coding.

host_task.gif

Define Documentation

#define DEVICE_UNATTACHED   0

Definition at line 143 of file usb_host_task.h.

Referenced by usb_device_task(), usb_host_task(), and usb_host_task_init().

#define DEVICE_ATTACHED   1

Definition at line 144 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_POWERED   2

Definition at line 145 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_DEFAULT   3

Definition at line 146 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_ADDRESSED   4

Definition at line 147 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_CONFIGURED   5

Definition at line 148 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_READY   6

Definition at line 149 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_ERROR   7

Definition at line 151 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_SUSPENDED   8

Definition at line 153 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_WAIT_RESUME   9

Definition at line 154 of file usb_host_task.h.

Referenced by usb_host_task().

#define DEVICE_DISCONNECTED   10

Definition at line 156 of file usb_host_task.h.

Referenced by usb_general_interrupt(), and usb_host_task().

#define DEVICE_DISCONNECTED_ACK   11

Definition at line 157 of file usb_host_task.h.

Referenced by usb_host_task().

 
#define Host_set_device_supported (  )     (device_status |= 0x01)

Definition at line 159 of file usb_host_task.h.

Referenced by enumerate_hub_port_device(), and usb_host_task().

 
#define Host_clear_device_supported (  )     (device_status &= ~0x01)

Definition at line 160 of file usb_host_task.h.

Referenced by usb_host_task().

 
#define Is_host_device_supported (  )     (device_status & 0x01)

Definition at line 161 of file usb_host_task.h.

 
#define Host_set_device_ready (  )     (device_status |= 0x02)

Definition at line 163 of file usb_host_task.h.

Referenced by usb_host_task().

 
#define Host_clear_device_ready (  )     (device_status &= ~0x02)

Definition at line 164 of file usb_host_task.h.

Referenced by usb_host_task().

 
#define Is_host_device_ready (  )     (device_status & 0x02)

Definition at line 165 of file usb_host_task.h.

 
#define Host_set_configured (  )     (device_status |= 0x04)

Definition at line 167 of file usb_host_task.h.

Referenced by host_auto_configure_endpoint(), and usb_host_task().

 
#define Host_clear_configured (  )     (device_status &= ~0x04)

Definition at line 168 of file usb_host_task.h.

Referenced by usb_host_task().

 
#define Is_host_configured (  )     (device_status & 0x04)

Definition at line 169 of file usb_host_task.h.

 
#define Host_clear_device_status (  )     (device_status = 0x00)

Definition at line 171 of file usb_host_task.h.


Generated on Wed Sep 23 09:17:20 2009 for ATMEL by  doxygen 1.5.3