Enum stm32_hal2::spi::DataSize

source ·
#[repr(u8)]
pub enum DataSize {
Show 29 variants D4 = 3, D5 = 4, D6 = 5, D7 = 6, D8 = 7, D9 = 8, D10 = 9, D11 = 10, D12 = 11, D13 = 12, D14 = 13, D15 = 14, D16 = 15, D17 = 16, D18 = 17, D19 = 18, D20 = 19, D21 = 20, D22 = 21, D23 = 22, D24 = 23, D25 = 24, D26 = 25, D27 = 26, D28 = 27, D29 = 28, D30 = 29, D31 = 30, D32 = 31,
}
Expand description

Number of bits in at single SPI data frame. Sets CFGR1 register, DSIZE field.

Variants§

§

D4 = 3

§

D5 = 4

§

D6 = 5

§

D7 = 6

§

D8 = 7

§

D9 = 8

§

D10 = 9

§

D11 = 10

§

D12 = 11

§

D13 = 12

§

D14 = 13

§

D15 = 14

§

D16 = 15

§

D17 = 16

§

D18 = 17

§

D19 = 18

§

D20 = 19

§

D21 = 20

§

D22 = 21

§

D23 = 22

§

D24 = 23

§

D25 = 24

§

D26 = 25

§

D27 = 26

§

D28 = 27

§

D29 = 28

§

D30 = 29

§

D31 = 30

§

D32 = 31

Trait Implementations§

source§

impl Clone for DataSize

source§

fn clone(&self) -> DataSize

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Copy for DataSize

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.