#[repr(C)]pub struct PamojaPca9685Settings {
pub frequency_hz: u32,
pub oscillator_hz: u32,
pub outputs: PamojaPca9685Outputs,
}Expand description
How a PCA9685 driver programs the part.
Fields§
§frequency_hz: u32The PWM frequency every channel shares, in hertz; the prescaler reaches 24 to 1526 at 25 MHz, and 50 is what a hobby servo wants.
oscillator_hz: u32The clock the prescaler divides, in hertz: the internal 25 MHz unless the board drives EXTCLK.
outputs: PamojaPca9685OutputsHow the outputs are wired.
Trait Implementations§
Source§impl Clone for PamojaPca9685Settings
impl Clone for PamojaPca9685Settings
Source§fn clone(&self) -> PamojaPca9685Settings
fn clone(&self) -> PamojaPca9685Settings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaPca9685Settings
Source§impl Debug for PamojaPca9685Settings
impl Debug for PamojaPca9685Settings
impl Eq for PamojaPca9685Settings
Source§impl PartialEq for PamojaPca9685Settings
impl PartialEq for PamojaPca9685Settings
impl StructuralPartialEq for PamojaPca9685Settings
Auto Trait Implementations§
impl Freeze for PamojaPca9685Settings
impl RefUnwindSafe for PamojaPca9685Settings
impl Send for PamojaPca9685Settings
impl Sync for PamojaPca9685Settings
impl Unpin for PamojaPca9685Settings
impl UnsafeUnpin for PamojaPca9685Settings
impl UnwindSafe for PamojaPca9685Settings
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