[][src]Module e310x_hal::spi

Serial Peripheral Interface

You can use the Spi interface with these SPI instances

QSPI0

  • Interrupt::QSPI0

QSPI1

  • MOSI: Pin 3 IOF0
  • MISO: Pin 4 IOF0
  • SCK: Pin 5 IOF0
  • SS0: Pin 2 IOF0
  • SS1: Pin 8 IOF0 (not connected to package in FE310)
  • SS2: Pin 9 IOF0
  • SS3: Pin 10 IOF0
  • Interrupt::QSPI1

QSPI2

Warning: QSPI2 pins are not connected to package in FE310

  • MOSI: Pin 27 IOF0
  • MISO: Pin 28 IOF0
  • SCK: Pin 29 IOF0
  • SS: Pin 26 IOF0
  • Interrupt::QSPI2

Structs

Mode

SPI mode

Spi

SPI abstraction

Enums

Phase

Clock phase

Polarity

Clock polarity

Constants

MODE_0

Helper for CPOL = 0, CPHA = 0

MODE_1

Helper for CPOL = 0, CPHA = 1

MODE_2

Helper for CPOL = 1, CPHA = 0

MODE_3

Helper for CPOL = 1, CPHA = 1

Traits

Pins

SPI pins - DO NOT IMPLEMENT THIS TRAIT