/** * Get value from GearTooth sensor. * Get the current count from the sensor. * * @param slot The slot the digital module is plugged into * @param channel The digital I/O channel the sensor is plugged into */ INT32 GetGearTooth(UINT8 moduleNumber, UINT32 channel) { GearTooth *gt = GTptr(moduleNumber, channel); if (gt) return gt->Get(); return 0; }
/** * Get value from GearTooth sensor. * Get the current count from the sensor. * * @param slot The slot the digital module is plugged into * @param channel The digital I/O channel the sensor is plugged into */ INT32 GetGearTooth(UINT32 slot, UINT32 channel) { GearTooth *gt = GTptr(slot, channel); if (gt) return gt->Get(); return 0; }