Modules | |
| USB host custom actions | |
Defines | |
| #define | VID_PID_TABLE |
| #define | CLASS_SUBCLASS_PROTOCOL |
| #define | SIZEOF_DATA_STAGE 250 |
| The size of RAM buffer reserved of descriptors manipulation. | |
| #define | DEVICE_ADDRESS 0x05 |
| The address that will be assigned to the connected device. | |
| #define | MAX_INTERFACE_SUPPORTED 0x03 |
| The maximum number of interface that can be supported (composite device). | |
| #define | MAX_EP_PER_INTERFACE 3 |
| The maximum number of endpoints per interface supported. | |
| #define | HOST_STRICT_VID_PID_TABLE DISABLE |
| The host controller will be limited to the strict VID/PID list. | |
| #define | HOST_AUTO_CFG_ENDPOINT ENABLE |
| Try to configure the host pipe according to the device descriptors received. | |
| #define | HOST_CONTINUOUS_SOF_INTERRUPT ENABLE |
| Host start of frame interrupt always enable. | |
| #define | HOST_ERROR_RESTART DISABLE |
| When Host error state detected, goto unattached state. | |
| #define | USB_HOST_PIPE_INTERRUPT_TRANSFER DISABLE |
| USB host pipes transfers use USB communication interrupt (allows to use none blocking functions). | |
| #define | ID_PIN_CHANGE_GENERATE_RESET ENABLE |
| Force WDT reset upon ID pin change. | |
| #define | TIMEOUT_DELAY_ENABLE ENABLE |
| Enable Timeout delay (time) for host transfer. | |
| #define | TIMEOUT_DELAY 10 |
| delay 1/4sec (250ms) before timeout value | |
| #define | NAK_TIMEOUT_ENABLE DISABLE |
| Enable cpt NAK Timeout for host transfer. | |
| #define | NAK_SEND_TIMEOUT 0x0FFF |
| Number of NAK handshake before timeout for transmit functions (up to 0xFFFF). | |
| #define | NAK_RECEIVE_TIMEOUT 0x0FFF |
| NAKNumber of NAK handshake before timeout for receive functions (up to 0xFFFF). | |
| #define | SOFTWARE_VBUS_CTRL ENABLE |
| For reduced host only allows to control VBUS generator with PIO PE.7. | |
| #define | User_configure_endpoint() |
| If no auto configuration of EP, map here user function. | |
Functions | |
| void | host_sof_action (void) |
| #define VID_PID_TABLE |
Value:
{VID_ATMEL, 2, PID_MegaHIDMouse, 0x2014 \
,0x0123, 3, 0x2000, 0x2100, 0x1258}
Definition at line 98 of file conf_usb.h.
| #define CLASS_SUBCLASS_PROTOCOL |
Value:
{\
0x00, 0x00, 0x00,\
MS_CLASS, MS_SUB_CLASS2, MS_PROTOCOL,\
MS_CLASS, MS_SUB_CLASS5, MS_PROTOCOL,\
MS_CLASS, MS_SUB_CLASS6, MS_PROTOCOL,\
HID_CLASS, NO_SUBCLASS, HID_PROTOCOL_MOUSE,\
HID_CLASS, HID_SUB_CLASS_BOOT, HID_PROTOCOL_MOUSE,\
HID_CLASS, NO_SUBCLASS, NO_PROTOCOL,\
}
CLASS_SUBCLASS_PROTOCOL format definition:
define CLASS_SUBCLASS_PROTOCOL {CLASS1, SUB_CLASS1,PROTOCOL1,
...
CLASSz, SUB_CLASSz,PROTOCOLz}
Definition at line 111 of file conf_usb.h.
| #define SIZEOF_DATA_STAGE 250 |
The size of RAM buffer reserved of descriptors manipulation.
Definition at line 122 of file conf_usb.h.
| #define DEVICE_ADDRESS 0x05 |
The address that will be assigned to the connected device.
Definition at line 125 of file conf_usb.h.
| #define MAX_INTERFACE_SUPPORTED 0x03 |
The maximum number of interface that can be supported (composite device).
Definition at line 128 of file conf_usb.h.
| #define MAX_EP_PER_INTERFACE 3 |
| #define HOST_STRICT_VID_PID_TABLE DISABLE |
The host controller will be limited to the strict VID/PID list.
When enabled, if the device PID/VID does not belongs to the supported list, the host controller library will not go to deeper configuration, but to error state.
Definition at line 136 of file conf_usb.h.
| #define HOST_AUTO_CFG_ENDPOINT ENABLE |
Try to configure the host pipe according to the device descriptors received.
Definition at line 139 of file conf_usb.h.
| #define HOST_CONTINUOUS_SOF_INTERRUPT ENABLE |
| #define HOST_ERROR_RESTART DISABLE |
| #define USB_HOST_PIPE_INTERRUPT_TRANSFER DISABLE |
USB host pipes transfers use USB communication interrupt (allows to use none blocking functions).
Definition at line 148 of file conf_usb.h.
| #define ID_PIN_CHANGE_GENERATE_RESET ENABLE |
| #define TIMEOUT_DELAY_ENABLE ENABLE |
| #define TIMEOUT_DELAY 10 |
delay 1/4sec (250ms) before timeout value
Definition at line 157 of file conf_usb.h.
Referenced by usb_general_interrupt().
| #define NAK_TIMEOUT_ENABLE DISABLE |
| #define NAK_SEND_TIMEOUT 0x0FFF |
Number of NAK handshake before timeout for transmit functions (up to 0xFFFF).
Definition at line 163 of file conf_usb.h.
| #define NAK_RECEIVE_TIMEOUT 0x0FFF |
NAKNumber of NAK handshake before timeout for receive functions (up to 0xFFFF).
Definition at line 166 of file conf_usb.h.
| #define SOFTWARE_VBUS_CTRL ENABLE |
For reduced host only allows to control VBUS generator with PIO PE.7.
Definition at line 169 of file conf_usb.h.
| #define User_configure_endpoint | ( | ) |
| void host_sof_action | ( | void | ) |
1.5.3