#include <RiCMotor.h>
Public Member Functions | |
virtual void | buildDevice ()=0 |
virtual void | deviceAck (const DeviceAck *ack) |
RiCMotor (byte id, TransportLayer *transportLayer, byte motorAddress, byte eSwitchPin, byte eSwitchType) | |
virtual void | update (const DeviceMessage *deviceMessage)=0 |
virtual void | write ()=0 |
Protected Member Functions | |
byte | getAddress () |
byte | getESwitchPin () |
byte | getESwitchType () |
Private Attributes | |
byte | _eSwitchPin |
byte | _eSwitchType |
byte | _motorAddress |
Definition at line 22 of file RiCMotor.h.
robotican_hardware::RiCMotor::RiCMotor | ( | byte | id, |
TransportLayer * | transportLayer, | ||
byte | motorAddress, | ||
byte | eSwitchPin, | ||
byte | eSwitchType | ||
) |
Definition at line 22 of file RiCMotor.cpp.
virtual void robotican_hardware::RiCMotor::buildDevice | ( | ) | [pure virtual] |
void robotican_hardware::RiCMotor::deviceAck | ( | const DeviceAck * | ack | ) | [virtual] |
Reimplemented from robotican_hardware::Device.
Definition at line 11 of file RiCMotor.cpp.
byte robotican_hardware::RiCMotor::getAddress | ( | ) | [protected] |
Definition at line 91 of file RiCMotor.cpp.
byte robotican_hardware::RiCMotor::getESwitchPin | ( | ) | [protected] |
Definition at line 83 of file RiCMotor.cpp.
byte robotican_hardware::RiCMotor::getESwitchType | ( | ) | [protected] |
Definition at line 87 of file RiCMotor.cpp.
virtual void robotican_hardware::RiCMotor::update | ( | const DeviceMessage * | deviceMessage | ) | [pure virtual] |
Implements robotican_hardware::Device.
Implemented in robotican_hardware::CloseLoopMotorWithPotentiometer, robotican_hardware::CloseLoopMotor, and robotican_hardware::OpenLoopMotor.
virtual void robotican_hardware::RiCMotor::write | ( | ) | [pure virtual] |
byte robotican_hardware::RiCMotor::_eSwitchPin [private] |
Definition at line 25 of file RiCMotor.h.
byte robotican_hardware::RiCMotor::_eSwitchType [private] |
Definition at line 26 of file RiCMotor.h.
byte robotican_hardware::RiCMotor::_motorAddress [private] |
Definition at line 24 of file RiCMotor.h.