|
#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_ack_request_resume() (request_resume = false) |
| Private ack for resume software event. More...
|
|
#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_request_resume() (request_resume = true) |
| Should be called to request the host controller to resume the USB bus. More...
|
|
#define | Host_request_suspend() (device_state = DEVICE_SUSPENDED) |
| Should be called to make the host controller enter USB suspend mode. More...
|
|
#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_addressed() (device_state >= DEVICE_ADDRESSED) |
| Check if there is a device addressed by the host. More...
|
|
#define | Is_host_attached() (device_state >= DEVICE_ATTACHED) |
| Check if there is a device attached to the host. More...
|
|
#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 | Is_host_error() (device_state == DEVICE_ERROR) |
| Check if there is an error. More...
|
|
#define | Is_host_powered() (device_state >= DEVICE_POWERED) |
| Check if there is a device powered by the host. More...
|
|
#define | Is_host_ready() (device_state == DEVICE_READY) |
| Returns true when device connected and correctly enumerated. More...
|
|
#define | Is_host_request_resume() (request_resume == true) |
| Private check for resume sequence. More...
|
|
#define | Is_host_suspended() |
| Check if host controller is in suspend mode. More...
|
|
#define | PIPE_CRC16 0x10 |
|
#define | PIPE_DATA_PID 0x02 |
|
#define | PIPE_DATA_TOGGLE 0x01 |
|
#define | PIPE_DELAY_TIMEOUT 0x80 |
|
#define | PIPE_GOOD 0x00 |
|
#define | PIPE_NAK_TIMEOUT 0x40 |
|
#define | PIPE_PID 0x04 |
|
#define | PIPE_STALL 0x20 |
|
#define | PIPE_TIMEOUT 0x08 |
|