Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
USB device specific requests

Functions

void usb_user_endpoint_init (U8)
 This function configures the endpoints of the device application. More...
 
bool usb_user_get_descriptor (U8, U8)
 This function returns the size and the pointer on a user information structure. More...
 
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. More...
 

void usb_user_endpoint_init ( U8  conf_nb)

This function configures the endpoints of the device application.

This function is called when the set configuration request has been received.

The core of this function should be correctly rewritten depending on the USB device application characteristics (the USB device application has specific endpoint configuration).

This function is called when the set configuration request has been received.

References DIRECTION_IN, DIRECTION_OUT, EP_ATTRIBUTES_1, EP_ATTRIBUTES_2, EP_ATTRIBUTES_3, EP_ATTRIBUTES_4, EP_FC_IN, EP_FC_OUT, EP_MS_IN, EP_MS_OUT, EP_SIZE_1, EP_SIZE_2, EP_SIZE_3, EP_SIZE_4, ms_multiple_drive, SINGLE_BANK, and Usb_configure_endpoint.

Referenced by usb_set_configuration().

bool usb_user_get_descriptor ( U8  ,
U8   
)
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.

References EP_CONTROL, GET_MAX_LUN, get_nb_lun(), Is_usb_control_in_ready, Is_usb_control_out_received, MASS_STORAGE_RESET, ms_multiple_drive, Usb_ack_control_in_ready_send, Usb_ack_control_out_received_free, Usb_ack_setup_received_free, Usb_read_endpoint_data, Usb_reset_endpoint_fifo_access, and Usb_write_endpoint_data.

Referenced by usb_process_request().