Ping Sender#

This file includes the OpenThread API for the ping sender module.

Modules#

otPingSenderReply

otPingSenderStatistics

otPingSenderConfig

Typedefs#

typedef struct otPingSenderReply

Represents a ping reply.

typedef struct otPingSenderStatistics

Represents statistics of a ping request.

typedef void(*
otPingSenderReplyCallback)(const otPingSenderReply *aReply, void *aContext)

Pointer type specifies the callback to notify receipt of a ping reply.

typedef void(*
otPingSenderStatisticsCallback)(const otPingSenderStatistics *aStatistics, void *aContext)

Pointer type specifies the callback to report the ping statistics.

typedef struct otPingSenderConfig

Represents a ping request configuration.

Functions#

otPingSenderPing(otInstance *aInstance, const otPingSenderConfig *aConfig)

Starts a ping.

void
otPingSenderStop(otInstance *aInstance)

Stops an ongoing ping.

Typedef Documentation#

otPingSenderReply#

typedef struct otPingSenderReply otPingSenderReply

Represents a ping reply.


otPingSenderStatistics#

typedef struct otPingSenderStatistics otPingSenderStatistics

Represents statistics of a ping request.


otPingSenderReplyCallback#

typedef void(* otPingSenderReplyCallback) (const otPingSenderReply *aReply, void *aContext) )(const otPingSenderReply *aReply, void *aContext)

Pointer type specifies the callback to notify receipt of a ping reply.

Parameters
TypeDirectionArgument NameDescription
[in]aReply

A pointer to a otPingSenderReply containing info about the received ping reply.

[in]aContext

A pointer to application-specific context.


otPingSenderStatisticsCallback#

typedef void(* otPingSenderStatisticsCallback) (const otPingSenderStatistics *aStatistics, void *aContext) )(const otPingSenderStatistics *aStatistics, void *aContext)

Pointer type specifies the callback to report the ping statistics.

Parameters
TypeDirectionArgument NameDescription
[in]aStatistics

A pointer to a otPingSenderStatistics containing info about the received ping statistics.

[in]aContext

A pointer to application-specific context.


otPingSenderConfig#

typedef struct otPingSenderConfig otPingSenderConfig

Represents a ping request configuration.


Function Documentation#

otPingSenderPing#

otError otPingSenderPing (otInstance * aInstance, const otPingSenderConfig * aConfig)

Starts a ping.

Parameters
TypeDirectionArgument NameDescription
otInstance *[in]aInstance

A pointer to an OpenThread instance.

const otPingSenderConfig *[in]aConfig

The ping config to use.


otPingSenderStop#

void otPingSenderStop (otInstance * aInstance)

Stops an ongoing ping.

Parameters
TypeDirectionArgument NameDescription
otInstance *[in]aInstance

A pointer to an OpenThread instance.