pub struct Chip<T: PwmOps>(/* private fields */);Expand description
Wrapper for a PWM chip/controller (struct pwm_chip).
Implementations§
Source§impl<T: PwmOps> Chip<T>
impl<T: PwmOps> Chip<T>
Sourcepub fn num_channels(&self) -> u32
pub fn num_channels(&self) -> u32
Gets the number of PWM channels (hardware PWMs) on this chip.
Sourcepub fn is_atomic(&self) -> bool
pub fn is_atomic(&self) -> bool
Returns true if the chip supports atomic operations for configuration.
Trait Implementations§
Source§impl<T: PwmOps> AlwaysRefCounted for Chip<T>
impl<T: PwmOps> AlwaysRefCounted for Chip<T>
impl<T: PwmOps + Send> Send for Chip<T>
impl<T: PwmOps + Sync> Sync for Chip<T>
Auto Trait Implementations§
impl<T> !Freeze for Chip<T>
impl<T> !RefUnwindSafe for Chip<T>
impl<T> !Unpin for Chip<T>
impl<T> UnwindSafe for Chip<T>where
T: UnwindSafe,
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
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more