pub trait Instance:
Sealed
+ Deref<Target = RegisterBlock>
+ ClockControl
+ ResetControl
+ PeripheralClockSelector {
type Sda;
type Scl;
type SlvChannel: Instance;
type MstChannel: Instance;
const INTERRUPT: Interrupt;
const REGISTERS: *const RegisterBlock;
}Expand description
Implemented for all I2C instances
Required Associated Constants§
Sourceconst REGISTERS: *const RegisterBlock
const REGISTERS: *const RegisterBlock
A pointer to this instance’s register block
Required Associated Types§
Sourcetype SlvChannel: Instance
type SlvChannel: Instance
The DMA channel used with this instance for slave mode
Sourcetype MstChannel: Instance
type MstChannel: Instance
The DMA channel used with this instance for master mode
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.