CTL_STATUS_t sensecore_get_dio_signal(SENSECORE_DRIVER_t *self, int site);
sensecore_get_dio_signal reads the DIO signal for the SenseCore self on site site. The port pin associated with the DIO signal is set to input mode before reading.
sensecore_get_dio_signal returns an extended status code: 0 if the DIO signal is low, 1 if the DIO signal is high, and a negative value indicating an error.
sensecore_get_dio_signal returns a standard status code.
sensecore_get_dio_signal is thread-safe if the transport member in self is thread-safe. This requires that a mutex is associated with the I2C bus provided when initializing self.