pub struct BytesEncoder { /* private fields */ }Expand description
An encoder that dynamically encodes a user space byte stream into RMT symbols.
It is usually used to encode dynamic data, e.g., the address and command fields in the IR protocol.
Implementations§
Source§impl BytesEncoder
impl BytesEncoder
Sourcepub fn new() -> Result<Self, EspError>
pub fn new() -> Result<Self, EspError>
Constructs a new bytes encoder with default configuration.
Sourcepub fn with_config(config: &BytesEncoderConfig) -> Result<Self, EspError>
pub fn with_config(config: &BytesEncoderConfig) -> Result<Self, EspError>
Constructs a new bytes encoder with the provided configuration.
Trait Implementations§
Source§impl Debug for BytesEncoder
impl Debug for BytesEncoder
Source§impl Drop for BytesEncoder
impl Drop for BytesEncoder
Source§impl RawEncoder for BytesEncoder
impl RawEncoder for BytesEncoder
Auto Trait Implementations§
impl Freeze for BytesEncoder
impl RefUnwindSafe for BytesEncoder
impl !Send for BytesEncoder
impl !Sync for BytesEncoder
impl Unpin for BytesEncoder
impl UnsafeUnpin for BytesEncoder
impl UnwindSafe for BytesEncoder
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