4.2 Output Structure crono_packet
¶
-
struct crono_packet¶
Packet data structure in the host buffer for packets carrying varying amounts of data.
The size of the data[] array is given in the length field.
Public Members
-
uint8_t channel¶
Number of the source channel of the data.
-
uint8_t card¶
ID of the card.
-
uint8_t type¶
Type of packet.
One of CRONO_PACKET_TYPE_*.
-
uint8_t flags¶
Bit field of CRONO_PACKET_FLAG_* bits.
-
uint32_t length¶
Length of data array in multiples of 8 bytes.
-
int64_t timestamp¶
Timestamp of packet creation.
It may be the start or the end of the data, depending on the packet source.
-
uint64_t data[1]¶
Payload of the packet.
Data type must be cast according to CRONO_PACKET_TYPE_*.
-
uint8_t channel¶