pub struct ChannelReading {
pub sensor_value: u16,
pub tsc_pin: IOPin,
}
Expand description
Represents the result of a Touch Sensing Controller (TSC) acquisition for a specific pin.
This struct contains a reference to the tsc::IOPin
from which a value was read,
along with the actual sensor reading for that pin. It provides a convenient way
to associate TSC readings with their corresponding pins after an acquisition.
Fields§
§sensor_value: u16
The sensor reading value obtained from the TSC acquisition. Lower values typically indicate a detected touch, while higher values indicate no touch.
tsc_pin: IOPin
The tsc::IOPin
associated with this reading.
This allows for easy identification of which pin the reading corresponds to.
Trait Implementations§
Source§impl Clone for ChannelReading
impl Clone for ChannelReading
Source§fn clone(&self) -> ChannelReading
fn clone(&self) -> ChannelReading
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChannelReading
impl Debug for ChannelReading
Source§impl Format for ChannelReading
impl Format for ChannelReading
impl Copy for ChannelReading
Auto Trait Implementations§
impl Freeze for ChannelReading
impl RefUnwindSafe for ChannelReading
impl Send for ChannelReading
impl Sync for ChannelReading
impl Unpin for ChannelReading
impl UnwindSafe for ChannelReading
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more