| aDigital_GetConfig | Index |
Definition:
| aErr aDigital_GetConfig( | aStemLib stemRef, const unsigned char module, const unsigned char nDigitalIndex, int* pConfigValue); |
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 return the configuration data for one of its digital IO pins. This need not be the router. |
| nDigitalIndex | - | The index of the digital IO pin. |
| pConfigValue | - | Address of integer where the result will be stored. |
Return Value:
Description:
This routine manages the BrainStem packets needed to request the configuration byte of a digital IO pin and receive the reply. The result is a byte with bit flags set according to the current IO configuration of the pin.
Related: