Microchip® Advanced Software Framework

udi_phdc.h File Reference

USB Device Personal Healthcare Device Class (PHDC) interface definitions.

Copyright (c) 2009-2018 Microchip Technology Inc. and its subsidiaries.

#include "conf_usb.h"
#include "usb_protocol.h"
#include "usb_protocol_phdc.h"
#include "udd.h"
#include "udc_desc.h"
#include "udi.h"

Data Structures

struct  udi_phdc_desc_t
 
struct  udi_phdc_fnctext_desc_t
 
struct  udi_phdc_metadata_t
 

Macros

#define UDI_PHDC_BMCAPABILITY   USB_PHDC_CAPABILITY_METADATAMSG_PREAMBLE
 
#define UDI_PHDC_DESC
 
#define UDI_PHDC_EP_INTIN
 
#define UDI_PHDC_FNCTEXT
 
#define UDI_PHDC_METADATA_BULKIN
 
#define UDI_PHDC_METADATA_BULKOUT
 
#define UDI_PHDC_METADATA_INTIN
 
#define UDI_PHDC_NUM_ENDPOINT   3 /* Bulk IN, bulk OUT, Interrupt IN */
 
#define UDI_PHDC_PREAMBLE_FEATURE   false /* No preample message by default */
 
#define UDI_PHDC_STRING_ID   0
 

Functions

bool udi_phdc_senddata (udi_phdc_metadata_t *metadata, void(*callback)(uint16_t))
 Send metadata to USB host. More...
 
void udi_phdc_senddata_abort (void)
 Abort of send metadata to USB host. More...
 
bool udi_phdc_waitdata (udi_phdc_metadata_t *metadata, void(*callback)(bool, uint16_t))
 Wait metadata from USB host. More...
 

Variables

static le16_t tmp_wDevSpecializations [] = UDI_PHDC_SPECIALIZATION
 
UDC_DESC_STORAGE udi_api_t udi_api_phdc
 

#define UDI_PHDC_PREAMBLE_FEATURE   false /* No preample message by default */