mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
Improved the docs for the 3 main Tactility projects. I also fixed some inaccuracies and bugs in certain APIs as I went through the code.
25 lines
772 B
C
25 lines
772 B
C
#pragma once
|
|
|
|
#include <freertos/FreeRTOS.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
typedef void* MessageQueueHandle;
|
|
|
|
MessageQueueHandle tt_message_queue_alloc(uint32_t capacity, uint32_t messageSize);
|
|
void tt_message_queue_free(MessageQueueHandle handle);
|
|
bool tt_message_queue_put(MessageQueueHandle handle, const void* message, TickType_t timeout);
|
|
bool tt_message_queue_get(MessageQueueHandle handle, void* message, TickType_t timeout);
|
|
uint32_t tt_message_queue_get_capacity(MessageQueueHandle handle);
|
|
uint32_t tt_message_queue_get_message_size(MessageQueueHandle handle);
|
|
uint32_t tt_message_queue_get_count(MessageQueueHandle handle);
|
|
bool tt_message_queue_reset(MessageQueueHandle handle);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |