7 uint8_t * p = (uint8_t *)dst;
8 uint16_t lenLeft = maxLen;
11 while (iter != NULL) {
13 if (iter->
size > lenLeft) {
18 lenLeft -= iter->
size;
This module defines the fundamental PTP message and state machine type, flags, bitfields and the PTP ...
PtpMessageType
PTP packet type enumeration.
PTP profile additional data list element.
PtpMessageType msgType
Message type into which this extension should be inserted.
const void * data
Pointer to the data block.
struct _PtpProfileAdditionalData * next
Pointer to the next element of the list.
uint16_t size
Size of the data block.
uint16_t ptp_tlv_insert(void *dst, const PtpProfileTlvElement *pad, PtpMessageType mt, uint16_t maxLen)
This module implements the TLV-related functionality.