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:

FieldTypeDescription
channeluint8_tChannel Number to read the sensor state
stateuint8_t*Buffer to store the read value

Return:

MTCH2120_I2C_Status