[][src]Struct stm32f0xx_hal::tsc::Tsc

pub struct Tsc { /* fields omitted */ }

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]

Set up sample group

pub fn enable_channel<PIN>(&self, _channel: &mut PIN) where
    PIN: TscPin<TSC, GROUP = u8, OFFSET = u8>, 
[src]

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]

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]

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

impl Send for Tsc

impl !Sync for Tsc

impl Unpin for Tsc

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.