[−][src]Struct stm32l4xx_hal::tsc::Tsc
Methods
impl<SPIN> Tsc<SPIN>
[src]
pub fn tsc(
tsc: TSC,
sample_pin: SPIN,
ahb: &mut AHB1,
cfg: Option<Config>
) -> Self where
SPIN: SamplePin<TSC>,
[src]
tsc: TSC,
sample_pin: SPIN,
ahb: &mut AHB1,
cfg: Option<Config>
) -> Self where
SPIN: SamplePin<TSC>,
pub fn start<PIN>(&self, _input: &mut PIN) where
PIN: ChannelPin<TSC>,
[src]
PIN: ChannelPin<TSC>,
Starts a charge acquisition
pub fn clear(&self, event: Event)
[src]
Clear interrupt & flags
pub fn acquire<PIN>(&self, input: &mut PIN) -> Result<u16, Error> where
PIN: ChannelPin<TSC>,
[src]
PIN: ChannelPin<TSC>,
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: ChannelPin<TSC>,
[src]
PIN: ChannelPin<TSC>,
Reads the tsc group 2 count register
pub fn read_unchecked(&self) -> u16
[src]
Reads the tsc group 2 count register WARNING, just returns the contents of the register! No validation of the correct pin
pub fn in_progress(&mut self) -> bool
[src]
Is the tsc performing an aquisition
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, SPIN)
[src]
Releases the TSC peripheral and associated pins
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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 for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
type Output = T
Should always be Self