Flipper Zero Firmware
Loading...
Searching...
No Matches
message_queue.h
Go to the documentation of this file.
1
5#pragma once
6
7#include "base.h"
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
14
22FuriMessageQueue* furi_message_queue_alloc(uint32_t msg_count, uint32_t msg_size);
23
29
38FuriStatus
39 furi_message_queue_put(FuriMessageQueue* instance, const void* msg_ptr, uint32_t timeout);
40
49FuriStatus furi_message_queue_get(FuriMessageQueue* instance, void* msg_ptr, uint32_t timeout);
50
58
66
74
82
89FuriStatus furi_message_queue_reset(FuriMessageQueue* instance);
90
91#ifdef __cplusplus
92}
93#endif
FuriStatus furi_message_queue_put(FuriMessageQueue *instance, const void *msg_ptr, uint32_t timeout)
Put message into queue.
Definition message_queue.c:59
uint32_t furi_message_queue_get_message_size(FuriMessageQueue *instance)
Get message size.
Definition message_queue.c:150
FuriStatus furi_message_queue_reset(FuriMessageQueue *instance)
Reset queue.
Definition message_queue.c:190
uint32_t furi_message_queue_get_space(FuriMessageQueue *instance)
Get queue available space.
Definition message_queue.c:171
FuriMessageQueue * furi_message_queue_alloc(uint32_t msg_count, uint32_t msg_size)
Allocate furi message queue.
Definition message_queue.c:28
uint32_t furi_message_queue_get_capacity(FuriMessageQueue *instance)
Get queue capacity.
Definition message_queue.c:144
uint32_t furi_message_queue_get_count(FuriMessageQueue *instance)
Get message count in queue.
Definition message_queue.c:156
void furi_message_queue_free(FuriMessageQueue *instance)
Free queue.
Definition message_queue.c:46
FuriStatus furi_message_queue_get(FuriMessageQueue *instance, void *msg_ptr, uint32_t timeout)
Get message from queue.
Definition message_queue.c:102
Definition message_queue.c:14