Build and schedule messages for satellite transmission.
More...
Build and schedule messages for satellite transmission.
◆ FLEX_MessageTransmitStatus
Message transmission status.
| Enumerator |
|---|
| FLEX_MSG_TRANSMIT_PENDING | Message not yet transmitted.
|
| FLEX_MSG_TRANSMIT_ONGOING | Message is currently being transmitted.
|
| FLEX_MSG_TRANSMIT_COMPLETE | Message fully transmitted.
|
| FLEX_MSG_TRANSMIT_EXPIRED | Message expired before completion.
|
◆ FLEX_MessageSchedule()
| int FLEX_MessageSchedule |
( |
const uint8_t *const | Message, |
|
|
const size_t | MessageSize ) |
Calling ScheduleMessage when the number of slots returned by MessageSlotsFree is 0 will replace an existing message in the queue. This may result in dropped messages.
- Parameters
-
| [in] | Message | pointer to the message to be scheduled. |
| [in] | MessageSize | length of the message. |
- Returns
- the message ID on success and < 0 if failed.
◆ FLEX_MessageSlotsFree()
| int FLEX_MessageSlotsFree |
( |
void | | ) |
|
Returns the number of available slots in the internal message queue, that is, the number of messages that can be scheduled with FLEX_MessageSchedule
◆ FLEX_MessageBytesFree()
| size_t FLEX_MessageBytesFree |
( |
void | | ) |
|
Returns the number of bytes remaining in the internal queue, that is, the number of bytes that can be scheduled with FLEX_MessageSchedule
- Returns
- number of bytes remaining in the internal queue.
◆ FLEX_MessageSave()
| void FLEX_MessageSave |
( |
void | | ) |
|
Save all messages in the message queue to the module's persistent storage. Saved messages will be transmitted after reset.
◆ FLEX_MessageSlotsMax()
| int FLEX_MessageSlotsMax |
( |
void | | ) |
|
Returns the maximum number of message slots available in the internal message queue. This value represents the total capacity of the queue, independent of how many slots are currently free.
- Returns
- maximum number of message slots available.
◆ FLEX_MessageQueueStatus()
Returns the status of messages in the message queue. Fills up to status_count entries in the status array.
- Parameters
-
| [in] | Status | pointer to an array of Flex_MessageStatus structs. |
| [in] | StatusCount | maximum number of Flex_MessageStatus structs to fill. |
- Returns
- the number of entries written if succeeded and < 0 if failed.
- Return values
-
| -FLEX_ERROR_EINVAL | invalid input. |
◆ FLEX_MessageQueueDelete()
| int FLEX_MessageQueueDelete |
( |
const uint16_t | MessageID | ) |
|
Deletes a message from the message queue based on its message ID.
- Returns
- FLEX_SUCCESS (0) if succeeded and < 0 if failed.
- Return values
-
| -FLEX_ERROR_EINVAL | message ID was not found. |