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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.