IoAbstraction
Classes | Enumerations | Functions
AnalogDeviceAbstraction.h File Reference

Contains a series of helper classes for dealing with analog devices, these are compatible across a wide range of devices. More...

Go to the source code of this file.

Classes

class  AnalogDevice
 

Enumerations

enum  AnalogDirection { DIR_IN , DIR_OUT , DIR_PWM }
 

Functions

AnalogDeviceinternalAnalogIo ()
 

Detailed Description

Contains a series of helper classes for dealing with analog devices, these are compatible across a wide range of devices.

Enumeration Type Documentation

◆ AnalogDirection

an enumeration that describes direction, eg input or output for the ADC/POT/DAC. For some devices only one mode will make sense.

Function Documentation

◆ internalAnalogIo()

AnalogDevice* internalAnalogIo ( )

Create an instance of the analog IO abstraction for the current hardware and cache it so further calls return the same one, use this instead of creating one. In new code prefer to use internalAnalogDevice() instead which returns a reference to the correct type directly.

Returns
the analog device as a pointer.