Parsec

ParsecClientSendVirtualUSB

ParsecStatusParsecClientSendVirtualUSB(Parsec *
ps,
uint8_t
stream,
uint8_t
id,
uint16_t
vid,
uint16_t
pid,
const void *
vusbd,
size_t
size
)

Send virtual USB binary data to the host.

Parameters

DirectionNameDescription
inpsParsec instance returned by ParsecInit.
instreamThe stream index. Must be less than NUM_VSTREAMS.
inidVirtual device instance identifier.
invidThe virtual USB vendor id.
inpidThe virtual USB vendor defined product id.
invusbdThe bytes of the virtual usb data.
insizeThe size of the virtual usb data.

Returns

PARSEC_OK if the message was sent successfully, otherwise a ParsecStatus error value.