Struct esp32c3_hal::pulse_control::PulseCode
source · pub struct PulseCode {
pub level1: bool,
pub length1: Duration<u32, 1, 1000000000>,
pub level2: bool,
pub length2: Duration<u32, 1, 1000000000>,
}
Expand description
Object representing the state of one pulse code per ESP32-C3 TRM
Allows for the assignment of two levels and their lenghts
Fields§
§level1: bool
Logical output level in the first pulse code interval
length1: Duration<u32, 1, 1000000000>
Length of the first pulse code interval (in clock cycles)
level2: bool
Logical output level in the second pulse code interval
length2: Duration<u32, 1, 1000000000>
Length of the second pulse code interval (in clock cycles)
Trait Implementations§
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