Struct rp2040_hal::pwm::TopFormat
source · #[repr(C, align(4))]pub struct TopFormat {
pub top: u16,
/* private fields */
}
Expand description
Format for DMA transfers to PWM TOP register.
It is forbidden to use it as DMA write destination, it is safe but it might not be compatible with a future use of reserved register fields.
Fields§
§top: u16
Valid register part.
Implementations§
Trait Implementations§
source§impl PartialEq for TopFormat
impl PartialEq for TopFormat
impl Copy for TopFormat
impl Eq for TopFormat
impl Word for TopFormat
Auto Trait Implementations§
impl Freeze for TopFormat
impl RefUnwindSafe for TopFormat
impl Send for TopFormat
impl Sync for TopFormat
impl Unpin for TopFormat
impl UnwindSafe for TopFormat
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<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more