Propeller Activity Board A/D Voltage Library  v0.8
Take DC voltage measurements with A/D 0, 1, 2, and/or 3.
Functions
adcDCVpropab.c File Reference

Measure ADC124S021 voltage as a floating point value.

CONSTRUCTION ZONE: This library is preliminary, major revisions pending, not for release. More...

#include "adcDCpropab.h"

Functions

float adc_volts (int channel)
 Get a voltmeter style floating point voltage measurement from one of the A/D converter's input channels.

Detailed Description

Measure ADC124S021 voltage as a floating point value.

CONSTRUCTION ZONE: This library is preliminary, major revisions pending, not for release.

Author
Andy Lindsay

Function Documentation

float adc_volts ( int  channel)

Get a voltmeter style floating point voltage measurement from one of the A/D converter's input channels.

Parameters
channelThe A/D converter's input channel, either channel 0, 1, 2, or 3. Marked A/D 0, 1, 2 or 3 on the Propeller Activity Board.
Returns
floating point value that represents the voltage measurement.