Struct esp_idf_svc::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>(
_channel: impl Peripheral<P = C> + 'd,
pin: impl Peripheral<P = impl InputPin> + 'd,
config: &ReceiveConfig,
ring_buf_size: usize,
) -> Result<RxRmtDriver<'d>, EspError>where
C: RmtChannel,
pub fn new<C>(
_channel: impl Peripheral<P = C> + 'd,
pin: impl Peripheral<P = impl InputPin> + 'd,
config: &ReceiveConfig,
ring_buf_size: usize,
) -> Result<RxRmtDriver<'d>, EspError>where
C: RmtChannel,
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()
.