pub struct TouchConfig {
pub threshold_mode: Option<ThresholdMode>,
pub measurement_duration: Option<u16>,
pub sleep_cycles: Option<u16>,
}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
Available on crate feature unstable only.
impl Clone for TouchConfig
Available on crate feature
unstable only.Source§fn clone(&self) -> TouchConfig
fn clone(&self) -> TouchConfig
Returns a duplicate 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
Available on crate feature unstable only.
impl Debug for TouchConfig
Available on crate feature
unstable only.Source§impl Default for TouchConfig
Available on crate feature unstable only.
impl Default for TouchConfig
Available on crate feature
unstable only.Source§fn default() -> TouchConfig
fn default() -> TouchConfig
Returns the “default value” for a type. Read more
impl Copy for TouchConfig
Available on crate feature
unstable only.Auto Trait Implementations§
impl Freeze for TouchConfig
impl RefUnwindSafe for TouchConfig
impl Send for TouchConfig
impl Sync for TouchConfig
impl Unpin for TouchConfig
impl UnsafeUnpin 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)