analogin.c File Reference

Functions for reading the analog inputs on the MAKE Application Board. More...

Go to the source code of this file.


Functions

int AnalogIn_SetActive (int index, int state)
 Sets whether the specified channel is active.
int AnalogIn_GetActive (int index)
 Returns the active state of a channel.
int AnalogIn_GetValue (int index)
 Read the value of an analog input.
int AnalogIn_GetValueMulti (int mask, int values[])
 Read the value of several of the analog inputs.
int AnalogIn_GetValueWait (int index)
 Read the value of an analog input without the use of any OS services.
bool AnalogIn_GetAutoSend (int index)
 Read whether a particular channel is enabled to check for and send new values automatically.
void AnalogIn_SetAutoSend (int index, bool onoff)
 Set whether a particular channel is enabled to check for and send new values automatically.

Detailed Description

Functions for reading the analog inputs on the MAKE Application Board.

Definition in file analogin.c.


Function Documentation

bool AnalogIn_GetAutoSend ( int  index  ) 

Read whether a particular channel is enabled to check for and send new values automatically.

Parameters:
index An integer specifying which input (0-7).
Returns:
True if enabled, false if disabled.

Definition at line 465 of file analogin.c.

void AnalogIn_SetAutoSend ( int  index,
bool  onoff 
)

Set whether a particular channel is enabled to check for and send new values automatically.

Parameters:
index An integer specifying which input (0-7).
onoff A boolean specifying whether to turn atuosending on or off.

Definition at line 476 of file analogin.c.