#include <IRQActivity.hpp>
Classes | |
struct | Provider |
Public Member Functions | |
int | getIRQ () const |
IRQActivity (int priority, base::RunnableInterface *_r=0, const std::string &name="IRQActivity") | |
IRQActivity (int scheduler, int priority, base::RunnableInterface *_r=0, const std::string &name="IRQActivity") | |
void | setIRQ (int irq) |
virtual bool | start () |
virtual | ~IRQActivity () |
Private Attributes | |
RT_INTR | m_handle |
int | m_irq |
base::RunnableInterface * | m_runner |
An activity which is triggered by an IRQ edge. This activity is only available on xenomai
The IRQ line can be given by two means:
Definition at line 73 of file IRQActivity.hpp.
IRQActivity::IRQActivity | ( | int | priority, |
base::RunnableInterface * | _r = 0 , |
||
const std::string & | name = "IRQActivity" |
||
) |
Create a IRQActivity with a given priority and base::RunnableInterface instance. The default scheduler for IRQActivity objects is ORO_SCHED_RT.
priority | The priority of the underlying thread. |
_r | The optional runner, if none, this->loop() is called. |
Definition at line 50 of file IRQActivity.cpp.
IRQActivity::IRQActivity | ( | int | scheduler, |
int | priority, | ||
base::RunnableInterface * | _r = 0 , |
||
const std::string & | name = "IRQActivity" |
||
) |
Create a IRQActivity with a given scheduler type, priority and base::RunnableInterface instance.
scheduler | The scheduler in which the activitie's thread must run. Use ORO_SCHED_OTHER or ORO_SCHED_RT. |
priority | The priority of the underlying thread. |
_r | The optional runner, if none, this->loop() is called. |
Definition at line 55 of file IRQActivity.cpp.
IRQActivity::~IRQActivity | ( | ) | [virtual] |
Definition at line 60 of file IRQActivity.cpp.
int IRQActivity::getIRQ | ( | ) | const |
Definition at line 65 of file IRQActivity.cpp.
void IRQActivity::setIRQ | ( | int | irq | ) |
Definition at line 66 of file IRQActivity.cpp.
bool IRQActivity::start | ( | ) | [virtual] |
Start the activity. This will call RunnableInterface::initialize() and upon success, effectively start the activity, by running the RunnableInterface::step() or RunnableInterface::loop() in a thread.
Reimplemented from RTT::Activity.
Definition at line 69 of file IRQActivity.cpp.
RT_INTR RTT::extras::IRQActivity::m_handle [private] |
Definition at line 76 of file IRQActivity.hpp.
int RTT::extras::IRQActivity::m_irq [private] |
Definition at line 75 of file IRQActivity.hpp.
Definition at line 77 of file IRQActivity.hpp.