Referencia del Archivo usb_specific_request.c

#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

Documentación de las funciones

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.

Parámetros:
Report ID 0 the idle rate applies to all input reports, else only applies to the Report ID

void usb_hid_set_idle ( U8  u8_report_id,
U8  u8_duration 
)

This function manages hid set idle request.

Parámetros:
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.

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

U8 code* pbuffer


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