Defines for device state coding.
Macros | |
#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 DEVICE_ADDRESSED 4 |
Referenced by usb_host_task().
#define DEVICE_ATTACHED 1 |
Referenced by usb_host_task().
#define DEVICE_CONFIGURED 5 |
Referenced by usb_host_task().
#define DEVICE_DEFAULT 3 |
Referenced by usb_host_task().
#define DEVICE_ERROR 7 |
Referenced by usb_host_task().
#define DEVICE_POWERED 2 |
Referenced by usb_host_task().
#define DEVICE_READY 6 |
Referenced by usb_host_task().
#define DEVICE_SUSPENDED 8 |
Referenced by usb_host_task().
#define DEVICE_UNATTACHED 0 |
Referenced by usb_general_interrupt(), usb_host_task(), and usb_host_task_init().
#define DEVICE_WAIT_RESUME 9 |
Referenced by usb_host_task().
#define Host_clear_configured | ( | ) | (Clr_bits(device_status, 0x04)) |
Referenced by host_check_class().
#define Host_clear_device_ready | ( | ) | (Clr_bits(device_status, 0x02)) |
#define Host_clear_device_status | ( | ) | (device_status = 0x00) |
Referenced by usb_host_task(), and usb_host_task_init().
#define Host_clear_device_supported | ( | ) | (Clr_bits(device_status, 0x01)) |
#define Host_set_configured | ( | ) | (Set_bits(device_status, 0x04)) |
Referenced by host_check_class(), and usb_host_task().
#define Host_set_device_ready | ( | ) | (Set_bits(device_status, 0x02)) |
Referenced by host_read_capacity(), and host_test_unit_ready().
#define Host_set_device_supported | ( | ) | (Set_bits(device_status, 0x01)) |
Referenced by usb_host_task().
#define Is_host_configured | ( | ) | (Tst_bits(device_status, 0x04)) |
Referenced by usb_host_task().
#define Is_host_device_ready | ( | ) | (Tst_bits(device_status, 0x02)) |
#define Is_host_device_supported | ( | ) | (Tst_bits(device_status, 0x01)) |