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)