Modules | |
USB host custom actions | |
USB device operating mode configuration | |
Macros | |
#define | CPU_RESET_CALLBACK() |
Reset callback - called just before the CPU reset takes in place. More... | |
#define | DEVICE_ADDRESS 0x05 |
The address that will be assigned to the connected device. More... | |
#define | HOST_AUTO_CFG_ENDPOINT ENABLE |
Try to configure the host pipe according to the device descriptors received. More... | |
#define | HOST_CONTINUOUS_SOF_INTERRUPT DISABLE |
Host Start-of-Frame interrupt always enabled. More... | |
#define | HOST_ERROR_RESTART DISABLE |
When host error state detected, go to detached state. More... | |
#define | HOST_STRICT_VID_PID_TABLE DISABLE |
The host controller will be limited to the strict VID/PID list. More... | |
#define | HOST_VBUS_LOW_TIMEOUT ((2000 * (unsigned long long) 60000000) / 1000) |
The time in cycle number that the VBus need to be dropped down after a "device unplugged" has been detected if no timeouts are needed, then this constant should not be defined. More... | |
#define | ID_PIN_CHANGE_GENERATE_RESET ENABLE |
Force CPU reset upon ID pin change. More... | |
#define | MAX_EP_PER_INTERFACE 3 |
The maximal number of endpoints per interface supported. More... | |
#define | NAK_RECEIVE_TIMEOUT 0x0FFF |
Number of NAK handshakes before time-out for receive functions (up to 0xFFFF) More... | |
#define | NAK_SEND_TIMEOUT 0x0FFF |
Number of NAK handshakes before time-out for transmit functions (up to 0xFFFF) More... | |
#define | NAK_TIMEOUT_ENABLE DISABLE |
Enable cpt NAK time-out for host transfer. More... | |
#define | SIZEOF_DATA_STAGE 250 |
The size of RAM buffer reserved for descriptor handling. More... | |
#define | TIMEOUT_DELAY 10 |
Delay (unit is in 1/4 s - 250 ms) before time-out value. More... | |
#define | TIMEOUT_DELAY_ENABLE ENABLE |
Enable time-out delay for host transfer. More... | |
#define | USB_HOST_PIPE_INTERRUPT_TRANSFER DISABLE |
USB host pipes transfers use USB communication interrupt (allows to use non-blocking functions) More... | |
#define CPU_RESET_CALLBACK | ( | ) |
Reset callback - called just before the CPU reset takes in place.
#define DEVICE_ADDRESS 0x05 |
The address that will be assigned to the connected device.
Referenced by usb_host_task().
#define HOST_AUTO_CFG_ENDPOINT ENABLE |
Try to configure the host pipe according to the device descriptors received.
#define HOST_CONTINUOUS_SOF_INTERRUPT DISABLE |
Host Start-of-Frame interrupt always enabled.
#define HOST_ERROR_RESTART DISABLE |
When host error state detected, go to detached state.
#define HOST_STRICT_VID_PID_TABLE DISABLE |
The host controller will be limited to the strict VID/PID list.
When enabled, if the device VID/PID does not belong to the supported list, the host controller software will not go to deeper configuration, but to error state.
#define HOST_VBUS_LOW_TIMEOUT ((2000 * (unsigned long long) 60000000) / 1000) |
The time in cycle number that the VBus need to be dropped down after a "device unplugged" has been detected if no timeouts are needed, then this constant should not be defined.
#define ID_PIN_CHANGE_GENERATE_RESET ENABLE |
Force CPU reset upon ID pin change.
#define MAX_EP_PER_INTERFACE 3 |
The maximal number of endpoints per interface supported.
Referenced by host_check_class().
#define NAK_RECEIVE_TIMEOUT 0x0FFF |
Number of NAK handshakes before time-out for receive functions (up to 0xFFFF)
Referenced by host_get_data().
#define NAK_SEND_TIMEOUT 0x0FFF |
Number of NAK handshakes before time-out for transmit functions (up to 0xFFFF)
Referenced by host_send_data().
#define NAK_TIMEOUT_ENABLE DISABLE |
Enable cpt NAK time-out for host transfer.
#define SIZEOF_DATA_STAGE 250 |
The size of RAM buffer reserved for descriptor handling.
Referenced by host_check_class().
#define TIMEOUT_DELAY 10 |
Delay (unit is in 1/4 s - 250 ms) before time-out value.
Referenced by host_get_data(), and host_send_data().
#define TIMEOUT_DELAY_ENABLE ENABLE |
Enable time-out delay for host transfer.
#define USB_HOST_PIPE_INTERRUPT_TRANSFER DISABLE |
USB host pipes transfers use USB communication interrupt (allows to use non-blocking functions)