pub struct CopyEncoder { /* private fields */ }Expand description
A copy encoder copies the provided symbols from the user space into the driver layer.
It is usually used to encode non-mut data, i.e. data that does not change at runtime
after initialization, such as the leading code in the IR protocol.
For custom Encoder this type is essential to
copy the generated symbols into the RMT driver.
Implementations§
Source§impl CopyEncoder
impl CopyEncoder
Sourcepub fn new() -> Result<Self, EspError>
pub fn new() -> Result<Self, EspError>
Constructs a new copy encoder with default configuration.
Sourcepub fn with_config(config: &rmt_copy_encoder_config_t) -> Result<Self, EspError>
pub fn with_config(config: &rmt_copy_encoder_config_t) -> Result<Self, EspError>
Constructs a new copy encoder with the provided configuration.
Trait Implementations§
Source§impl Debug for CopyEncoder
impl Debug for CopyEncoder
Source§impl Drop for CopyEncoder
impl Drop for CopyEncoder
Source§impl RawEncoder for CopyEncoder
impl RawEncoder for CopyEncoder
Auto Trait Implementations§
impl Freeze for CopyEncoder
impl RefUnwindSafe for CopyEncoder
impl !Send for CopyEncoder
impl !Sync for CopyEncoder
impl Unpin for CopyEncoder
impl UnsafeUnpin for CopyEncoder
impl UnwindSafe for CopyEncoder
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<E> Encoder for Ewhere
E: RawEncoder,
impl<E> Encoder for Ewhere
E: RawEncoder,
Source§type Item = <E as RawEncoder>::Item
type Item = <E as RawEncoder>::Item
The type of input data the encoder can encode.
Source§fn encode(
&mut self,
handle: &mut RmtChannelHandle,
primary_data: &[<E as Encoder>::Item],
) -> (usize, EncoderState)
fn encode( &mut self, handle: &mut RmtChannelHandle, primary_data: &[<E as Encoder>::Item], ) -> (usize, EncoderState)
Encode the user data into RMT symbols and write into RMT memory. Read more