CTL_STATUS_t sensecore_set_dio_signal(SENSECORE_DRIVER_t *self,
                                      int site,
                                      int state);

sensecore_set_dio_signal sets the DIO signal for the SenseCore self on site site to state. If state is zero, the DIO signal is pulled low and if state is non-zero the DIO signal is pulled high.

Return Value

sensecore_set_dio_signal returns a standard status code.

Thread Safety

sensecore_set_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.