[−][src]Struct stm32f0xx_hal::tsc::Tsc
Implementations
impl Tsc
[src]
pub fn tsc(tsc: TSC, rcc: &mut Rcc, cfg: Option<Config>) -> Self
[src]
Initialise the touch controller peripheral
pub fn setup_sample_group<PIN>(&mut self, _: &mut PIN) where
PIN: TscPin<TSC, GROUP = u8, OFFSET = u8>,
[src]
PIN: TscPin<TSC, GROUP = u8, OFFSET = u8>,
Set up sample group
pub fn enable_channel<PIN>(&self, _channel: &mut PIN) where
PIN: TscPin<TSC, GROUP = u8, OFFSET = u8>,
[src]
PIN: TscPin<TSC, GROUP = u8, OFFSET = u8>,
Add a GPIO for use as a channel
pub fn disable_channel<PIN>(&self, _channel: &mut PIN) where
PIN: TscPin<TSC, GROUP = u8, OFFSET = u8>,
[src]
PIN: TscPin<TSC, GROUP = u8, OFFSET = u8>,
Remove a GPIO from use as a channel
pub fn start(&self)
[src]
Starts a charge acquisition
pub fn check_event(&self) -> Option<Event>
[src]
Check for events on the TSC
pub fn clear(&self, event: Event)
[src]
Clear interrupt & flags
pub fn acquire(&self) -> Result<(), Error>
[src]
Blocks waiting for a acquisition to complete or for a Max Count Error
pub fn read<PIN>(&self, _input: &mut PIN) -> Result<u16, Error> where
PIN: TscPin<TSC, GROUP = u8, OFFSET = u8>,
[src]
PIN: TscPin<TSC, GROUP = u8, OFFSET = u8>,
Reads the group count register
pub fn read_unchecked(&self, group: u8) -> u16
[src]
Reads the tsc group count register
pub fn listen(&mut self, event: Event)
[src]
Enables an interrupt event
pub fn unlisten(&self, event: Event)
[src]
Disables an interrupt event
pub fn free(self) -> TSC
[src]
Releases the TSC peripheral
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,