Struct esp32c2_hal::pac::spi1::flash_sus_cmd::W
pub struct W(_);
Expand description
Register FLASH_SUS_CMD
writer
Implementations
impl W
impl W
pub fn flash_per_command(
&mut self
) -> FieldWriterRaw<'_, u32, FLASH_SUS_CMD_SPEC, u8, u8, Unsafe, 8, 0>
pub fn flash_per_command(
&mut self
) -> FieldWriterRaw<'_, u32, FLASH_SUS_CMD_SPEC, u8, u8, Unsafe, 8, 0>
Bits 0:7 - Program/Erase resume command.
pub fn flash_pes_command(
&mut self
) -> FieldWriterRaw<'_, u32, FLASH_SUS_CMD_SPEC, u8, u8, Unsafe, 8, 8>
pub fn flash_pes_command(
&mut self
) -> FieldWriterRaw<'_, u32, FLASH_SUS_CMD_SPEC, u8, u8, Unsafe, 8, 8>
Bits 8:15 - Program/Erase suspend command.
pub fn wait_pesr_command(
&mut self
) -> FieldWriterRaw<'_, u32, FLASH_SUS_CMD_SPEC, u16, u16, Unsafe, 16, 16>
pub fn wait_pesr_command(
&mut self
) -> FieldWriterRaw<'_, u32, FLASH_SUS_CMD_SPEC, u16, u16, Unsafe, 16, 16>
Bits 16:31 - Flash SUS/SUS1/SUS2 status bit read command. The command should be sent when SUS/SUS1/SUS2 bit should be checked to insure the suspend or resume status of flash.
Methods from Deref<Target = W<FLASH_SUS_CMD_SPEC>>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.
Trait Implementations
impl From<W<FLASH_SUS_CMD_SPEC>> for W
impl From<W<FLASH_SUS_CMD_SPEC>> for W
fn from(writer: W<FLASH_SUS_CMD_SPEC>) -> W
fn from(writer: W<FLASH_SUS_CMD_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
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