|
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. More... | |
| bool | imtQueueMtAdd (const uint16_t topic, const uint16_t id, const size_t length) |
| Add an incoming mobile-terminated (MT) message to the queue. More... | |
| void | imtQueueMtLock (bool lock) |
| Lock or unlock the MT queue to prevent messages from getting discarded if full. More... | |
| void | imtQueueMoLock (bool lock) |
| Lock or unlock the MO queue to prevent messages from getting discarded if full. More... | |
| imt_t * | imtQueueMoGetFirst (void) |
| Get the address of the head of the MO queue. More... | |
| imt_t * | imtQueueMtGetFirst (void) |
| Get the address of the head of the MT queue. More... | |
| imt_t * | imtQueueMtGetLast (void) |
| Get the address of the latest message in the MT queue. More... | |
| bool | imtQueueMoRemove (void) |
| Remove an outgoing mobile-originated (MO) message from the queue. More... | |
| bool | imtQueueMtRemove (void) |
| Remove an outgoing mobile-terminated (MT) message from the queue. More... | |
| void | imtQueueInit (void) |
| Used to initialise both outgoing and incoming queues. More... | |
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 |
| static volatile bool | moLock = true |
| uint16_t | moQueuedMessages |
| 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.
| void imtQueueMoLock | ( | bool | lock | ) |
Lock or unlock the MO queue to prevent messages from getting discarded if full.
| lock | Called with true to lock the queue and false to unlock the 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 |
|
extern |
|
static |