device::nic::CAN::RxInterrupt Class Reference
The RxInterrupt enables receive interrupt service base infrastructur for devices that are not able to generate such interrupts. It defines a handler and the functionality for switching on/off of the interrupt. More...
#include <RxInterrupt.h>
Public Member Functions | |
RxInterrupt () | |
The constructor switches interrupts of by default. | |
void | set_rx_Interrupt (famouso::util::Delegate<> f) |
set the delegate that is called if an interrupt occurs | |
void | rx_interrupts (bool value) |
switch interrupts for the device on or off | |
bool | interrupts () |
get the current state of the interrupt switch for the device | |
void | fire_Interrupt () |
fires the interrupt if interrupt is set and allowed |
Detailed Description
The RxInterrupt enables receive interrupt service base infrastructur for devices that are not able to generate such interrupts. It defines a handler and the functionality for switching on/off of the interrupt.
In order to fire interrupts it needs additional functionality like device::nic::CAN::SimulateInterruptViaThreadAdapter
Constructor & Destructor Documentation
device::nic::CAN::RxInterrupt::RxInterrupt | ( | ) | [inline] |
The constructor switches interrupts of by default.
Member Function Documentation
void device::nic::CAN::RxInterrupt::fire_Interrupt | ( | ) | [inline] |
fires the interrupt if interrupt is set and allowed
References interrupts().
bool device::nic::CAN::RxInterrupt::interrupts | ( | ) | [inline] |
get the current state of the interrupt switch for the device
Referenced by fire_Interrupt().
void device::nic::CAN::RxInterrupt::rx_interrupts | ( | bool | value | ) | [inline] |
switch interrupts for the device on or off
void device::nic::CAN::RxInterrupt::set_rx_Interrupt | ( | famouso::util::Delegate<> | f | ) | [inline] |
set the delegate that is called if an interrupt occurs
The documentation for this class was generated from the following file:
- include/devices/nic/can/PAXCAN/RxInterrupt.h