usb_specific_request.h File Reference

This file contains the user callback functions corresponding to the application. More...

#include "config.h"

Go to the source code of this file.

Functions

Bool usb_user_read_request (U8, U8)
 This function is called by the standard usb read request function when the Usb request is not supported.
Bool usb_user_get_descriptor (U8, U8)
 usb_user_get_descriptor.
void usb_user_endpoint_init (U8)
 usb_user_endpoint_init.

Detailed Description

This file contains the user callback functions corresponding to the application.

Definition in file usb_specific_request.h.


Function Documentation

void usb_user_endpoint_init ( U8  conf_nb  ) 

usb_user_endpoint_init.

This function configures the endpoints.

Parameters:
conf_nb Not used

Definition at line 315 of file usb_specific_request.c.

References Usb_reset_endpoint.

Bool usb_user_get_descriptor ( U8  type,
U8  string 
)

usb_user_get_descriptor.

This function returns the size and the pointer on a user information structure

Parameters:
type descriptor type
string descriptor ID
Return values:
FALSE 

Definition at line 200 of file usb_specific_request.c.

References S_usb_language_id::bLength, FALSE, and TRUE.

Bool usb_user_read_request ( U8  type,
U8  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.

Parameters:
type Not used
request Read request type
Return values:
FALSE if unknown read type
TRUE if request type is processed

Definition at line 89 of file usb_specific_request.c.

References FALSE, get_nb_lun(), rndis_get_encapsulated_command(), rndis_send_encapsulated_command(), TRUE, Usb_ack_receive_setup, usb_configuration_nb, Usb_read_byte, Usb_send_control_in, and Usb_write_byte.

Referenced by usb_process_request().


Generated on Mon Apr 11 14:23:48 2011 for Contiki 2.5 by  doxygen 1.6.1