Struct esp_idf_hal::rmt::RxRmtDriver
source · pub struct RxRmtDriver<'d> { /* private fields */ }
Expand description
The RMT receiver.
Use RxRmtDriver::start()
to receive pulses.
See the rmt module for more information.
Implementations§
source§impl<'d> RxRmtDriver<'d>
impl<'d> RxRmtDriver<'d>
sourcepub fn new<C: RmtChannel>(
_channel: impl Peripheral<P = C> + 'd,
pin: impl Peripheral<P = impl InputPin> + 'd,
config: &ReceiveConfig,
ring_buf_size: usize,
) -> Result<Self, EspError>
pub fn new<C: RmtChannel>( _channel: impl Peripheral<P = C> + 'd, pin: impl Peripheral<P = impl InputPin> + 'd, config: &ReceiveConfig, ring_buf_size: usize, ) -> Result<Self, EspError>
Initialise the rmt module with the specified pin, channel and configuration.
To uninstall the driver just drop it.
Internally this calls rmt_config()
and rmt_driver_install()
.