pub struct Outputs {
pub totem_pole: bool,
pub inverted: bool,
pub change_on_ack: bool,
}Expand description
How the sixteen outputs are wired, the MODE2 register.
Fields§
§totem_pole: boolTotem-pole (push-pull) outputs, the reset default, or open-drain when
false; the datasheet asks for open-drain when driving LEDs with built-in
protection.
inverted: boolInvert the output logic, for boards with no external driver.
change_on_ack: boolChange the outputs on the acknowledge of each register write rather than on the stop condition; the default synchronizes a whole update.
Implementations§
Trait Implementations§
impl Copy for Outputs
impl Eq for Outputs
impl StructuralPartialEq for Outputs
Auto Trait Implementations§
impl Freeze for Outputs
impl RefUnwindSafe for Outputs
impl Send for Outputs
impl Sync for Outputs
impl Unpin for Outputs
impl UnsafeUnpin for Outputs
impl UnwindSafe for Outputs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more