Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

Description

Create a new instance of the PHDC.

Files

usbd_phdc.h / usbd_phdc.c

Prototype

Arguments

data_fmt_11073

Variable that indicates whether the class instance uses IEEE 11073 or a vendor-defined data format.

DEF_YES

Class instance uses IEEE 11073 data format.

DEF_NO

Class instance uses vendor-defined data format.

preamble_capable

Variable that indicates whether the class instance support metadata message preamble or not.

DEF_YES

Class instance support metadata message preamble.

DEF_NO

Class instance doesn’t support metadata message preamble.

preamble_en_notify

Pointer to a callback function that will notify the application if the host enable / disable metadata message preamble.

low_latency_interval

Interrupt endpoint interval in milliseconds. Can be 0 if PHDC device will not send low latency data. When the value is different from 0, it must be a power of 2.

p_err

Pointer to variable that will receive the return error code from this function.

USBD_ERR_NONE
USBD_ERR_ALLOC

Returned Value

Class instance number, if NO error(s).

USBD_CLASS_NBR_NONE, otherwise.

Callers

Application.

Notes / Warnings

None.

  • No labels