[−][src]Struct msp430fr2x5x_hal::batch_gpio::Batch
Collection of proxies for pins 0 to 7 of a specific port, used to commit configurations for all pins in a single step.
Implementations
impl<P: PortNum> Batch<P, Input<Floating>, Input<Floating>, Input<Floating>, Input<Floating>, Input<Floating>, Input<Floating>, Input<Floating>, Input<Floating>>
[src]
impl<PORT: PortNum, DIR0, DIR1, DIR2, DIR3, DIR4, DIR5, DIR6, DIR7> Batch<PORT, DIR0, DIR1, DIR2, DIR3, DIR4, DIR5, DIR6, DIR7>
[src]
pub fn split(
self,
_pmm: &Pmm
) -> Parts<PORT, DIR0, DIR1, DIR2, DIR3, DIR4, DIR5, DIR6, DIR7>
[src]
self,
_pmm: &Pmm
) -> Parts<PORT, DIR0, DIR1, DIR2, DIR3, DIR4, DIR5, DIR6, DIR7>
Commits all pin configurations to GPIO registers and returns GPIO parts and turns off all interrupt enable bits.
Note that the pin's interrupt flags may become set as a result of this operation.
GPIO input/output operations only work after the LOCKLPM5 bit has been set, which is
ensured when passing &Pmm
into the method, since a Pmm
is created only by setting
LOCKLPM5.
pub fn config_pin0<NEW, F: FnOnce(PinProxy<PORT, Pin0, DIR0>) -> PinProxy<PORT, Pin0, NEW>>(
self,
f: F
) -> Batch<PORT, NEW, DIR1, DIR2, DIR3, DIR4, DIR5, DIR6, DIR7>
[src]
self,
f: F
) -> Batch<PORT, NEW, DIR1, DIR2, DIR3, DIR4, DIR5, DIR6, DIR7>
Edit configuration of pin 0
pub fn config_pin1<NEW, F: FnOnce(PinProxy<PORT, Pin1, DIR1>) -> PinProxy<PORT, Pin1, NEW>>(
self,
f: F
) -> Batch<PORT, DIR0, NEW, DIR2, DIR3, DIR4, DIR5, DIR6, DIR7>
[src]
self,
f: F
) -> Batch<PORT, DIR0, NEW, DIR2, DIR3, DIR4, DIR5, DIR6, DIR7>
Edit configuration of pin 1
pub fn config_pin2<NEW, F: FnOnce(PinProxy<PORT, Pin2, DIR2>) -> PinProxy<PORT, Pin2, NEW>>(
self,
f: F
) -> Batch<PORT, DIR0, DIR1, NEW, DIR3, DIR4, DIR5, DIR6, DIR7>
[src]
self,
f: F
) -> Batch<PORT, DIR0, DIR1, NEW, DIR3, DIR4, DIR5, DIR6, DIR7>
Edit configuration of pin 2
pub fn config_pin3<NEW, F: FnOnce(PinProxy<PORT, Pin3, DIR3>) -> PinProxy<PORT, Pin3, NEW>>(
self,
f: F
) -> Batch<PORT, DIR0, DIR1, DIR2, NEW, DIR4, DIR5, DIR6, DIR7>
[src]
self,
f: F
) -> Batch<PORT, DIR0, DIR1, DIR2, NEW, DIR4, DIR5, DIR6, DIR7>
Edit configuration of pin 3
pub fn config_pin4<NEW, F: FnOnce(PinProxy<PORT, Pin4, DIR4>) -> PinProxy<PORT, Pin4, NEW>>(
self,
f: F
) -> Batch<PORT, DIR0, DIR1, DIR2, DIR3, NEW, DIR5, DIR6, DIR7>
[src]
self,
f: F
) -> Batch<PORT, DIR0, DIR1, DIR2, DIR3, NEW, DIR5, DIR6, DIR7>
Edit configuration of pin 4
pub fn config_pin5<NEW, F: FnOnce(PinProxy<PORT, Pin5, DIR5>) -> PinProxy<PORT, Pin5, NEW>>(
self,
f: F
) -> Batch<PORT, DIR0, DIR1, DIR2, DIR3, DIR4, NEW, DIR6, DIR7>
[src]
self,
f: F
) -> Batch<PORT, DIR0, DIR1, DIR2, DIR3, DIR4, NEW, DIR6, DIR7>
Edit configuration of pin 5
pub fn config_pin6<NEW, F: FnOnce(PinProxy<PORT, Pin6, DIR6>) -> PinProxy<PORT, Pin6, NEW>>(
self,
f: F
) -> Batch<PORT, DIR0, DIR1, DIR2, DIR3, DIR4, DIR5, NEW, DIR7>
[src]
self,
f: F
) -> Batch<PORT, DIR0, DIR1, DIR2, DIR3, DIR4, DIR5, NEW, DIR7>
Edit configuration of pin 6
pub fn config_pin7<NEW, F: FnOnce(PinProxy<PORT, Pin7, DIR7>) -> PinProxy<PORT, Pin7, NEW>>(
self,
f: F
) -> Batch<PORT, DIR0, DIR1, DIR2, DIR3, DIR4, DIR5, DIR6, NEW>
[src]
self,
f: F
) -> Batch<PORT, DIR0, DIR1, DIR2, DIR3, DIR4, DIR5, DIR6, NEW>
Edit configuration of pin 7
Auto Trait Implementations
impl<PORT, DIR0, DIR1, DIR2, DIR3, DIR4, DIR5, DIR6, DIR7> Send for Batch<PORT, DIR0, DIR1, DIR2, DIR3, DIR4, DIR5, DIR6, DIR7> where
DIR0: Send,
DIR1: Send,
DIR2: Send,
DIR3: Send,
DIR4: Send,
DIR5: Send,
DIR6: Send,
DIR7: Send,
PORT: Send,
[src]
DIR0: Send,
DIR1: Send,
DIR2: Send,
DIR3: Send,
DIR4: Send,
DIR5: Send,
DIR6: Send,
DIR7: Send,
PORT: Send,
impl<PORT, DIR0, DIR1, DIR2, DIR3, DIR4, DIR5, DIR6, DIR7> Sync for Batch<PORT, DIR0, DIR1, DIR2, DIR3, DIR4, DIR5, DIR6, DIR7> where
DIR0: Sync,
DIR1: Sync,
DIR2: Sync,
DIR3: Sync,
DIR4: Sync,
DIR5: Sync,
DIR6: Sync,
DIR7: Sync,
PORT: Sync,
[src]
DIR0: Sync,
DIR1: Sync,
DIR2: Sync,
DIR3: Sync,
DIR4: Sync,
DIR5: Sync,
DIR6: Sync,
DIR7: Sync,
PORT: Sync,
impl<PORT, DIR0, DIR1, DIR2, DIR3, DIR4, DIR5, DIR6, DIR7> Unpin for Batch<PORT, DIR0, DIR1, DIR2, DIR3, DIR4, DIR5, DIR6, DIR7> where
DIR0: Unpin,
DIR1: Unpin,
DIR2: Unpin,
DIR3: Unpin,
DIR4: Unpin,
DIR5: Unpin,
DIR6: Unpin,
DIR7: Unpin,
PORT: Unpin,
[src]
DIR0: Unpin,
DIR1: Unpin,
DIR2: Unpin,
DIR3: Unpin,
DIR4: Unpin,
DIR5: Unpin,
DIR6: Unpin,
DIR7: 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>,