|
|
|
Events are widley used in _skyward-boardcore_ as a form of communication among software components.
|
|
|
|
Events are widely used in _skyward-boardcore_ as a form of communication among software components.
|
|
|
|
|
|
|
|
The `src/shared/events/Event.h` file defines the **Event** struct which only contains the event ID as a member:
|
|
|
|
```cpp
|
|
|
|
struct Event
|
|
|
|
{
|
|
|
|
uint8_t sig;
|
|
|
|
}
|
|
|
|
typedef uint8_t Event;
|
|
|
|
```
|
|
|
|
Some basic event IDs are also defined in the **EventSignal** enumeration:
|
|
|
|
```cpp
|
| ... | ... | |