This file contains internal definitions and implementation used for payloads and probe packets using protocol version 1.
More...
|
struct | PacketCommonHeader |
| CDI header for payload packets that don't use data offset values (payload type is not kPayloadTypeDataOffset). More...
|
|
struct | PacketDataOffsetHeader |
| CDI header for payload packets that contains a data offset value (payload type is kPayloadTypeDataOffset). More...
|
|
struct | PacketNum0Header |
| CDI header for payload packet #0. This packet never uses payload_data_offset, since it is always zero. More...
|
|
struct | PacketHeaderUnion |
| Union of payload cdi headers. Use to reserve memory that can be used to hold any type of CDI packet header. More...
|
|
struct | ControlPacketCommonHeader |
| Common header for all probe control packets. NOTE: Last digit of Protocol Version is the probe version. This file supports probe versions 0 - 3. More...
|
|
struct | ControlPacketCommand |
| Probe command packet that is being transmitted. More...
|
|
struct | ControlPacketAck |
| Control ACK packet that is a response for a transmitted command. More...
|
|
struct | ProbePacketUnion |
| Structure used to hold a union of packets that are transmitted over the control or EFA interface. More...
|
|
|
| CDI_STATIC_ASSERT (CDI_RAW_PACKET_HEADER_SIZE_V1==sizeof(PacketHeaderUnion), "The define does not match the structure size!") |
| Ensure size of the external define matches the size of our internal structure.
|
|
| CDI_STATIC_ASSERT (CDI_RAW_PROBE_HEADER_SIZE_V1==sizeof(ProbePacketUnion), "The define does not match the structure size!") |
| Ensure size of the external define matches the size of our internal structure.
|
|
static void | HeaderDecode (const void *encoded_data_ptr, int encoded_data_size, CdiDecodedPacketHeader *dest_header_ptr) |
| Forward declaration of function.
|
|
static int | HeaderInit (void *header_ptr, int header_buffer_size, const TxPayloadState *payload_state_ptr) |
| Forward declaration of function.
|
|
static void | PacketRxReorderInfo (const CdiRawPacketHeader *header_ptr, CdiPacketRxReorderInfo *ret_info_ptr) |
| Forward declaration of function.
|
|
static CdiReturnStatus | ProbeHeaderDecode (const void *encoded_data_ptr, int encoded_data_size, CdiDecodedProbeHeader *dest_header_ptr) |
| Forward declaration of function.
|
|
static int | ProbeHeaderEncode (const CdiDecodedProbeHeader *src_header_ptr, CdiRawProbeHeader *dest_header_ptr) |
| Forward declaration of function.
|
|
static uint16_t | CalculateChecksum (const uint16_t *buffer_ptr, int size) |
| Calculate a checksum and return it.
|
|
void | ProtocolVersionSet1 (const CdiProtocolVersionNumber *remote_version_ptr, CdiProtocolHandle protocol_handle, CdiProtocolVTableApi **ret_api_ptr) |
| Set protocol version to 1.
|
|
This file contains internal definitions and implementation used for payloads and probe packets using protocol version 1.