pub fn wait_for_notification<D: DurationTicks>(
        &self,
        clear_bits_enter: u32,
        clear_bits_exit: u32,
        wait_for: D,
    ) -> Result<u32, FreeRtosError> {
        let mut val = 0;
        let r = unsafe {
            freertos_rs_task_notify_wait(
                clear_bits_enter,
                clear_bits_exit,
                &mut val as *mut _,
                wait_for.to_ticks(),
            )
        };

        if r == 0 {
            Ok(val)
        } else {
            Err(FreeRtosError::Timeout)
        }
    }
/// Wait for a notification to be posted.
Wait for a notification to be posted.
Wait for a notification to be posted .
pub fn wait_for_notification<D: DurationTicks>(
        &self,
        clear_bits_enter: u32,
        clear_bits_exit: u32,
        wait_for: D,
    ) -> Result<u32, FreeRtosError> {
        let mut val = 0;
        let r = unsafe {
            freertos_rs_task_notify_wait(
                clear_bits_enter,
                clear_bits_exit,
                &mut val as *mut _,
                wait_for.to_ticks(),
            )
        };
        if r == 0 {
            Ok(val)
        } else {
            Err(FreeRtosError::Timeout)
        }
    }
pub fn wait_for_notification < D : DurationTicks > ( & self , clear_bits_enter : u32 , clear_bits_exit : u32 , wait_for : D , ) -> Result < u32 , FreeRtosError > { let mut val = 0 ; let r = unsafe { freertos_rs_task_notify_wait ( clear_bits_enter , clear_bits_exit , & mut val as * mut _ , wait_for . to_ticks ( ) , ) } ; if r == 0 { Ok ( val ) } else { Err ( FreeRtosError :: Timeout ) } }
Wait for a notification to be posted.
Wait for a notification to be posted .
&self
clear_bits_enter
u32
clear_bits_exit
u32
wait_for
D
&self
clear_bits_enter
u32
clear_bits_exit
u32
wait_for
D