#[repr(C)]pub struct PamojaPwm {
pub on_low: u8,
pub on_high: u8,
pub off_low: u8,
pub off_high: u8,
}Expand description
A PCA9685 channel’s four register bytes.
The order matches the channel’s four consecutive registers, so the whole struct can be written in one bus transaction.
Fields§
§on_low: u8The low byte of the count at which the output goes high.
on_high: u8The high byte of that count; bit 4 is the full-on flag.
off_low: u8The low byte of the count at which the output goes low.
off_high: u8The high byte of that count; bit 4 is the full-off flag.
Trait Implementations§
impl Copy for PamojaPwm
impl Eq for PamojaPwm
impl StructuralPartialEq for PamojaPwm
Auto Trait Implementations§
impl Freeze for PamojaPwm
impl RefUnwindSafe for PamojaPwm
impl Send for PamojaPwm
impl Sync for PamojaPwm
impl Unpin for PamojaPwm
impl UnsafeUnpin for PamojaPwm
impl UnwindSafe for PamojaPwm
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