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§
Trait Implementations§
source§impl Clone for SlaveSelect
impl Clone for SlaveSelect
source§fn clone(&self) -> SlaveSelect
fn clone(&self) -> SlaveSelect
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SlaveSelect
impl Debug for SlaveSelect
source§impl Display for SlaveSelect
impl Display for SlaveSelect
source§impl PartialEq<SlaveSelect> for SlaveSelect
impl PartialEq<SlaveSelect> for SlaveSelect
source§fn eq(&self, other: &SlaveSelect) -> bool
fn eq(&self, other: &SlaveSelect) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more