1.1.1.6 mtch2120_getSensorState
MTCH2120_I2C_Status mtch2120_getSensorState(uint8_t channel, uint8_t *state);
Description:
This function reads sensor state from the MTCH2120 device memory via the I2C peripheral, according to the specified channel.
Parameters:
Field | Type | Description |
---|---|---|
channel | uint8_t | Channel Number to read the sensor state |
state | uint8_t* | Buffer to store the read value |