pub struct EventGroup { /* private fields */ }Expand description
An event group
Implementations§
Source§impl EventGroup
impl EventGroup
Sourcepub fn new() -> Result<EventGroup, FreeRtosError>
pub fn new() -> Result<EventGroup, FreeRtosError>
Create a new event group
Sourcepub unsafe fn from_raw_handle(handle: FreeRtosEventGroupHandle) -> Self
pub unsafe fn from_raw_handle(handle: FreeRtosEventGroupHandle) -> Self
§Safety
handle must be a valid FreeRTOS event group handle.
pub fn raw_handle(&self) -> FreeRtosEventGroupHandle
pub fn set_bits( &self, bits_to_set: FreeRtosEventBitsType, ) -> FreeRtosEventBitsType
pub fn get_bits(&self) -> FreeRtosEventBitsType
pub fn clear_bits( &self, bits_to_clear: FreeRtosEventBitsType, ) -> FreeRtosEventBitsType
pub fn wait_bits<D: DurationTicks>( &self, bits_to_wait_for: FreeRtosEventBitsType, clear_on_exit: FreeRtosBaseType, wait_for_all_bits: FreeRtosBaseType, duration: D, ) -> FreeRtosEventBitsType
pub fn sync<D: DurationTicks>( &self, bits_to_set: FreeRtosEventBitsType, bits_to_wait_for: FreeRtosEventBitsType, duration: D, ) -> FreeRtosEventBitsType
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventGroup
impl RefUnwindSafe for EventGroup
impl Unpin for EventGroup
impl UnwindSafe for EventGroup
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more