![]() |
HAL
|
#include <pin_event.h>
Public Member Functions | |
PinChangedEvent (Module *m, PinEvent pev, u32 id) | |
Module * | get_module () const |
u32 | associated_data () |
void | send () |
Friends | |
class | PinChangedEventScope |
bool | pin_event_order (const PinChangedEvent &a, const PinChangedEvent &b) |
Wrapper class for core pin_changed events.
Events can be send immediately or stacked and send at according to their priority.
Definition at line 69 of file pin_event.h.
PinChangedEvent class for single event
m | - The module comprising pins and pin groups |
pev | - The pin event enum |
id | - pin or pin group ID |
Definition at line 29 of file pin_event.cpp.
u32 hal::PinChangedEvent::associated_data | ( | ) |
Return bitwise binary encoded PinEvent and ID 4LSB = The pin event enum as 4 bit int 28HSB = The ID as 28 bit int
Definition at line 52 of file pin_event.cpp.
Referenced by send().
Module * hal::PinChangedEvent::get_module | ( | ) | const |
Returns the module for which pins or pin groups have been changed
Definition at line 47 of file pin_event.cpp.
void hal::PinChangedEvent::send | ( | ) |
Attempts to send event. If this routine or any calling routine wants to collect events the event gets written on stack instead.
Definition at line 33 of file pin_event.cpp.
References associated_data(), hal::Module::get_event_handler(), hal::EventHandler::notify(), and hal::ModuleEvent::pin_changed.
Referenced by hal::Module::assign_pin_to_group(), hal::Module::create_pin(), hal::Module::create_pin_group(), hal::Module::delete_pin_group(), hal::Module::move_pin_group(), hal::Module::move_pin_within_group(), hal::Module::set_pin_group_direction(), hal::Module::set_pin_group_name(), hal::Module::set_pin_group_type(), hal::Module::set_pin_name(), and hal::Module::set_pin_type().
|
friend |
Function used by sort algorithm to organize events according to their priority.
a | - Pin changed event A |
b | - Pin changed event B |
Definition at line 57 of file pin_event.cpp.
|
friend |
Definition at line 72 of file pin_event.h.