pub struct PinGroup<'d, T, Group> { /* private fields */ }
Expand description
Represents a group of TSC (Touch Sensing Controller) pins.
In the TSC peripheral, pins are organized into groups of four IOs. Each group must have exactly one sampling capacitor pin and can have multiple channel pins or a single shield pin. This structure encapsulates these pin configurations for a single TSC group.
§Pin Roles
- Sampling Capacitor: One required per group, used for charge transfer.
- Channel: Sensing pins connected to electrodes for touch detection.
- Shield: Optional, used for active shielding to improve sensitivity.
§Constraints
- Each group must have exactly one sampling capacitor pin.
- A group can have either channel pins or a shield pin, but not both.
- No more than one shield pin is allowed across all groups.
Implementations§
Source§impl<'d, T: Instance, G> PinGroup<'d, T, G>
impl<'d, T: Instance, G> PinGroup<'d, T, G>
Sourcepub fn pin1(&self) -> Option<&Pin<'d, T, G>>
pub fn pin1(&self) -> Option<&Pin<'d, T, G>>
Returns a reference to the first pin in the group, if configured.
Sourcepub fn pin2(&self) -> Option<&Pin<'d, T, G>>
pub fn pin2(&self) -> Option<&Pin<'d, T, G>>
Returns a reference to the second pin in the group, if configured.
Trait Implementations§
Auto Trait Implementations§
impl<'d, T, Group> Freeze for PinGroup<'d, T, Group>
impl<'d, T, Group> RefUnwindSafe for PinGroup<'d, T, Group>where
T: RefUnwindSafe,
Group: RefUnwindSafe,
impl<'d, T, Group> Send for PinGroup<'d, T, Group>
impl<'d, T, Group> Sync for PinGroup<'d, T, Group>
impl<'d, T, Group> Unpin for PinGroup<'d, T, Group>
impl<'d, T, Group> !UnwindSafe for PinGroup<'d, T, Group>
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