[][src]Struct msp430fr2x5x_hal::batch_gpio::PinProxy

pub struct PinProxy<PORT: PortNum, PIN: PinNum, DIR> { /* fields omitted */ }

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]

impl<PORT, PIN, DIR> Sync for PinProxy<PORT, PIN, DIR> where
    DIR: Sync,
    PIN: Sync,
    PORT: Sync
[src]

impl<PORT, PIN, DIR> Unpin for PinProxy<PORT, PIN, DIR> where
    DIR: Unpin,
    PIN: Unpin,
    PORT: Unpin
[src]

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, 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.