Microchip® Advanced Software Framework

udi_hid_multitouch.c File Reference

USB Device Human Interface Device (HID) multi-touch interface.

Copyright (c) 2015-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_multitouch.h"
#include <string.h>

Functions

void udi_hid_multi_touch_disable (void)
 
bool udi_hid_multi_touch_enable (void)
 
uint8_t udi_hid_multi_touch_getsetting (void)
 
bool udi_hid_multi_touch_send_report_in (uint8_t *data)
 Routine used to send a report to USB Host. More...
 
bool udi_hid_multi_touch_setup (void)
 
Internal routines
static bool udi_hid_multi_touch_setupreport (void)
 Recieve or send a report to HID interface. More...
 
static void udi_hid_multi_touch_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...
 

Variables

UDC_DESC_STORAGE udi_api_t udi_api_hid_multi_touch
 Global structure which contains standard UDI interface for UDC. More...
 
UDC_DESC_STORAGE
udi_hid_multi_touch_report_desc_t 
udi_hid_multi_touch_report_desc
 HID report descriptor for standard HID multi-touch. More...
 
Internal defines and variables to manage HID multi-touch
static COMPILER_WORD_ALIGNED
uint8_t 
udi_hid_multi_touch_rate
 To store current rate of HID multi-touch. More...
 
static COMPILER_WORD_ALIGNED
uint8_t 
udi_hid_multi_touch_protocol
 To store current protocol of HID multi-touch. More...
 
static bool udi_hid_multi_touch_b_report_in_free
 To signal if the report IN buffer is free (no transfer on going) More...
 
static COMPILER_WORD_ALIGNED
uint8_t 
udi_hid_multi_touch_report_in [UDI_HID_REPORT_IN_SIZE]
 Report to send. More...
 
static COMPILER_WORD_ALIGNED
uint8_t 
udi_hid_multi_touch_report_feature [UDI_HID_REPORT_FEATURE_SIZE]
 Report to receive via SetFeature. More...