[−][src]Struct pcf857x::PinFlag
I/O pin flags, used to select which pins to read in the get
functions.
It is possible to select multiple of them using the binary or operator (|
).
let pins_to_be_read = PinFlag::P0 | PinFlag::P1;
Note that P10-17 can only be used with PCF8575 devices.
Methods
impl PinFlag
[src]
pub const P0: PinFlag
[src]
Pin 0
pub const P1: PinFlag
[src]
Pin 1
pub const P2: PinFlag
[src]
Pin 2
pub const P3: PinFlag
[src]
Pin 3
pub const P4: PinFlag
[src]
Pin 4
pub const P5: PinFlag
[src]
Pin 5
pub const P6: PinFlag
[src]
Pin 6
pub const P7: PinFlag
[src]
Pin 7
pub const P10: PinFlag
[src]
Pin 10 (only PCF8575)
pub const P11: PinFlag
[src]
Pin 11 (only PCF8575)
pub const P12: PinFlag
[src]
Pin 12 (only PCF8575)
pub const P13: PinFlag
[src]
Pin 13 (only PCF8575)
pub const P14: PinFlag
[src]
Pin 14 (only PCF8575)
pub const P15: PinFlag
[src]
Pin 15 (only PCF8575)
pub const P16: PinFlag
[src]
Pin 16 (only PCF8575)
pub const P17: PinFlag
[src]
Pin 17 (only PCF8575)
Trait Implementations
impl BitOr<PinFlag> for PinFlag
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Self) -> Self
[src]
impl Debug for PinFlag
[src]
impl Clone for PinFlag
[src]
Auto Trait Implementations
Blanket Implementations
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.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> 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,