Struct esp32c2_hal::pac::ecc::mult_conf::W
pub struct W(_);
Expand description
Register MULT_CONF
writer
Implementations§
§impl W
impl W
pub fn start(&mut self) -> BitWriterRaw<'_, u32, MULT_CONF_SPEC, bool, BitM, 0>
pub fn start(&mut self) -> BitWriterRaw<'_, u32, MULT_CONF_SPEC, bool, BitM, 0>
Bit 0 - Set this bit to reset receiver
pub fn reset(&mut self) -> BitWriterRaw<'_, u32, MULT_CONF_SPEC, bool, BitM, 1>
pub fn reset(&mut self) -> BitWriterRaw<'_, u32, MULT_CONF_SPEC, bool, BitM, 1>
Bit 1 - Set this bit to reset Rx AFIFO
pub fn key_length(
&mut self
) -> BitWriterRaw<'_, u32, MULT_CONF_SPEC, bool, BitM, 2>
pub fn key_length(
&mut self
) -> BitWriterRaw<'_, u32, MULT_CONF_SPEC, bool, BitM, 2>
Bit 2 - Set this bit to start receiving data
pub fn security_mode(
&mut self
) -> BitWriterRaw<'_, u32, MULT_CONF_SPEC, bool, BitM, 3>
pub fn security_mode(
&mut self
) -> BitWriterRaw<'_, u32, MULT_CONF_SPEC, bool, BitM, 3>
Bit 3 - Set this bit to enable slave receiver mode
pub fn clk_en(&mut self) -> BitWriterRaw<'_, u32, MULT_CONF_SPEC, bool, BitM, 4>
pub fn clk_en(&mut self) -> BitWriterRaw<'_, u32, MULT_CONF_SPEC, bool, BitM, 4>
Bit 4 - clk gate
pub fn work_mode(
&mut self
) -> FieldWriterRaw<'_, u32, MULT_CONF_SPEC, u8, u8, Unsafe, 3, 5>
pub fn work_mode(
&mut self
) -> FieldWriterRaw<'_, u32, MULT_CONF_SPEC, u8, u8, Unsafe, 3, 5>
Bits 5:7 - Reserved
Methods from Deref<Target = W<MULT_CONF_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<MULT_CONF_SPEC>> for W
impl From<W<MULT_CONF_SPEC>> for W
§fn from(writer: W<MULT_CONF_SPEC>) -> W
fn from(writer: W<MULT_CONF_SPEC>) -> W
Converts to this type from the input type.