Public Member Functions | Private Attributes
ArduinoDevice Class Reference

#include <arduino_device.h>

Inheritance diagram for ArduinoDevice:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Base class for handling Arduino-attached devices.

Definition at line 45 of file multidevice/arduino_device.h.


Constructor & Destructor Documentation

ArduinoDevice::ArduinoDevice ( int  poll_msec) [inline]

Constructor.

Parameters:
poll_msecdesired interval between poll calls (milliseconds).

Definition at line 53 of file multidevice/arduino_device.h.

ArduinoDevice::ArduinoDevice ( int  poll_msec) [inline]

Constructor.

Parameters:
poll_msecdesired interval between poll calls (milliseconds).

Definition at line 53 of file volts_only/arduino_device.h.


Member Function Documentation

bool ArduinoDevice::check ( int  interval) [inline]

Check if time to poll this device.

Parameters:
intervalMilliseconds since last check() call.
Returns:
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.

Parameters:
intervalMilliseconds since last check() call.
Returns:
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]

Periodic device handler.

May send a complete serial message line, if data available.

Implemented in Sonar, Imu, and Voltmeter.

virtual void ArduinoDevice::poll ( ) [pure virtual]

Periodic device handler.

May send a complete serial message line, if data available.

Implemented in Sonar, Imu, and Voltmeter.


Member Data Documentation

number of msecs until next poll()

Definition at line 80 of file multidevice/arduino_device.h.

number of msecs between poll() calls

Definition at line 79 of file multidevice/arduino_device.h.


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


segbot_firmware
Author(s): Jose Bigio, Jack O'Quin, Tim Eckel (NewPing library)
autogenerated on Thu Jun 6 2019 21:37:01