FuriMessageQueue.
More...
#include "base.h"
Go to the source code of this file.
◆ furi_message_queue_alloc()
FuriMessageQueue * furi_message_queue_alloc |
( |
uint32_t | msg_count, |
|
|
uint32_t | msg_size ) |
Allocate furi message queue.
- Parameters
-
[in] | msg_count | The message count |
[in] | msg_size | The message size |
- Returns
- pointer to FuriMessageQueue instance
◆ furi_message_queue_free()
Free queue.
- Parameters
-
instance | pointer to FuriMessageQueue instance |
◆ furi_message_queue_get()
FuriStatus furi_message_queue_get |
( |
FuriMessageQueue * | instance, |
|
|
void * | msg_ptr, |
|
|
uint32_t | timeout ) |
Get message from queue.
- Parameters
-
| instance | pointer to FuriMessageQueue instance |
| msg_ptr | The message pointer |
[in] | timeout | The timeout |
- Returns
- The furi status.
◆ furi_message_queue_get_capacity()
Get queue capacity.
- Parameters
-
instance | pointer to FuriMessageQueue instance |
- Returns
- capacity in object count
◆ furi_message_queue_get_count()
Get message count in queue.
- Parameters
-
instance | pointer to FuriMessageQueue instance |
- Returns
- Message count
◆ furi_message_queue_get_message_size()
Get message size.
- Parameters
-
instance | pointer to FuriMessageQueue instance |
- Returns
- Message size in bytes
◆ furi_message_queue_get_space()
Get queue available space.
- Parameters
-
instance | pointer to FuriMessageQueue instance |
- Returns
- Message count
◆ furi_message_queue_put()
FuriStatus furi_message_queue_put |
( |
FuriMessageQueue * | instance, |
|
|
const void * | msg_ptr, |
|
|
uint32_t | timeout ) |
Put message into queue.
- Parameters
-
| instance | pointer to FuriMessageQueue instance |
[in] | msg_ptr | The message pointer |
[in] | timeout | The timeout |
- Returns
- The furi status.
◆ furi_message_queue_reset()
Reset queue.
- Parameters
-
instance | pointer to FuriMessageQueue instance |
- Returns
- The furi status.