Struct esp32s3_hal::pac::rtc_cntl::touch_scan_ctrl::W
pub struct W(_);
Expand description
Register TOUCH_SCAN_CTRL
writer
Implementations§
§impl W
impl W
pub fn touch_denoise_res(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_SCAN_CTRL_SPEC, u8, u8, Unsafe, 2, 0>
pub fn touch_denoise_res(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_SCAN_CTRL_SPEC, u8, u8, Unsafe, 2, 0>
Bits 0:1 - De-noise resolution: 12/10/8/4 bit
pub fn touch_denoise_en(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_SCAN_CTRL_SPEC, bool, BitM, 2>
pub fn touch_denoise_en(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_SCAN_CTRL_SPEC, bool, BitM, 2>
Bit 2 - touch pad0 will be used to de-noise
pub fn touch_inactive_connection(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_SCAN_CTRL_SPEC, bool, BitM, 8>
pub fn touch_inactive_connection(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_SCAN_CTRL_SPEC, bool, BitM, 8>
Bit 8 - inactive touch pads connect to 1: gnd 0: HighZ
pub fn touch_shield_pad_en(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_SCAN_CTRL_SPEC, bool, BitM, 9>
pub fn touch_shield_pad_en(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_SCAN_CTRL_SPEC, bool, BitM, 9>
Bit 9 - touch pad14 will be used as shield
pub fn touch_scan_pad_map(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_SCAN_CTRL_SPEC, u16, u16, Unsafe, 15, 10>
pub fn touch_scan_pad_map(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_SCAN_CTRL_SPEC, u16, u16, Unsafe, 15, 10>
Bits 10:24 - touch scan mode pad enable map
pub fn touch_bufdrv(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_SCAN_CTRL_SPEC, u8, u8, Unsafe, 3, 25>
pub fn touch_bufdrv(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_SCAN_CTRL_SPEC, u8, u8, Unsafe, 3, 25>
Bits 25:27 - touch7 buffer driver strength
pub fn touch_out_ring(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_SCAN_CTRL_SPEC, u8, u8, Unsafe, 4, 28>
pub fn touch_out_ring(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_SCAN_CTRL_SPEC, u8, u8, Unsafe, 4, 28>
Bits 28:31 - select out ring pad
Methods from Deref<Target = W<TOUCH_SCAN_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<TOUCH_SCAN_CTRL_SPEC>> for W
impl From<W<TOUCH_SCAN_CTRL_SPEC>> for W
§fn from(writer: W<TOUCH_SCAN_CTRL_SPEC>) -> W
fn from(writer: W<TOUCH_SCAN_CTRL_SPEC>) -> W
Converts to this type from the input type.