#include "config.h"
#include "usb_drv.h"
#include "usb_descriptors.h"
#include "usb_standard_request.h"
#include "usb_specific_request.h"
Funciones | |
void | hid_get_report_descriptor (void) |
void | usb_hid_set_report_ouput (void) |
void | usb_hid_set_idle (U8 u8_report_id, U8 u8_duration) |
void | usb_hid_get_idle (U8 u8_report_id) |
void | hid_get_hid_descriptor (void) |
Bool | usb_user_read_request (U8 type, U8 request) |
void | usb_user_endpoint_init (U8 conf_nb) |
U8 | usb_user_interface_get (U16 wInterface) |
void | usb_user_interface_reset (U16 wInterface, U8 alternate_setting) |
Bool | usb_user_get_descriptor (U8 type, U8 string) |
Variables | |
U8 code * | pbuffer |
U8 | data_to_transfer |
code S_usb_hid_report_descriptor_mouse | usb_hid_report_descriptor_mouse |
U8 | g_u8_report_rate = 0 |
void hid_get_hid_descriptor | ( | void | ) |
This function manages hid get hid descriptor request.
void hid_get_report_descriptor | ( | void | ) |
This function manages hit get repport request.
void usb_hid_get_idle | ( | U8 | u8_report_id | ) |
This function manages hid get idle request.
Report | ID 0 the idle rate applies to all input reports, else only applies to the Report ID |
This function manages hid set idle request.
Duration | When the upper byte of wValue is 0 (zero), the duration is indefinite else from 0.004 to 1.020 seconds | |
Report | ID 0 the idle rate applies to all input reports, else only applies to the Report ID |
void usb_hid_set_report_ouput | ( | void | ) |
This function manages hit set report request.
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).
U8 g_u8_report_rate = 0 |