5#ifndef ELEC_C7222_UTILS_FREERTOS_TASK_NOTIFICATION_HPP
6#define ELEC_C7222_UTILS_FREERTOS_TASK_NOTIFICATION_HPP
68 static bool Wait(std::uint32_t bits_to_clear_on_entry,
69 std::uint32_t bits_to_clear_on_exit,
70 std::uint32_t* out_value,
71 std::uint32_t ticks_to_wait);
74 std::uint32_t bits_to_clear_on_entry,
75 std::uint32_t bits_to_clear_on_exit,
76 std::uint32_t* out_value,
77 std::uint32_t ticks_to_wait);
79 static std::uint32_t
Take(
bool clear_count_on_exit, std::uint32_t ticks_to_wait);
82 bool clear_count_on_exit,
83 std::uint32_t ticks_to_wait);
Utility interface for direct task notifications.
Definition freertos_task_notification.hpp:33
static bool Wait(std::uint32_t bits_to_clear_on_entry, std::uint32_t bits_to_clear_on_exit, std::uint32_t *out_value, std::uint32_t ticks_to_wait)
Wait on current task notification value.
static bool NotifyIndexed(TaskHandle task_handle, std::uint32_t index, std::uint32_t value, Action action)
Indexed notification variant.
static bool WaitIndexed(std::uint32_t index, std::uint32_t bits_to_clear_on_entry, std::uint32_t bits_to_clear_on_exit, std::uint32_t *out_value, std::uint32_t ticks_to_wait)
Indexed wait variant.
Action
Notification update action.
Definition freertos_task_notification.hpp:39
@ kSetValueWithoutOverwrite
void * TaskHandle
Opaque task handle type.
Definition freertos_task_notification.hpp:36
static bool Notify(TaskHandle task_handle, std::uint32_t value, Action action)
Send a notification to a task.
static std::uint32_t TakeIndexed(std::uint32_t index, bool clear_count_on_exit, std::uint32_t ticks_to_wait)
Indexed notification-as-count take helper.
static std::uint32_t Take(bool clear_count_on_exit, std::uint32_t ticks_to_wait)
Notification-as-count take helper for current task.
static bool NotifyFromISR(TaskHandle task_handle, std::uint32_t value, Action action)
Send a notification to a task from ISR context.
static bool NotifyIndexedFromISR(TaskHandle task_handle, std::uint32_t index, std::uint32_t value, Action action)
Indexed ISR notification variant.
C7222 course abstractions namespace.
Definition ble.hpp:20