FlexSPIFlashConfigurationBlock

Struct FlexSPIFlashConfigurationBlock 

Source
#[repr(C, packed(1))]
pub struct FlexSPIFlashConfigurationBlock { /* private fields */ }

Implementations§

Source§

impl FlexSPIFlashConfigurationBlock

Source

pub const fn build() -> Self

Source

pub const fn read_sample_clk(self, _read_sample_clk: ReadSampleClk) -> Self

Source

pub const fn cs_hold_time(self, _cs_hold_time: u8) -> Self

Source

pub const fn cs_setup_time(self, _cs_setup_time: u8) -> Self

Source

pub const fn column_address_width( self, _column_address_width: ColumnAddressWidth, ) -> Self

Source

pub const fn device_mode_cfg_enable(self, _device_mode_cfg_enable: u8) -> Self

Source

pub const fn wait_time_cfg_commands(self, _wait_time_cfg_commands: u16) -> Self

Source

pub const fn device_mode_seq(self, _device_mode_seq: DeviceModeSeq) -> Self

Source

pub const fn device_mode_arg(self, _device_mode_arg: [u8; 4]) -> Self

Source

pub const fn config_cmd_enable(self, _config_cmd_enable: u8) -> Self

Source

pub const fn config_mode_type(self, _config_mode_type: [u8; 3]) -> Self

Source

pub const fn config_cmd_seqs(self, _config_cmd_seqs: [u8; 12]) -> Self

Source

pub const fn config_cmd_args(self, _config_cmd_args: [u8; 12]) -> Self

Source

pub const fn controller_misc_option( self, _controller_misc_option: ControllerMiscOption, ) -> Self

Source

pub const fn device_type(self, _device_type: DeviceType) -> Self

Source

pub const fn sflash_pad_type(self, _sflash_pad_type: SFlashPadType) -> Self

Source

pub const fn serial_clk_freq(self, _serial_clk_freq: SerialClkFreq) -> Self

Source

pub const fn lut_custom_seq_enable(self, _lut_custom_seq_enable: u8) -> Self

Source

pub const fn sflash_a1_size(self, _sflash_a1_size: u32) -> Self

Source

pub const fn sflash_a2_size(self, _sflash_a2_size: u32) -> Self

Source

pub const fn sflash_b1_size(self, _sflash_b1_size: u32) -> Self

Source

pub const fn sflash_b2_size(self, _sflash_b2_size: u32) -> Self

Source

pub const fn cs_pad_override(self, _cs_pad_override: u32) -> Self

Source

pub const fn sclk_pad_setting_override( self, _sclk_pad_setting_override: u32, ) -> Self

Source

pub const fn data_pad_setting_override( self, _data_pad_setting_override: u32, ) -> Self

Source

pub const fn dqs_pad_setting_override( self, _dqs_pad_setting_override: u32, ) -> Self

Source

pub const fn timeout_in_ms(self, _timeout_in_ms: u32) -> Self

Source

pub const fn command_interval(self, _command_interval: u32) -> Self

Source

pub const fn data_valid_time(self, _data_valid_time: u32) -> Self

Source

pub const fn busy_offset(self, _busy_offset: u16) -> Self

Source

pub const fn busy_bit_polarity( self, _busy_bit_polarity: BusyBitPolarity, ) -> Self

Source

pub const fn lookup_table(self, _lookup_table: [u32; 64]) -> Self

Source

pub const fn lut_custom_seq(self, _lut_custom_seq: [u8; 48]) -> Self

Source

pub const fn page_size(self, _page_size: u32) -> Self

Source

pub const fn sector_size(self, _sector_size: u32) -> Self

Source

pub const fn ipcmd_serial_clk_freq(self, _ipcmd_serial_clk_freq: u8) -> Self

Source

pub const fn is_uniform_block_size(self, _is_uniform_block_size: u8) -> Self

Source

pub const fn is_data_order_swapped(self, _is_data_order_swapped: u8) -> Self

Source

pub const fn serial_nor_type(self, _serial_nor_type: SerialNORType) -> Self

Source

pub const fn need_exit_no_cmd_mode(self, _need_exit_no_cmd_mode: u8) -> Self

Source

pub const fn half_clk_for_non_read_cmd( self, _half_clk_for_non_read_cmd: u8, ) -> Self

Source

pub const fn need_restore_no_cmd_mode( self, _need_restore_no_cmd_mode: u8, ) -> Self

Source

pub const fn block_size(self, _block_size: u32) -> Self

Source

pub const fn flash_state_ctx(self, _flash_state_ctx: u32) -> Self

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

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.