#include <LEDActuator.h>
Inheritance diagram for LEDActuator:
Public Types | |
enum | State { ON, OFF } |
enum | ActuatorType { INJECTOR, IDLE_AIR_CONTROLLER, FUEL_PUMP, INDICATOR, COIL } |
enum | Status { OK, FAILED } |
Public Member Functions | |
virtual Status | setState (int state) |
Sets the current state of the actuator. | |
virtual int | getState () |
Gets the current state of the actuator. | |
LEDActuator (ActuatorType t, char ch) | |
Constructor, requires the ActuatorType is passed during initialization. | |
ActuatorType | getType () |
Returns the type of Actuator. | |
char | getChannel () |
Returns the channel number. | |
Protected Attributes | |
const ActuatorType | type |
A constant to hold the actuator type. | |
const char | channel |
A constant to hold the channel. |
|
|
|
|
|
|
|
Constructor, requires the ActuatorType is passed during initialization.
|
|
Returns the channel number.
|
|
Gets the current state of the actuator.
Implements Actuator. |
|
Returns the type of Actuator.
|
|
Sets the current state of the actuator.
Implements Actuator. |
|
A constant to hold the channel.
|
|
A constant to hold the actuator type.
|