nxp-pac

Crates

git

Versions

lpc55s69_cm33_core1

Flavors

Cmd

Struct Cmd 

Source
#[repr(transparent)]
pub struct Cmd(pub u32);
Expand description

Command register

Tuple Fields§

§0: u32

Implementations§

Source§

impl Cmd

Source

pub const fn cmd_index(&self) -> u8

Command index.

Source

pub const fn set_cmd_index(&mut self, val: u8)

Command index.

Source

pub const fn response_expect(&self) -> bool

Response expect.

Source

pub const fn set_response_expect(&mut self, val: bool)

Response expect.

Source

pub const fn response_length(&self) -> bool

Response length.

Source

pub const fn set_response_length(&mut self, val: bool)

Response length.

Source

pub const fn check_response_crc(&self) -> bool

Check response CRC.

Source

pub const fn set_check_response_crc(&mut self, val: bool)

Check response CRC.

Source

pub const fn data_expected(&self) -> bool

Data expected.

Source

pub const fn set_data_expected(&mut self, val: bool)

Data expected.

Source

pub const fn read_write(&self) -> bool

read/write.

Source

pub const fn set_read_write(&mut self, val: bool)

read/write.

Source

pub const fn transfer_mode(&self) -> bool

Transfer mode.

Source

pub const fn set_transfer_mode(&mut self, val: bool)

Transfer mode.

Source

pub const fn send_auto_stop(&self) -> bool

Send auto stop.

Source

pub const fn set_send_auto_stop(&mut self, val: bool)

Send auto stop.

Source

pub const fn wait_prvdata_complete(&self) -> bool

Wait prvdata complete.

Source

pub const fn set_wait_prvdata_complete(&mut self, val: bool)

Wait prvdata complete.

Source

pub const fn stop_abort_cmd(&self) -> bool

Stop abort command.

Source

pub const fn set_stop_abort_cmd(&mut self, val: bool)

Stop abort command.

Source

pub const fn send_initialization(&self) -> bool

Send initialization.

Source

pub const fn set_send_initialization(&mut self, val: bool)

Send initialization.

Source

pub const fn card_number(&self) -> CardNumber

Specifies the card number of SDCARD for which the current Command is being executed

Source

pub const fn set_card_number(&mut self, val: CardNumber)

Specifies the card number of SDCARD for which the current Command is being executed

Source

pub const fn update_clock_registers_only(&self) -> bool

Update clock registers only.

Source

pub const fn set_update_clock_registers_only(&mut self, val: bool)

Update clock registers only.

Source

pub const fn read_ceata_device(&self) -> bool

Read ceata device.

Source

pub const fn set_read_ceata_device(&mut self, val: bool)

Read ceata device.

Source

pub const fn ccs_expected(&self) -> bool

CCS expected.

Source

pub const fn set_ccs_expected(&mut self, val: bool)

CCS expected.

Source

pub const fn enable_boot(&self) -> bool

Enable Boot - this bit should be set only for mandatory boot mode.

Source

pub const fn set_enable_boot(&mut self, val: bool)

Enable Boot - this bit should be set only for mandatory boot mode.

Source

pub const fn expect_boot_ack(&self) -> bool

Expect Boot Acknowledge.

Source

pub const fn set_expect_boot_ack(&mut self, val: bool)

Expect Boot Acknowledge.

Source

pub const fn disable_boot(&self) -> bool

Disable Boot.

Source

pub const fn set_disable_boot(&mut self, val: bool)

Disable Boot.

Source

pub const fn boot_mode(&self) -> bool

Boot Mode.

Source

pub const fn set_boot_mode(&mut self, val: bool)

Boot Mode.

Source

pub const fn volt_switch(&self) -> bool

Voltage switch bit.

Source

pub const fn set_volt_switch(&mut self, val: bool)

Voltage switch bit.

Source

pub const fn use_hold_reg(&self) -> bool

Use Hold Register.

Source

pub const fn set_use_hold_reg(&mut self, val: bool)

Use Hold Register.

Source

pub const fn start_cmd(&self) -> bool

Start command.

Source

pub const fn set_start_cmd(&mut self, val: bool)

Start command.

Trait Implementations§

Source§

impl Clone for Cmd

Source§

fn clone(&self) -> Cmd

Returns a duplicate 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 Cmd

Source§

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

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

impl Default for Cmd

Source§

fn default() -> Cmd

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Cmd

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Cmd

Source§

impl Eq for Cmd

Source§

impl StructuralPartialEq for Cmd

Auto Trait Implementations§

§

impl Freeze for Cmd

§

impl RefUnwindSafe for Cmd

§

impl Send for Cmd

§

impl Sync for Cmd

§

impl Unpin for Cmd

§

impl UnwindSafe for Cmd

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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>,

Source§

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>,

Source§

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.