[][src]Struct pcf857x::PinFlag

pub struct PinFlag { /* fields omitted */ }

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.

impl Debug for PinFlag[src]

impl Clone for PinFlag[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for PinFlag

impl Sync for PinFlag

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]