libkovan  1
The kovan standard library
Sensors

Files

file  analog.hpp
 Classes for working with analog sensors.
 
file  digital.h
 Functions for working with digital sensors.
 
file  digital.hpp
 Classes for working with digital sensors.
 

Namespaces

 SensorLogic
 

Classes

class  SensorLogic::Base
 
class  SensorLogic::And
 
class  SensorLogic::Or
 
class  SensorLogic::Xor
 
class  SensorLogic::Not
 
class  Analog
 Implements the sensor type "analog". More...
 
class  Analog8
 A derivative of the Analog class that returns 8 bit values rather than 10 bit ones. More...
 
class  Digital
 Facilitates access to a digital sensor. More...
 
class  Sensor< T >
 The base class for all sensors of any type. More...
 

Functions

VF EXPORT_SYM int analog (int port)
 
VF EXPORT_SYM int analog10 (int port)
 
VF EXPORT_SYM int analog_et (int port)
 
VF EXPORT_SYM int analog8 (int port)
 

Detailed Description

Function Documentation

VF EXPORT_SYM int analog ( int  port)

Gets the 10-bit analog value of a port.

Parameters
[in]portA value between 0 and 7 specifying the sensor to read from.
Returns
The latest 10-bit value of the port (a value in the range 0 to 1023).
See also
analog10
VF EXPORT_SYM int analog10 ( int  port)

Gets the 10-bit analog value of a port.

Parameters
[in]portA value between 0 and 7 specifying the sensor to read from.
Returns
The latest 10-bit value of the port (a value in the range 0 to 1023).
See also
analog
VF EXPORT_SYM int analog8 ( int  port)

Gets the 8-bit analog value of a port.

Parameters
[in]portA value between 0 and 7 specifying the sensor to read from.
Returns
The latest 8-bit value of the port (a value in the range 0 to 255).
See also
analog10
VF EXPORT_SYM int analog_et ( int  port)

Gets the 10-bit analog value of an ET sensor on the given port.

Parameters
[in]portA value between 0 and 7 specifying the ET sensor to read from.
Returns
The latest 10-bit value of the port (a value in the range 0 to 1023).
See also
analog