CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
Loading...
Searching...
No Matches
adapter_efa_probe_tx.h File Reference

The declarations in this header file correspond to the definitions in adapter_efa_probe_tx.c. More...

#include "adapter_api.h"
#include "private.h"

Go to the source code of this file.

Typedefs

typedef struct CdiRawProbeHeader CdiRawProbeHeader
 Forward declaration of structure to create pointers.
 

Functions

void ProbeTxEfaMessageFromEndpoint (void *param_ptr, Packet *packet_ptr, EndpointMessageType message_type)
 
void ProbeTxControlMessageFromEndpoint (void *param_ptr, Packet *packet_ptr)
 
bool ProbeTxControlProcessPacket (ProbeEndpointState *probe_ptr, const CdiDecodedProbeHeader *probe_hdr_ptr, uint64_t *wait_timeout_ms_ptr)
 
uint64_t ProbeTxControlProcessProbeState (ProbeEndpointState *probe_ptr)
 

Detailed Description

The declarations in this header file correspond to the definitions in adapter_efa_probe_tx.c.

Function Documentation

◆ ProbeTxControlMessageFromEndpoint()

void ProbeTxControlMessageFromEndpoint ( void * param_ptr,
Packet * packet_ptr )

Process a control packet completion message from the transmitter probe control interface endpoint.

NOTE: This function is called from PollThread().

Parameters
param_ptrPointer to user parameter.
packet_ptrPointer to packet containing the control message.

◆ ProbeTxControlProcessPacket()

bool ProbeTxControlProcessPacket ( ProbeEndpointState * probe_ptr,
const CdiDecodedProbeHeader * probe_hdr_ptr,
uint64_t * wait_timeout_ms_ptr )

Process control message for Tx connection.

NOTE: This function is called from ProbeControlThread().

Parameters
probe_ptrPointer to probe endpoint state data.
probe_hdr_ptrPointer to control message header.
wait_timeout_ms_ptrPointer to current wait timeout. This function may alter the contents of the value.
Returns
True if new probe state has been set, otherwise false is returned.

◆ ProbeTxControlProcessProbeState()

uint64_t ProbeTxControlProcessProbeState ( ProbeEndpointState * probe_ptr)

Called when the wait timeout period has expired. Time to process the current Tx probe state.

NOTE: This function is called from ProbeControlThread().

Parameters
probe_ptrPointer to probe endpoint state data.
Returns
Wait timeout value.

◆ ProbeTxEfaMessageFromEndpoint()

void ProbeTxEfaMessageFromEndpoint ( void * param_ptr,
Packet * packet_ptr,
EndpointMessageType message_type )

Process a probe packet completion message from the transmitter EFA endpoint.

NOTE: This function is called from Poll().

Parameters
param_ptrPointer to user parameter.
packet_ptrPointer to packet.
message_typeEndpoint message type.