Enum rppal::spi::SlaveSelect
source · [−]pub enum SlaveSelect {
Show 16 variants
Ss0,
Ss1,
Ss2,
Ss3,
Ss4,
Ss5,
Ss6,
Ss7,
Ss8,
Ss9,
Ss10,
Ss11,
Ss12,
Ss13,
Ss14,
Ss15,
}
Expand description
Slave Select pins.
Slave Select is used to signal which slave device should pay attention to
the SPI bus. Slave Select (SS) is the more commonly used name, but
it’s also known as Chip Select (CS) or Chip Enable (CE). Throughout the Raspberry
Pi’s documentation, config files and BCM2835 datasheet, multiple different names
are used. Any pins referred to as CE0, CE1, and CE2 or CS0, CS1, and CS2 are equivalent
to Ss0
, Ss1
, and Ss2
.
The number of available Slave Select pins for the selected SPI bus depends
on your /boot/config.txt
configuration. More information can be found
here.
Variants
Ss0
Ss1
Ss2
Ss3
Ss4
Ss5
Ss6
Ss7
Ss8
Ss9
Ss10
Ss11
Ss12
Ss13
Ss14
Ss15
Trait Implementations
sourceimpl Clone for SlaveSelect
impl Clone for SlaveSelect
sourcefn clone(&self) -> SlaveSelect
fn clone(&self) -> SlaveSelect
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SlaveSelect
impl Debug for SlaveSelect
sourceimpl Display for SlaveSelect
impl Display for SlaveSelect
sourceimpl PartialEq<SlaveSelect> for SlaveSelect
impl PartialEq<SlaveSelect> for SlaveSelect
sourcefn eq(&self, other: &SlaveSelect) -> bool
fn eq(&self, other: &SlaveSelect) -> bool
impl Copy for SlaveSelect
impl Eq for SlaveSelect
impl StructuralEq for SlaveSelect
impl StructuralPartialEq for SlaveSelect
Auto Trait Implementations
impl RefUnwindSafe for SlaveSelect
impl Send for SlaveSelect
impl Sync for SlaveSelect
impl Unpin for SlaveSelect
impl UnwindSafe for SlaveSelect
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more