Atmel Software Framework

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Host controller states

Defines for device state coding.

usb_host_task.jpg
USB Host Task Overview

Macros

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

#define DEVICE_ADDRESSED   4
#define DEVICE_ADDRESSED   6

Referenced by usb_host_task().

#define DEVICE_ATTACHED   1
#define DEVICE_ATTACHED   3

Referenced by usb_host_task().

#define DEVICE_CONFIGURED   5
#define DEVICE_CONFIGURED   7

Referenced by usb_host_task().

#define DEVICE_DEFAULT   3
#define DEVICE_DEFAULT   5

Referenced by usb_host_task().

#define DEVICE_ERROR   7
#define DEVICE_ERROR   9
#define DEVICE_POWERED   2
#define DEVICE_POWERED   4

Referenced by usb_host_task().

#define DEVICE_READY   6
#define DEVICE_READY   8

Referenced by usb_host_task().

#define DEVICE_SUSPENDED   8
#define DEVICE_SUSPENDED   10

Referenced by usb_host_task().

#define DEVICE_UNATTACHED   0
#define DEVICE_UNATTACHED   2
#define DEVICE_UNSUPPORTED   0

Referenced by usb_host_task().

#define DEVICE_VBUS_LOW   1

Referenced by usb_host_task().

#define DEVICE_WAIT_RESUME   9
#define DEVICE_WAIT_RESUME   11

Referenced by usb_host_task().

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

Referenced by host_check_class().

#define Host_clear_device_ready ( )    (Clr_bits(device_status, 0x02))
#define Host_clear_device_ready ( )    (Clr_bits(usb_host_device_status, 0x02))
#define Host_clear_device_status ( )    (device_status = 0x00)
#define Host_clear_device_status ( )    (usb_host_device_status = 0x00)
#define Host_clear_device_supported ( )    (Clr_bits(device_status, 0x01))
#define Host_clear_device_supported ( )    (Clr_bits(usb_host_device_status, 0x01))
#define Host_set_configured ( )    (Set_bits(device_status, 0x04))
#define Host_set_configured ( )    (Set_bits(usb_host_device_status, 0x04))

Referenced by host_check_class(), and usb_host_task().

#define Host_set_device_ready ( )    (Set_bits(device_status, 0x02))
#define Host_set_device_ready ( )    (Set_bits(usb_host_device_status, 0x02))
#define Host_set_device_supported ( )    (Set_bits(device_status, 0x01))
#define Host_set_device_supported ( )    (Set_bits(usb_host_device_status, 0x01))

Referenced by usb_host_task().

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

Referenced by usb_host_task().

#define Is_host_device_ready ( )    (Tst_bits(device_status, 0x02))
#define Is_host_device_ready ( )    (Tst_bits(usb_host_device_status, 0x02))
#define Is_host_device_supported ( )    (Tst_bits(device_status, 0x01))
#define Is_host_device_supported ( )    (Tst_bits(usb_host_device_status, 0x01))