Module cs

Source
Expand description

Utility types for modeling chip select pins in a SpiMaster implementation.

Structs§

ChipSelectPolar
A convenience wrapper type around Output GPIO pins that implements IntoChipSelect for both ActiveLow and ActiveHigh.

Enums§

ActiveHigh
Marks a peripheral as requiring or controller as supporting active high chip select pins.
ActiveLow
Marks a peripheral as requiring or controller as supporting active low chip select pins.
Polarity
Represents the Polarity of a chip-select pin (i.e. whether high or low indicates the peripheral is active).

Traits§

ChipSelectActivePolarity
Marker trait indicating whether a peripheral requires active high or low polarity as well as whether a SpiMaster implementation can support either or both polarities.
IntoChipSelect
A type that can be converted to the appropriate type for SpiMaster::ChipSelect for a particular POLARITY.