zpp
Zephyr C++20 Framework
|
wrapper class around a k_poll_event More...
#include <poll_event.hpp>
Public Types | |
enum class | type_tag : uint8_t { type_unknown , type_sem , type_fifo , type_signal , type_ignore } |
type of event sources More... | |
Public Member Functions | |
poll_event (k_poll_event *event) noexcept | |
wrap a k_poll_event pointer More... | |
void | assign (std::nullptr_t) noexcept |
assign a null event (that will be ignored when polling) More... | |
void | assign (sem &s) noexcept |
assign a semaphore to this event More... | |
void | assign (sem_ref &s) noexcept |
assign a semaphore to this event More... | |
template<typename T_FifoItem > | |
void | assign (fifo< T_FifoItem > &f) noexcept |
assign a fifo to this event More... | |
template<typename T_FifoItem > | |
void | assign (fifo_ref< T_FifoItem > &f) noexcept |
assign a fifo to this event More... | |
void | assign (poll_signal &s) noexcept |
assign a signal to this event More... | |
void | assign (poll_signal_ref &s) noexcept |
assign a signal to this event More... | |
bool | is_ready () noexcept |
check if this event is ready More... | |
void | reset () noexcept |
reset event to non ready state More... | |
bool | is_cancelled () noexcept |
check if this event is cancelled More... | |
template<typename T_FifoItemType > | |
auto | fifo () noexcept |
get access to the fifo of the event More... | |
auto | sem () noexcept |
get access to the sem of the event More... | |
auto | signal () noexcept |
get access to the signal of the event More... | |
poll_event (const poll_event &)=delete | |
poll_event (poll_event &&)=delete | |
poll_event & | operator= (const poll_event &)=delete |
poll_event & | operator= (poll_event &&)=delete |
wrapper class around a k_poll_event
Definition at line 29 of file poll_event.hpp.
|
strong |
type of event sources
Enumerator | |
---|---|
type_unknown | |
type_sem | |
type_fifo | |
type_signal | |
type_ignore |
Definition at line 34 of file poll_event.hpp.
|
inlinenoexcept |
wrap a k_poll_event pointer
event | the event to wrap |
Definition at line 47 of file poll_event.hpp.
|
delete |
|
delete |
|
inlinenoexcept |
assign a fifo to this event
f | the fifo to poll |
Definition at line 103 of file poll_event.hpp.
References type_fifo.
|
inlinenoexcept |
assign a fifo to this event
f | the fifo to poll |
Definition at line 119 of file poll_event.hpp.
References type_fifo.
|
inlinenoexcept |
assign a signal to this event
s | the signal to poll |
Definition at line 134 of file poll_event.hpp.
References type_signal.
|
inlinenoexcept |
assign a signal to this event
s | the signal to poll |
Definition at line 149 of file poll_event.hpp.
References type_signal.
|
inlinenoexcept |
assign a semaphore to this event
s | the semaphore to poll |
Definition at line 72 of file poll_event.hpp.
References type_sem.
|
inlinenoexcept |
assign a semaphore to this event
s | the semaphore to poll |
Definition at line 87 of file poll_event.hpp.
References type_sem.
|
inlinenoexcept |
assign a null event (that will be ignored when polling)
Definition at line 56 of file poll_event.hpp.
References type_ignore.
|
inlinenoexcept |
get access to the fifo of the event
Definition at line 222 of file poll_event.hpp.
References type_fifo.
|
inlinenoexcept |
check if this event is cancelled
Definition at line 201 of file poll_event.hpp.
References type_unknown.
|
inlinenoexcept |
check if this event is ready
Definition at line 165 of file poll_event.hpp.
References type_fifo, type_ignore, type_sem, type_signal, and type_unknown.
|
delete |
|
delete |
|
inlinenoexcept |
reset event to non ready state
Definition at line 189 of file poll_event.hpp.
|
inlinenoexcept |
get access to the sem of the event
Definition at line 238 of file poll_event.hpp.
References type_sem.
|
inlinenoexcept |
get access to the signal of the event
Definition at line 254 of file poll_event.hpp.
References type_signal.