PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
simple
abvoltsF.c
1
/*
2
* @file abvoltsF.c
3
*
4
* @author Andy Lindsay
5
*
6
* @copyright
7
* Copyright (C) Parallax, Inc. 2013. All Rights MIT Licensed.
8
*
9
* @brief Measure ADC124S021 voltage as a floating point value.
10
* @n @n <b><i>CONSTRUCTION ZONE:</i></b> This library is preliminary, major revisions
11
* pending, not for release.
12
*/
13
14
#include "abvolts.h"
15
16
float
ad_volts(
int
channel)
17
{
18
return
((
float
) ad_in(channel)) * 5.0 / 4096.0;
19
}
20
Generated on Sat Aug 27 2016 00:58:09 for PropWare by
1.8.12