#include <arduino_device.h>
Public Member Functions | |
ArduinoDevice (int poll_msec) | |
ArduinoDevice (int poll_msec) | |
bool | check (int interval) |
bool | check (int interval) |
virtual void | poll ()=0 |
virtual void | poll ()=0 |
Private Attributes | |
int | next_poll_ |
number of msecs until next poll() | |
int | poll_msec_ |
number of msecs between poll() calls |
Base class for handling Arduino-attached devices.
Definition at line 45 of file multidevice/arduino_device.h.
ArduinoDevice::ArduinoDevice | ( | int | poll_msec | ) | [inline] |
Constructor.
poll_msec | desired interval between poll calls (milliseconds). |
Definition at line 53 of file multidevice/arduino_device.h.
ArduinoDevice::ArduinoDevice | ( | int | poll_msec | ) | [inline] |
Constructor.
poll_msec | desired interval between poll calls (milliseconds). |
Definition at line 53 of file volts_only/arduino_device.h.
bool ArduinoDevice::check | ( | int | interval | ) | [inline] |
Check if time to poll this device.
interval | Milliseconds since last check() call. |
true
, if time to call poll() now; false
, otherwise. Definition at line 68 of file multidevice/arduino_device.h.
bool ArduinoDevice::check | ( | int | interval | ) | [inline] |
Check if time to poll this device.
interval | Milliseconds since last check() call. |
true
, if time to call poll() now; false
, otherwise. Definition at line 68 of file volts_only/arduino_device.h.
virtual void ArduinoDevice::poll | ( | ) | [pure virtual] |
virtual void ArduinoDevice::poll | ( | ) | [pure virtual] |
int ArduinoDevice::next_poll_ [private] |
number of msecs until next poll()
Definition at line 80 of file multidevice/arduino_device.h.
int ArduinoDevice::poll_msec_ [private] |
number of msecs between poll() calls
Definition at line 79 of file multidevice/arduino_device.h.