#[repr(C)]pub struct PwmInfoAbi {
pub version: u16,
pub channel_count: u16,
pub max_duty_cycle: u16,
pub reserved: u16,
pub frequency_hz: u32,
}Expand description
Channel description returned by every PWM command.
Fields§
§version: u16§channel_count: u16Number of channels on the controller.
max_duty_cycle: u16Duty value that means 100 percent on this channel.
reserved: u16§frequency_hz: u32Current period of this channel in hertz.
Trait Implementations§
Source§impl Clone for PwmInfoAbi
impl Clone for PwmInfoAbi
Source§fn clone(&self) -> PwmInfoAbi
fn clone(&self) -> PwmInfoAbi
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 moreSource§impl Debug for PwmInfoAbi
impl Debug for PwmInfoAbi
Source§impl Default for PwmInfoAbi
impl Default for PwmInfoAbi
Source§fn default() -> PwmInfoAbi
fn default() -> PwmInfoAbi
Returns the “default value” for a type. Read more
Source§impl PartialEq for PwmInfoAbi
impl PartialEq for PwmInfoAbi
Source§fn eq(&self, other: &PwmInfoAbi) -> bool
fn eq(&self, other: &PwmInfoAbi) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PwmInfoAbi
impl Eq for PwmInfoAbi
impl PlainData for PwmInfoAbi
impl StructuralPartialEq for PwmInfoAbi
Auto Trait Implementations§
impl Freeze for PwmInfoAbi
impl RefUnwindSafe for PwmInfoAbi
impl Send for PwmInfoAbi
impl Sync for PwmInfoAbi
impl Unpin for PwmInfoAbi
impl UnsafeUnpin for PwmInfoAbi
impl UnwindSafe for PwmInfoAbi
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