| aAnalog_ReadInt | Index |
Definition:
| aErr aAnalog_ReadInt( | aStemLib stemRef, const unsigned char module, const unsigned char nAnalogIndex, int* pAnalogValue); |
Parameters:
| stemRef | - | An opaque library reference representing the aStem library which manages the communication with the BrainStem modules. |
| module | - | The IIC address of the module that will read one of its analog inputs. This need not be the router. |
| nAnalogIndex | - | The index of the analog input. |
| pAnalogValue | - | Address of integer where the result will be stored. |
Return Value:
Description:
This routine manages the BrainStem packets needed to request an A2D reading and receive the reply. The result is a 10-bit value ranging from 0 to 1023.
Related: