#include "config.h"
Ir al código fuente de este archivo.
Estructuras de datos | |
struct | S_usb_hid_report_descriptor_mouse |
Usb HID Report Descriptor Mouse. Más... | |
Definiciones | |
#define | SETUP_HID_GET_REPORT 0x01 |
#define | SETUP_HID_GET_IDLE 0x02 |
#define | SETUP_HID_GET_PROTOCOL 0x03 |
#define | SETUP_HID_SET_REPORT 0x09 |
#define | SETUP_HID_SET_IDLE 0x0A |
#define | SETUP_HID_SET_PROTOCOL 0x0B |
#define | REPORT_TYPE_INPUT 0x01 |
#define | REPORT_TYPE_OUTPUT 0x02 |
#define | REPORT_TYPE_FEATURE 0x03 |
Funciones | |
Bool | usb_user_read_request (U8, U8) |
void | usb_user_endpoint_init (U8) |
U8 | usb_user_interface_get (U16 wInterface) |
void | usb_user_interface_reset (U16 wInterface, U8 alternate_setting) |
Bool | usb_user_get_descriptor (U8, U8) |
Variables | |
code S_usb_device_descriptor | usb_dev_desc |
code S_usb_user_configuration_descriptor | usb_conf_desc |
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_language_id | usb_user_language_id |
#define REPORT_TYPE_FEATURE 0x03 |
#define REPORT_TYPE_INPUT 0x01 |
#define REPORT_TYPE_OUTPUT 0x02 |
#define SETUP_HID_GET_IDLE 0x02 |
#define SETUP_HID_GET_PROTOCOL 0x03 |
#define SETUP_HID_GET_REPORT 0x01 |
#define SETUP_HID_SET_IDLE 0x0A |
#define SETUP_HID_SET_PROTOCOL 0x0B |
#define SETUP_HID_SET_REPORT 0x09 |
void usb_user_endpoint_init | ( | U8 | conf_nb | ) |
This function configures the endpoints.
conf_nb | configuration number choosed by USB host |
This function fills the global descriptor
type | corresponding at MSB of wValue (see USB specification) | |
string | corresponding at LSB of wValue (see USB specification) |
This function returns the interface alternate setting.
wInterface | Interface selected |
This function selects (and resets) the interface alternate setting.
wInterface | Interface selected | |
alternate_setting | alternate setting selected |
This function checks the specific request and if known then processes it
type | corresponding at bmRequestType (see USB specification) | |
request | corresponding at bRequest (see USB specification) |
FALSE, if the request is'nt know (STALL handshake is managed by the main standard request function).