pub struct TouchConfig {
pub threshold_mode: Option<ThresholdMode>,
pub measurement_duration: Option<u16>,
pub sleep_cycles: Option<u16>,
}
Available on crate feature
unstable
only.Expand description
Configurations for the touch pad driver
Fields§
§threshold_mode: Option<ThresholdMode>
The ThresholdMode
for the pads. Defaults to
ThresholdMode::LessThan
measurement_duration: Option<u16>
Duration of a single measurement (in cycles of the 8 MHz touch clock).
Defaults to 0x7fff
sleep_cycles: Option<u16>
Sleep cycles for the touch timer in Continuous
-mode. Defaults to
0x100
Trait Implementations§
Source§impl Clone for TouchConfig
impl Clone for TouchConfig
Source§fn clone(&self) -> TouchConfig
fn clone(&self) -> TouchConfig
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TouchConfig
impl Debug for TouchConfig
Source§impl Default for TouchConfig
impl Default for TouchConfig
Source§fn default() -> TouchConfig
fn default() -> TouchConfig
Returns the “default value” for a type. Read more
impl Copy for TouchConfig
Auto Trait Implementations§
impl Freeze for TouchConfig
impl RefUnwindSafe for TouchConfig
impl Send for TouchConfig
impl Sync for TouchConfig
impl Unpin for TouchConfig
impl UnwindSafe for TouchConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)