#include "config.h"Go to the source code of this file.
Defines | |
| #define | HID_SET_REPORT 0x09 |
| #define | HID_SET_IDLE 0x0A |
| #define | HID_GET_IDLE 0x02 |
| #define | HID_CONTROL_DATA_LENGTH 4 |
| #define | HID_DESCRIPTOR 0x21 |
| #define | HID_REPORT_DESCRIPTOR 0x22 |
Functions | |
| Bool | usb_user_read_request (U8, U8) |
| usb_user_read_request(type, request); | |
| Bool | usb_user_get_descriptor (U8, U8) |
| usb_user_get_descriptor. | |
| void | usb_user_endpoint_init (U8) |
| usb_user_endpoint_init. | |
Variables | |
| code S_usb_device_descriptor | usb_dev_desc_hid |
| code S_usb_user_configuration_descriptor | usb_conf_desc_hid_hs |
| code S_usb_user_configuration_descriptor | usb_conf_desc_hid_fs |
| code S_usb_user_configuration_descriptor | usb_other_conf_desc_ms |
| code S_usb_device_qualifier_descriptor | usb_qual_desc_ms |
| code S_usb_manufacturer_string_descriptor | usb_user_manufacturer_string_descriptor |
| code S_usb_product_string_descriptor | usb_user_product_string_descriptor |
| code S_usb_serial_number | usb_user_serial_number |
| code S_usb_language_id | usb_user_language_id |
|
|
Definition at line 35 of file usb_user_enum.h. Referenced by usb_user_read_request(). |
|
|
Definition at line 36 of file usb_user_enum.h. Referenced by usb_user_read_request(). |
|
|
Definition at line 37 of file usb_user_enum.h. Referenced by usb_user_read_request(). |
|
|
Definition at line 38 of file usb_user_enum.h. Referenced by usb_user_read_request(). |
|
|
Definition at line 40 of file usb_user_enum.h. |
|
|
Definition at line 41 of file usb_user_enum.h. Referenced by usb_user_get_descriptor(). |
|
||||||||||||
|
usb_user_read_request(type, request); This function is called by the standard usb read request function when the Usb request is not supported. This function returns TRUE when the request is processed. This function returns FALSE if the request is not supported. In this case, a STALL handshake will be automatically sent by the standard usb read request function.
Definition at line 64 of file usb_user_enum.c. References S_hid_set_control::arrived, Bool, S_hid_set_control::direction, FALSE, GET_DESCRIPTOR, HID_CONTROL_DATA_LENGTH, HID_GET_IDLE, hid_idle_duration, HID_SET_IDLE, HID_SET_REPORT, Is_usb_in_ready, Is_usb_receive_out, S_hid_set_control::length, pointer, reset_to_bootloader, SetControlBytes, TRUE, S_hid_set_control::type, U8, Usb_ack_in_ready, Usb_ack_receive_out, Usb_ack_receive_setup, usb_get_descriptor(), Usb_read_byte, Usb_send_control_in, Usb_set_DIR, and Usb_write_byte. Referenced by usb_process_request().
|
|
||||||||||||
|
|
usb_user_endpoint_init. This function configures the endpoints.
Definition at line 209 of file usb_user_enum.c. References DIRECTION_IN, DIRECTION_OUT, EP_HID_IN, EP_HID_OUT, ep_size, Is_usb_high_speed, NYET_ENABLED, send_free, SIZE_512, SIZE_64, TWO_BANKS, TYPE_INTERRUPT, U8, and usb_configure_endpoint. Referenced by usb_set_configuration().
|
|
|
Definition at line 25 of file usb_user_enum.h. |
|
|
Definition at line 26 of file usb_user_enum.h. |
|
|
Definition at line 27 of file usb_user_enum.h. Referenced by usb_user_get_descriptor(). |
|
|
Definition at line 28 of file usb_user_enum.h. |
|
|
Definition at line 29 of file usb_user_enum.h. |
|
|
Definition at line 30 of file usb_user_enum.h. Referenced by usb_user_get_descriptor(). |
|
|
Definition at line 31 of file usb_user_enum.h. Referenced by usb_user_get_descriptor(). |
|
|
Definition at line 32 of file usb_user_enum.h. Referenced by usb_user_get_descriptor(). |
|
|
Definition at line 33 of file usb_user_enum.h. Referenced by usb_user_get_descriptor(). |
1.3.7