Classes | Public Member Functions | Private Attributes
RTT::extras::IRQActivity Class Reference

#include <IRQActivity.hpp>

Inheritance diagram for RTT::extras::IRQActivity:
Inheritance graph
[legend]

List of all members.

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::RunnableInterfacem_runner

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
priorityThe priority of the underlying thread.
_rThe 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.

Parameters:
schedulerThe scheduler in which the activitie's thread must run. Use ORO_SCHED_OTHER or ORO_SCHED_RT.
priorityThe priority of the underlying thread.
_rThe optional runner, if none, this->loop() is called.

Definition at line 55 of file IRQActivity.cpp.

Definition at line 60 of file IRQActivity.cpp.


Member Function Documentation

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.

See also:
isPeriodic()
Returns:
true if the activity is started, false otherwise

Reimplemented from RTT::Activity.

Definition at line 69 of file IRQActivity.cpp.


Member Data Documentation

Definition at line 76 of file IRQActivity.hpp.

Definition at line 75 of file IRQActivity.hpp.

Definition at line 77 of file IRQActivity.hpp.


The documentation for this class was generated from the following files:


rtt
Author(s): RTT Developers
autogenerated on Thu Jan 2 2014 11:35:43