#[repr(transparent)]pub struct Config(pub u32);Expand description
TSI CONFIG Register (TSI_CONFIG) for self-capacitor. Self-capacitor view of offset 0, selected by MODE=0; aliases CONFIG_MUTUAL. Do not set S_SEN and S_NOISE together (59.3.2).
Tuple Fields§
§0: u32Implementations§
Source§impl Config
impl Config
Sourcepub const fn mode(&self) -> ConfigMode
pub const fn mode(&self) -> ConfigMode
MODE. Encodings: 0: Self-cap mode, this address is TSI_SEL_CONFIG; 1: Mutual-cap mode, this address is TSI_MUL_CONFIG
Sourcepub const fn set_mode(&mut self, val: ConfigMode)
pub const fn set_mode(&mut self, val: ConfigMode)
MODE. Encodings: 0: Self-cap mode, this address is TSI_SEL_CONFIG; 1: Mutual-cap mode, this address is TSI_MUL_CONFIG
Sourcepub const fn filter_trim(&self) -> ConfigFilterTrim
pub const fn filter_trim(&self) -> ConfigFilterTrim
FILTER_TRIM. Encodings: 0: filter bypass; 1: 5.3ns; 2: 21.1ns; 3: 25ns
Sourcepub const fn set_filter_trim(&mut self, val: ConfigFilterTrim)
pub const fn set_filter_trim(&mut self, val: ConfigFilterTrim)
FILTER_TRIM. Encodings: 0: filter bypass; 1: 5.3ns; 2: 21.1ns; 3: 25ns
Sourcepub const fn self_bypass_flt(&self) -> bool
pub const fn self_bypass_flt(&self) -> bool
self_bypass_flt. Encodings: 0: LPF is not bypassed (default); 1: LPF is bypassed
Sourcepub const fn set_self_bypass_flt(&mut self, val: bool)
pub const fn set_self_bypass_flt(&mut self, val: bool)
self_bypass_flt. Encodings: 0: LPF is not bypassed (default); 1: LPF is bypassed
Sourcepub const fn xin_scale_down_trim(&self) -> u8
pub const fn xin_scale_down_trim(&self) -> u8
Numeric boost discharge scale code 0..7 means 1/(code+1); 8..15 reserved.
Sourcepub const fn set_xin_scale_down_trim(&mut self, val: u8)
pub const fn set_xin_scale_down_trim(&mut self, val: u8)
Numeric boost discharge scale code 0..7 means 1/(code+1); 8..15 reserved.
Sourcepub const fn xin_scale_down(&self) -> u8
pub const fn xin_scale_down(&self) -> u8
Numeric scale code 0..7 means 1/(code+1); 8..15 reserved.
Sourcepub const fn set_xin_scale_down(&mut self, val: u8)
pub const fn set_xin_scale_down(&mut self, val: u8)
Numeric scale code 0..7 means 1/(code+1); 8..15 reserved.
Sourcepub const fn self_boost_scale(&self) -> u8
pub const fn self_boost_scale(&self) -> u8
self_boost_scale. Encodings: 0: 500 nA (default); 1: 1 uA; 2: 1.5 uA; 3: 2 uA; 4: 2.5 uA; 5: 3 uA; 6: 3.5 uA; 7: 4 uA
Sourcepub const fn set_self_boost_scale(&mut self, val: u8)
pub const fn set_self_boost_scale(&mut self, val: u8)
self_boost_scale. Encodings: 0: 500 nA (default); 1: 1 uA; 2: 1.5 uA; 3: 2 uA; 4: 2.5 uA; 5: 3 uA; 6: 3.5 uA; 7: 4 uA
Sourcepub const fn s_noise(&self) -> bool
pub const fn s_noise(&self) -> bool
S_NOISE. Encodings: 0: Noise cancellation off (default); 1: Noise cancellation on
Sourcepub const fn set_s_noise(&mut self, val: bool)
pub const fn set_s_noise(&mut self, val: bool)
S_NOISE. Encodings: 0: Noise cancellation off (default); 1: Noise cancellation on
Sourcepub const fn s_xch(&self) -> u8
pub const fn s_xch(&self) -> u8
S_XCH. Encodings: 0: 1/16 (default); 1: 1/8; 2: 1/4; 3: 1/2; 4: 1/1; 5: 2/1; 6: 4/1; 7: 8/1
Sourcepub const fn set_s_xch(&mut self, val: u8)
pub const fn set_s_xch(&mut self, val: u8)
S_XCH. Encodings: 0: 1/16 (default); 1: 1/8; 2: 1/4; 3: 1/2; 4: 1/1; 5: 2/1; 6: 4/1; 7: 8/1
Sourcepub const fn s_sen(&self) -> bool
pub const fn s_sen(&self) -> bool
S_SEN. Encodings: 0: Sensitivity boost off (default); 1: Sensitivity boost on
Sourcepub const fn set_s_sen(&mut self, val: bool)
pub const fn set_s_sen(&mut self, val: bool)
S_SEN. Encodings: 0: Sensitivity boost off (default); 1: Sensitivity boost on
Sourcepub const fn self_boost_mode(&self) -> bool
pub const fn self_boost_mode(&self) -> bool
self_boost_mode. Encodings: 0: Cap boost mode (default); 1: Current boost mode
Sourcepub const fn set_self_boost_mode(&mut self, val: bool)
pub const fn set_self_boost_mode(&mut self, val: bool)
self_boost_mode. Encodings: 0: Cap boost mode (default); 1: Current boost mode