I2CDriverBase#
- class I2CDriverBase[source]#
Bases:
ABCVendor I2C-adapter driver contract. Concrete drivers own their transport and lifecycle.
addressarguments are 7-bit device addresses (the adapter SDK handles the R/W bit). Drivers translate this contract to the vendor SDK’s master primitives.
Methods
Close the adapter handle. |
|
Open the adapter (typically a USB host adapter) and prepare it for transactions. |
|
Read |
|
Set the master clock rate in kHz. |
|
Enable or disable target-power output on the adapter (where supported). |
|
Enable or disable the adapter's internal bus pull-ups (typical: ~10 kΩ to VCC). |
|
Write |
|
Write |