Module nrf51_hal::spi[][src]

Expand description

HAL interface to the SPI peripheral.

Modules

transfer

Blocking transfer

write

Blocking write

write_iter

Blocking write (iterator version)

Structs

Mode

SPI mode

Pins

GPIO pins for SPI interface.

Spi

Interface to a SPI instance.

Enums

Error
Frequency

SPI data rate.

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

FullDuplex

Full duplex (master mode)

Instance

Trait implemented by all SPI peripheral instances.