35 #ifndef OPENTHREAD_MESSAGE_H_ 36 #define OPENTHREAD_MESSAGE_H_ 328 #endif // OPENTHREAD_MESSAGE_H_ This type represents all the static / global variables used by OpenThread allocated in one place...
Definition: openthread-instance.h:59
void otMessageQueueInit(otMessageQueue *aQueue)
Initialize the message queue.
Definition: message_api.cpp:115
This file defines the types and structures used in the OpenThread library API.
uint16_t otMessageGetLength(otMessage *aMessage)
Get the message length in bytes.
Definition: message_api.cpp:47
otError otMessageQueueEnqueueAtHead(otMessageQueue *aQueue, otMessage *aMessage)
This function adds a message at the head/front of the given message queue.
Definition: message_api.cpp:127
This structure represents the message buffer information.
Definition: types.h:1061
otError otMessageAppend(otMessage *aMessage, const void *aBuf, uint16_t aLength)
Append bytes to a message.
Definition: message_api.cpp:97
int otMessageWrite(otMessage *aMessage, uint16_t aOffset, const void *aBuf, uint16_t aLength)
Write bytes to a message.
Definition: message_api.cpp:109
This type points to an OpenThread message buffer.
Definition: types.h:479
otMessage * otMessageQueueGetHead(otMessageQueue *aQueue)
This function returns a pointer to the message at the head of the queue.
Definition: message_api.cpp:141
void * mData
Opaque data used by the implementation.
Definition: message.h:237
otError otMessageSetOffset(otMessage *aMessage, uint16_t aOffset)
Set the message offset in bytes.
Definition: message_api.cpp:65
otError otMessageQueueDequeue(otMessageQueue *aQueue, otMessage *aMessage)
This function removes a message from the given message queue.
Definition: message_api.cpp:134
OTAPI void OTCALL otMessageGetBufferInfo(otInstance *aInstance, otBufferInfo *aBufferInfo)
Get the Message Buffer information.
Definition: message_api.cpp:161
int8_t otMessageGetRss(otMessage *aMessage)
This function returns the average RSS (received signal strength) associated with the message...
Definition: message_api.cpp:91
otMessage * otMessageQueueGetNext(otMessageQueue *aQueue, const otMessage *aMessage)
This function returns a pointer to the next message in the queue by iterating forward (from head to t...
Definition: message_api.cpp:147
int otMessageRead(otMessage *aMessage, uint16_t aOffset, void *aBuf, uint16_t aLength)
Read bytes from a message.
Definition: message_api.cpp:103
void otMessageFree(otMessage *aMessage)
Free an allocated message buffer.
Definition: message_api.cpp:42
otError otMessageSetLength(otMessage *aMessage, uint16_t aLength)
Set the message length in bytes.
Definition: message_api.cpp:53
void otMessageSetDirectTransmission(otMessage *aMessage, bool aEnabled)
This function sets/forces the message to be forwarded using direct transmission.
Definition: message_api.cpp:77
uint16_t otMessageGetOffset(otMessage *aMessage)
Get the message offset in bytes.
Definition: message_api.cpp:59
otError otMessageQueueEnqueue(otMessageQueue *aQueue, otMessage *aMessage)
This function adds a message to the end of the given message queue.
Definition: message_api.cpp:120
bool otMessageIsLinkSecurityEnabled(otMessage *aMessage)
This function indicates whether or not link security is enabled for the message.
Definition: message_api.cpp:71
otError
This enumeration represents error codes used throughout OpenThread.
Definition: types.h:107
This structure represents an OpenThread message queue.
Definition: message.h:235