pub struct W(_);
Expand description
Register TOUCH_CFG
writer
Implementations§
§impl W
impl W
pub fn touch_dcur(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_CFG_SPEC, u8, u8, Unsafe, 2, 23>
pub fn touch_dcur(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_CFG_SPEC, u8, u8, Unsafe, 2, 23>
Bits 23:24 - touch sensor bias current. Should have option to tie with BIAS_SLEEP(When BIAS_SLEEP this setting is available
pub fn touch_drange(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_CFG_SPEC, u8, u8, Unsafe, 2, 25>
pub fn touch_drange(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_CFG_SPEC, u8, u8, Unsafe, 2, 25>
Bits 25:26 - touch sensor saw wave voltage range.
pub fn touch_drefl(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_CFG_SPEC, u8, u8, Unsafe, 2, 27>
pub fn touch_drefl(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_CFG_SPEC, u8, u8, Unsafe, 2, 27>
Bits 27:28 - touch sensor saw wave bottom voltage.
pub fn touch_drefh(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_CFG_SPEC, u8, u8, Unsafe, 2, 29>
pub fn touch_drefh(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_CFG_SPEC, u8, u8, Unsafe, 2, 29>
Bits 29:30 - touch sensor saw wave top voltage.
pub fn touch_xpd_bias(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_CFG_SPEC, bool, BitM, 31>
pub fn touch_xpd_bias(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_CFG_SPEC, bool, BitM, 31>
Bit 31 - touch sensor bias power on.
Methods from Deref<Target = W<TOUCH_CFG_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_CFG_SPEC>> for W
impl From<W<TOUCH_CFG_SPEC>> for W
§fn from(writer: W<TOUCH_CFG_SPEC>) -> W
fn from(writer: W<TOUCH_CFG_SPEC>) -> W
Converts to this type from the input type.