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) |
#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 |
#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 |
Definition at line 156 of file usb_host_task.h.
Referenced by usb_general_interrupt(), and usb_host_task().
#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) |
Definition at line 161 of file usb_host_task.h.
#define Host_set_device_ready | ( | ) | (device_status |= 0x02) |
#define Host_clear_device_ready | ( | ) | (device_status &= ~0x02) |
#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) |
#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.