GHIElectronics.TinyCLR.Devices.I2c
NuGet package containing 15 types across 2 namespaces (GHIElectronics.TinyCLR.Devices.I2c, GHIElectronics.TinyCLR.Devices.I2c.Provider).
Classes
| Class | Namespace | Summary |
|---|---|---|
| ErrorReceivedEventArgs | GHIElectronics.TinyCLR.Devices.I2c | Arguments for I2cDevice.ErrorReceived. |
| FrameEventArgs | GHIElectronics.TinyCLR.Devices.I2c | Arguments for I2cDevice.FrameReceived. |
| I2cConnectionSettings | GHIElectronics.TinyCLR.Devices.I2c | Per-device I²C connection settings: address, bus speed, and master/slave role. |
| I2cController | GHIElectronics.TinyCLR.Devices.I2c | Represents an I²C bus controller. Open a peer with GetDevice(I2cConnectionSettings) to transact with a specific slave address. The same controller can serve multiple slaves — settings are re-applied per transfer. |
| I2cControllerApiWrapper | GHIElectronics.TinyCLR.Devices.I2c.Provider | Concrete II2cControllerProvider backed by the native TinyCLR I²C HAL. |
| I2cDevice | GHIElectronics.TinyCLR.Devices.I2c | Represents a single slave on the I²C bus. Master-mode devices use the blocking Read(byte[]) / Write(byte[]) / WriteRead(byte[],byte[]) family; slave-mode devices additionally expose FrameReceived and ErrorReceived events. |
Structs
| Struct | Namespace | Summary |
|---|---|---|
| I2cTransferResult | GHIElectronics.TinyCLR.Devices.I2c | Outcome of a partial-transfer call (I2cDevice.ReadPartial(byte[]) and friends). |
Interfaces
| Interface | Namespace | Summary |
|---|---|---|
| II2cControllerProvider | GHIElectronics.TinyCLR.Devices.I2c.Provider | Provider contract for an I²C controller. |
Enums
| Enum | Namespace | Summary |
|---|---|---|
| I2cAddressFormat | GHIElectronics.TinyCLR.Devices.I2c | I²C address width. |
| I2cError | GHIElectronics.TinyCLR.Devices.I2c | Bus errors reported via I2cDevice.ErrorReceived. |
| I2cMode | GHIElectronics.TinyCLR.Devices.I2c | Bus role for an I2cDevice. |
| I2cTransaction | GHIElectronics.TinyCLR.Devices.I2c | Master-initiated transaction kind observed by a slave. |
| I2cTransferStatus | GHIElectronics.TinyCLR.Devices.I2c | Outcome of an I²C transfer. |
Delegates
| Delegate | Namespace | Summary |
|---|---|---|
| ErrorReceivedEventHandler | GHIElectronics.TinyCLR.Devices.I2c | Handler signature for I2cDevice.ErrorReceived. |
| FrameReceivedEventHandler | GHIElectronics.TinyCLR.Devices.I2c | Handler signature for I2cDevice.FrameReceived. |