Trait stm32_i2s_v12x::Instance[][src]

pub unsafe trait Instance {
    const REGISTERS: *mut RegisterBlock;
}

An SPI peripheral instance that can be used for I2C communication

This trait is meant to be implemented for a HAL-specific type that represent ownership of the SPI peripheral (and any pins required by it, although that is entirely up to the HAL).

Safety

It is only safe to implement this trait when:

  • The implementing type has ownership of the peripheral, preventing any other accesses to the register block.
  • REGISTERS is a pointer to that peripheral's register block and can be safely accessed for as long as ownership or a borrow of the implementing type is present.

Associated Constants

const REGISTERS: *mut RegisterBlock[src]

Pointer to the SPI register block

Loading content...

Implementors

Loading content...