Function sh2_getCounts
Defined in File sh2.h
Function Documentation
-
int sh2_getCounts(sh2_SensorId_t sensorId, sh2_Counts_t *pCounts)
Read counters related to a sensor.
- Parameters:
sensorId – Which sensor to operate on.
pCounts – Pointer to Counts structure that will receive data.
- Returns:
SH2_OK (0), on success. Negative value from sh2_err.h on error.