mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-10 00:36:00 +00:00
Added peek() method to Event interface
This commit is contained in:
parent
53567724f1
commit
82f64aca61
@ -35,12 +35,19 @@ namespace sta
|
||||
*/
|
||||
virtual uint32_t get() = 0;
|
||||
/**
|
||||
* @brief Wait until event flag is set. Timeout default to forever.
|
||||
* @brief Wait until event flags are set and clears them afterwards. Timeout default to forever.
|
||||
*
|
||||
* @param flags flag nr. to wait for.
|
||||
* @param flags flags to wait for.
|
||||
* @param timeout timeout in ms., default to forever.
|
||||
*/
|
||||
virtual uint32_t wait(uint32_t flags, uint32_t timeout = osWaitForever) = 0;
|
||||
/**
|
||||
* @brief Wait until event flags are set without clearing them afterwards. Timeout default to forever.
|
||||
*
|
||||
* @param flags flags to wait for.
|
||||
* @param timeout timeout in ms., default to forever.
|
||||
*/
|
||||
virtual uint32_t peek(uint32_t flags, uint32_t timeout = osWaitForever) = 0;
|
||||
};
|
||||
} // namespace sta
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user