| aDigital_ReadTmr | Index |
Definition:
| aErr aDigital_ReadTmr( | aStemLib stemRef, const unsigned char module, const unsigned char nDigitalIndex, int* pTimerValue); |
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 perform a timing measurement on one of its digital IO pins. This need not be the router. |
| nDigitalIndex | - | The index of the timer input. |
| pTimerValue | - | Address of integer where the result will be stored. |
Return Value:
Description:
This routine manages the BrainStem packets needed to request a digital pulse or transition timing measurement and receive the reply. The result is a 2-byte value ranging from 0-65535 in units of 1.6usec. The digital IO pin must be configured as a timer input prior to taking a reading.
Related: