Struct esp32c3_hal::rmt::PulseCode
source · pub struct PulseCode {
pub level1: bool,
pub length1: u16,
pub level2: bool,
pub length2: u16,
}
Expand description
Convenience representation of a pulse code entry.
Allows for the assignment of two levels and their lengths
Fields§
§level1: bool
Logical output level in the first pulse code interval
length1: u16
Length of the first pulse code interval (in clock cycles)
level2: bool
Logical output level in the second pulse code interval
length2: u16
Length of the second pulse code interval (in clock cycles)
Trait Implementations§
impl Copy for PulseCode
Auto Trait Implementations§
impl RefUnwindSafe for PulseCode
impl Send for PulseCode
impl Sync for PulseCode
impl Unpin for PulseCode
impl UnwindSafe for PulseCode
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