aboutsummaryrefslogtreecommitdiff
path: root/main/pbdrv.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/pbdrv.h')
-rw-r--r--main/pbdrv.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/pbdrv.h b/main/pbdrv.h
index 0b4ca21..a751000 100644
--- a/main/pbdrv.h
+++ b/main/pbdrv.h
@@ -35,6 +35,17 @@ void pb_setup();
*/
void pb_i2c_send(i2c_addr_t addr, const uint8_t * buf, size_t sz);
+/**
+ * \brief Scan the bus for I2C slaves, and send handshake messages to ACK-ing
+ * slaves.
+ *
+ * As a result of the RP2040 hardware limitations detailed at the top of this
+ * file, this function is also implemented in this file, even through it does
+ * not belong to the puzzle bus driver. In order to not miss any handshake
+ * responses, the bus should remain busy during the entire scan.
+ */
+void bus_scan();
+
#ifdef __cplusplus
}
#endif