RockBLOCK 9704 C Library
Doxygen documentation for the RockBLOCK 9704 C Library.
|
#include "imt_queue.h"
Functions | |
bool | imtQueueMoAdd (uint16_t topic, const char *data, const size_t length) |
Add an outgoing mobile-originated (MO) message to the queue. | |
bool | imtQueueMtAdd (const uint16_t topic, const uint16_t id, const size_t length) |
Add an incoming mobile-terminated (MT) message to the queue. | |
void | imtQueueMtLock (bool lock) |
Lock or unlock the MT queue to prevent messages from getting discarded if full. | |
imt_t * | imtQueueMoGetFirst (void) |
Get the address of the head of the MO queue. | |
imt_t * | imtQueueMtGetFirst (void) |
Get the address of the head of the MT queue. | |
imt_t * | imtQueueMtGetLast (void) |
Get the address of the latest message in the MT queue. | |
bool | imtQueueMoRemove (void) |
Remove an outgoing mobile-originated (MO) message from the queue. | |
bool | imtQueueMtRemove (void) |
Remove an outgoing mobile-terminated (MT) message from the queue. | |
void | imtQueueInit (void) |
Used to initialise both outgoing and incoming queues. | |
Variables | |
static imt_queue_t | imtMo |
static imt_queue_t | imtMt |
static uint8_t | imtMoBuffer [1U][100000U+2U] |
static uint8_t | imtMtBuffer [1U][100000U+2U] |
static volatile bool | mtLock = false |
void imtQueueInit | ( | void | ) |
Used to initialise both outgoing and incoming queues.
bool imtQueueMoAdd | ( | const uint16_t | topic, |
const char * | data, | ||
const size_t | length | ||
) |
Add an outgoing mobile-originated (MO) message to the queue.
topic | Message topic ID. |
data | Pointer to the message payload. |
length | Message payload length in bytes. |
imt_t * imtQueueMoGetFirst | ( | void | ) |
Get the address of the head of the MO queue.
bool imtQueueMoRemove | ( | void | ) |
Remove an outgoing mobile-originated (MO) message from the queue.
bool imtQueueMtAdd | ( | const uint16_t | topic, |
const uint16_t | id, | ||
const size_t | length | ||
) |
Add an incoming mobile-terminated (MT) message to the queue.
topic | Message topic ID. |
id | Unique identifier of the message assigned by the modem. |
length | Message payload length in bytes. |
imt_t * imtQueueMtGetFirst | ( | void | ) |
Get the address of the head of the MT queue.
imt_t * imtQueueMtGetLast | ( | void | ) |
Get the address of the latest message in the MT queue.
void imtQueueMtLock | ( | bool | lock | ) |
Lock or unlock the MT queue to prevent messages from getting discarded if full.
lock | Called with true to lock the queue and false to unlock the queue. |
bool imtQueueMtRemove | ( | void | ) |
Remove an outgoing mobile-terminated (MT) message from the queue.
|
static |
|
static |
|
static |
|
static |
|
static |