#include "config.h"
#include "pic_usb.h"
#include "pic_usb_buffer_mgt.h"
#include "pic_serial.h"
#include "usb_hid_class.h"
#include "memory.h"
Go to the source code of this file.
Defines | |
#define | req_GET_IDLE 0x02 |
#define | req_GET_PROTOCOL 0x03 |
#define | req_GET_REPORT 0x01 |
#define | req_SET_IDLE 0x0a |
#define | req_SET_PROTOCOL 0x0b |
#define | req_SET_REPORT 0x09 |
Functions | |
void | usb_handle_class_request (setup_data_packet sdp) |
void | usb_handle_ctrl_read_class () |
void | usb_handle_ctrl_write_class (uns8 *data, uns16 count) |
Ian Harris 2008 imharris [at] gmail.com
Released under the "do whatever you like with this but if it breaks, you get to keep both pieces" license
Definition in file usb_hid_class.c.
#define req_GET_IDLE 0x02 |
#define req_GET_PROTOCOL 0x03 |
#define req_GET_REPORT 0x01 |
#define req_SET_IDLE 0x0a |
#define req_SET_PROTOCOL 0x0b |
#define req_SET_REPORT 0x09 |
void usb_handle_class_request | ( | setup_data_packet | sdp | ) |
Definition at line 43 of file usb_hid_class.c.
References _setup_data_packet::bRequest, req_GET_IDLE, req_GET_PROTOCOL, req_GET_REPORT, req_SET_IDLE, req_SET_PROTOCOL, req_SET_REPORT, serial_print_int(), serial_print_str(), and usb_stall_ep0().
Referenced by usb_handle_transaction().
void usb_handle_ctrl_read_class | ( | ) |
Definition at line 37 of file usb_hid_class.c.
Referenced by usb_handle_transaction().
void usb_handle_ctrl_write_class | ( | uns8 * | data, | |
uns16 | count | |||
) |
Definition at line 40 of file usb_hid_class.c.
Referenced by usb_handle_transaction().