#include "config.h"
#include "conf\conf_usb.h"
#include "lib_mcu\usb\usb_drv.h"
#include "modules\usb\usb_enum.h"
#include "usb_user_configuration.h"
#include "usb_user_enum.h"
#include "usb_task.h"
Go to the source code of this file.
Functions | |
| void | usb_get_descriptor (void) |
| Bool | usb_user_read_request (U8 type, U8 request) |
| usb_user_read_request(type, request); | |
| Bool | usb_user_get_descriptor (U8 type, U8 string) |
| usb_user_get_descriptor. | |
| void | usb_user_endpoint_init (U8 conf_nb) |
| usb_user_endpoint_init. | |
Variables | |
| U8 | hid_idle_duration |
| U8 | send_free |
| _MEM_TYPE_SLOW_ U8 * | pbuffer |
| _MEM_TYPE_SLOW_ U8 | data_to_transfer |
| S_hid_set_control | SetControlBytes |
| bit | reset_to_bootloader |
| code U8 | hid_report [] |
Use of this program is subject to Atmel's End User License Agreement. Please read file license.txt for copyright notice.
This file contains the user call-back functions corresponding to the application: MASS STORAGE DEVICE
Definition in file usb_user_enum.c.
|
|
|
|
||||||||||||
|
usb_user_read_request(type, 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.
Definition at line 64 of file usb_user_enum.c. References S_hid_set_control::arrived, Bool, S_hid_set_control::direction, FALSE, GET_DESCRIPTOR, HID_CONTROL_DATA_LENGTH, HID_GET_IDLE, hid_idle_duration, HID_SET_IDLE, HID_SET_REPORT, Is_usb_in_ready, Is_usb_receive_out, S_hid_set_control::length, pointer, reset_to_bootloader, SetControlBytes, TRUE, S_hid_set_control::type, U8, Usb_ack_in_ready, Usb_ack_receive_out, Usb_ack_receive_setup, usb_get_descriptor(), Usb_read_byte, Usb_send_control_in, Usb_set_DIR, and Usb_write_byte. Referenced by usb_process_request().
|
|
||||||||||||
|
|
usb_user_endpoint_init. This function configures the endpoints.
Definition at line 209 of file usb_user_enum.c. References DIRECTION_IN, DIRECTION_OUT, EP_HID_IN, EP_HID_OUT, ep_size, Is_usb_high_speed, NYET_ENABLED, send_free, SIZE_512, SIZE_64, TWO_BANKS, TYPE_INTERRUPT, U8, and usb_configure_endpoint. Referenced by usb_set_configuration().
|
|
|
Definition at line 36 of file usb_user_enum.c. Referenced by usb_user_read_request(). |
|
|
Definition at line 37 of file usb_user_enum.c. |
|
|
Definition at line 39 of file usb_user_enum.c. Referenced by usb_get_descriptor(), and usb_user_get_descriptor(). |
|
|
Definition at line 40 of file usb_user_enum.c. Referenced by usb_get_descriptor(), and usb_user_get_descriptor(). |
|
|
Definition at line 42 of file usb_user_enum.c. |
|
|
Definition at line 44 of file usb_user_enum.c. Referenced by usb_user_read_request(), and user_application_task(). |
|
|
Definition at line 45 of file usb_user_enum.c. Referenced by usb_user_get_descriptor(). |
1.3.7