[−][src]Struct msp430fr2x5x_hal::batch_gpio::PinProxy
Proxy for a GPIO pin used for batch writes.
Configuring the proxy only changes the typestate of the proxy. Registers are only written once all the proxies for the GPIO port are "committed".
Implementations
impl<PORT: PortNum, PIN: PinNum, PULL> PinProxy<PORT, PIN, Input<PULL>>
[src]
pub fn pulldown(self) -> PinProxy<PORT, PIN, Input<Pulldown>>
[src]
Configures pin as pulldown input
pub fn pullup(self) -> PinProxy<PORT, PIN, Input<Pullup>>
[src]
Configures pin as pullup input
pub fn floating(self) -> PinProxy<PORT, PIN, Input<Floating>>
[src]
Configures pin as floating input
pub fn to_output(self) -> PinProxy<PORT, PIN, Output>
[src]
Configures pin as output
impl<PORT: PortNum, PIN: PinNum> PinProxy<PORT, PIN, Output>
[src]
pub fn to_input_floating(self) -> PinProxy<PORT, PIN, Input<Floating>>
[src]
Configures pin as floating input
pub fn to_input_pullup(self) -> PinProxy<PORT, PIN, Input<Pullup>>
[src]
Configures pin as floating pullup
pub fn to_input_pulldown(self) -> PinProxy<PORT, PIN, Input<Pulldown>>
[src]
Configures pin as floating pulldown
Auto Trait Implementations
impl<PORT, PIN, DIR> Send for PinProxy<PORT, PIN, DIR> where
DIR: Send,
PIN: Send,
PORT: Send,
[src]
DIR: Send,
PIN: Send,
PORT: Send,
impl<PORT, PIN, DIR> Sync for PinProxy<PORT, PIN, DIR> where
DIR: Sync,
PIN: Sync,
PORT: Sync,
[src]
DIR: Sync,
PIN: Sync,
PORT: Sync,
impl<PORT, PIN, DIR> Unpin for PinProxy<PORT, PIN, DIR> where
DIR: Unpin,
PIN: Unpin,
PORT: Unpin,
[src]
DIR: Unpin,
PIN: Unpin,
PORT: Unpin,
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,
pub 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, 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.
pub 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>,