Synopsis
CTL_STATUS_t sensecore_get_rx_signal(SENSECORE_DRIVER_t *self,
                                     int site);
Description

sensecore_get_rx_signal reads the Rx signal for the SenseCore self on site site. The port pin associated with the Rx signal is set to input mode before reading.

Return Value

sensecore_get_rx_signal returns an extended status code: 0 if the Rx signal is low, 1 if the Rx signal is high, and a negative value indicating an error.

Thread Safety

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