Module esp_idf_hal::rmt::config
source · Expand description
Types used for configuring the rmt
module.
[Config
] is used when creating a [Transmit
][crate::rmt::Transmit] instance.
§Example
let carrier = CarrierConfig::new()
.duty_percent(DutyPercent::new(50)?)
.frequency(611.Hz());
let config = Config::new()
.carrier(Some(carrier))
.looping(Loop::Endless)
.clock_divider(255);
Structs§
- Configuration for when enabling a carrier frequency.
- A percentage from 0 to 100%, used to specify the duty percentage in
CarrierConfig
. - Used when creating a
Receive
instance. - Used when creating a [
Transmit
][crate::rmt::Transmit] instance.
Enums§
- Configuration setting for looping a signal.