pub enum FifoThreshold {
Show 16 variants TX_61_RX_4 = 0, TX_57_RX_8 = 1, TX_53_RX_12 = 2, TX_49_RX_16 = 3, TX_45_RX_20 = 4, TX_41_RX_24 = 5, TX_37_RX_28 = 6, TX_33_RX_32 = 7, TX_29_RX_36 = 8, TX_25_RX_40 = 9, TX_21_RX_44 = 10, TX_17_RX_48 = 11, TX_13_RX_52 = 12, TX_9_RX_56 = 13, TX_5_RX_60 = 14, TX_1_RX_64 = 15,
}
Expand description

TX FIFO and RX FIFO threshold configuration.

Variants§

§

TX_61_RX_4 = 0

61 bytes in TX, 4 bytes in RX.

§

TX_57_RX_8 = 1

57 bytes in TX, 8 bytes in RX.

§

TX_53_RX_12 = 2

53 bytes in TX, 12 bytes in RX.

§

TX_49_RX_16 = 3

49 bytes in TX, 16 bytes in RX.

§

TX_45_RX_20 = 4

45 bytes in TX, 20 bytes in RX.

§

TX_41_RX_24 = 5

41 bytes in TX, 24 bytes in RX.

§

TX_37_RX_28 = 6

37 bytes in TX, 28 bytes in RX.

§

TX_33_RX_32 = 7

33 bytes in TX, 32 bytes in RX.

§

TX_29_RX_36 = 8

29 bytes in TX, 36 bytes in RX.

§

TX_25_RX_40 = 9

25 bytes in TX, 40 bytes in RX.

§

TX_21_RX_44 = 10

21 bytes in TX, 44 bytes in RX.

§

TX_17_RX_48 = 11

17 bytes in TX, 48 bytes in RX.

§

TX_13_RX_52 = 12

13 bytes in TX, 52 bytes in RX.

§

TX_9_RX_56 = 13

9 bytes in TX, 56 bytes in RX.

§

TX_5_RX_60 = 14

5 bytes in TX, 60 bytes in RX.

§

TX_1_RX_64 = 15

1 byte in TX, 64 bytes in RX.

Implementations§

source§

impl FifoThreshold

source

pub fn value(&self) -> u8

Trait Implementations§

source§

impl Clone for FifoThreshold

source§

fn clone(&self) -> FifoThreshold

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 Debug for FifoThreshold

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for FifoThreshold

source§

fn eq(&self, other: &FifoThreshold) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for FifoThreshold

source§

impl Eq for FifoThreshold

source§

impl StructuralPartialEq for FifoThreshold

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.