USB Device Human Interface Device (HID) generic interface.
Copyright (c) 2009-2018 Microchip Technology Inc. and its subsidiaries.
#include "conf_usb.h"
#include "usb_protocol.h"
#include "udd.h"
#include "udc.h"
#include "udi_hid.h"
#include "udi_hid_generic.h"
#include <string.h>
Functions | |
void | udi_hid_generic_disable (void) |
bool | udi_hid_generic_enable (void) |
uint8_t | udi_hid_generic_getsetting (void) |
bool | udi_hid_generic_send_report_in (uint8_t *data) |
Routine used to send a report to USB Host. More... | |
bool | udi_hid_generic_setup (void) |
Internal routines | |
static bool | udi_hid_generic_setreport (void) |
Send a report to HID interface. More... | |
static void | udi_hid_generic_setfeature_valid (void) |
Initialize UDD to receive setfeature data. More... | |
static void | udi_hid_generic_report_out_received (udd_ep_status_t status, iram_size_t nb_received, udd_ep_id_t ep) |
Callback called when the report is received. More... | |
static bool | udi_hid_generic_report_out_enable (void) |
Enable reception of out report. More... | |
static void | udi_hid_generic_report_in_sent (udd_ep_status_t status, iram_size_t nb_sent, udd_ep_id_t ep) |
Callback called when the report is sent. More... | |