Struct esp32_hal::pac::sens::sar_tsens_ctrl::W
pub struct W(_);
Expand description
Register SAR_TSENS_CTRL
writer
Implementations§
§impl W
impl W
pub fn tsens_xpd_wait(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, u16, u16, Unsafe, 12, 0>
pub fn tsens_xpd_wait(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, u16, u16, Unsafe, 12, 0>
Bits 0:11
pub fn tsens_xpd_force(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, bool, BitM, 12>
pub fn tsens_xpd_force(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, bool, BitM, 12>
Bit 12
pub fn tsens_clk_inv(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, bool, BitM, 13>
pub fn tsens_clk_inv(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, bool, BitM, 13>
Bit 13
pub fn tsens_clk_gated(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, bool, BitM, 14>
pub fn tsens_clk_gated(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, bool, BitM, 14>
Bit 14
pub fn tsens_in_inv(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, bool, BitM, 15>
pub fn tsens_in_inv(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, bool, BitM, 15>
Bit 15 - invert temperature sensor data
pub fn tsens_clk_div(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, u8, u8, Unsafe, 8, 16>
pub fn tsens_clk_div(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, u8, u8, Unsafe, 8, 16>
Bits 16:23 - temperature sensor clock divider
pub fn tsens_power_up(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, bool, BitM, 24>
pub fn tsens_power_up(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, bool, BitM, 24>
Bit 24 - temperature sensor power up
pub fn tsens_power_up_force(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, bool, BitM, 25>
pub fn tsens_power_up_force(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, bool, BitM, 25>
Bit 25 - 1: dump out & power up controlled by SW 0: by FSM
pub fn tsens_dump_out(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, bool, BitM, 26>
pub fn tsens_dump_out(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TSENS_CTRL_SPEC, bool, BitM, 26>
Bit 26 - temperature sensor dump out only active when reg_tsens_power_up_force = 1
Methods from Deref<Target = W<SAR_TSENS_CTRL_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<SAR_TSENS_CTRL_SPEC>> for W
impl From<W<SAR_TSENS_CTRL_SPEC>> for W
§fn from(writer: W<SAR_TSENS_CTRL_SPEC>) -> W
fn from(writer: W<SAR_TSENS_CTRL_SPEC>) -> W
Converts to this type from the input type.