Referencia del Archivo usb_specific_request.h

#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


Documentación de las definiciones

#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


Documentación de las funciones

void usb_user_endpoint_init ( U8  conf_nb  ) 

This function configures the endpoints.

Parámetros:
conf_nb configuration number choosed by USB host

Bool usb_user_get_descriptor ( U8  type,
U8  string 
)

This function fills the global descriptor

Parámetros:
type corresponding at MSB of wValue (see USB specification)
string corresponding at LSB of wValue (see USB specification)
Devuelve:
FALSE, if the global descriptor no filled

U8 usb_user_interface_get ( U16  wInterface  ) 

This function returns the interface alternate setting.

Parámetros:
wInterface Interface selected
Devuelve:
alternate setting configurated

void usb_user_interface_reset ( U16  wInterface,
U8  alternate_setting 
)

This function selects (and resets) the interface alternate setting.

Parámetros:
wInterface Interface selected
alternate_setting alternate setting selected

Bool usb_user_read_request ( U8  type,
U8  request 
)

This function checks the specific request and if known then processes it

Parámetros:
type corresponding at bmRequestType (see USB specification)
request corresponding at bRequest (see USB specification)
Devuelve:
TRUE, when the request is processed

FALSE, if the request is'nt know (STALL handshake is managed by the main standard request function).


Documentación de las variables


Generado el Sun Jun 21 23:52:37 2009 para CursorControl por  doxygen 1.5.9