libwallaby  v23
The wallaby standard library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
analog.h File Reference

Go to the source code of this file.

Functions

int analog (int port)
 
int analog8 (int port)
 
int analog10 (int port)
 
int analog12 (int port)
 
int analog_et (int port)
 
void set_analog_pullup (int port, int pullup)
 
int get_analog_pullup (int port)
 

Detailed Description

Function Documentation

int analog12 ( int  port)

Gets the 12-bit analog value of a port.

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