pub struct SmartLedsAdapterAsync<Tx, const BUFFER_SIZE: usize> { /* private fields */ }
Expand description
Adapter taking an RMT channel and a specific pin and providing RGB LED interaction functionality.
Implementations§
Source§impl<'d, Tx: TxChannelAsync, const BUFFER_SIZE: usize> SmartLedsAdapterAsync<Tx, BUFFER_SIZE>
impl<'d, Tx: TxChannelAsync, const BUFFER_SIZE: usize> SmartLedsAdapterAsync<Tx, BUFFER_SIZE>
Sourcepub fn new<C, O>(
channel: C,
pin: O,
rmt_buffer: [u32; BUFFER_SIZE],
) -> SmartLedsAdapterAsync<Tx, BUFFER_SIZE>where
O: PeripheralOutput<'d>,
C: TxChannelCreatorAsync<'d, Tx>,
pub fn new<C, O>(
channel: C,
pin: O,
rmt_buffer: [u32; BUFFER_SIZE],
) -> SmartLedsAdapterAsync<Tx, BUFFER_SIZE>where
O: PeripheralOutput<'d>,
C: TxChannelCreatorAsync<'d, Tx>,
Create a new adapter object that drives the pin using the RMT channel.
Trait Implementations§
Source§impl<Tx: TxChannelAsync, const BUFFER_SIZE: usize> SmartLedsWriteAsync for SmartLedsAdapterAsync<Tx, BUFFER_SIZE>
impl<Tx: TxChannelAsync, const BUFFER_SIZE: usize> SmartLedsWriteAsync for SmartLedsAdapterAsync<Tx, BUFFER_SIZE>
Auto Trait Implementations§
impl<Tx, const BUFFER_SIZE: usize> Freeze for SmartLedsAdapterAsync<Tx, BUFFER_SIZE>where
Tx: Freeze,
impl<Tx, const BUFFER_SIZE: usize> RefUnwindSafe for SmartLedsAdapterAsync<Tx, BUFFER_SIZE>where
Tx: RefUnwindSafe,
impl<Tx, const BUFFER_SIZE: usize> Send for SmartLedsAdapterAsync<Tx, BUFFER_SIZE>where
Tx: Send,
impl<Tx, const BUFFER_SIZE: usize> Sync for SmartLedsAdapterAsync<Tx, BUFFER_SIZE>where
Tx: Sync,
impl<Tx, const BUFFER_SIZE: usize> Unpin for SmartLedsAdapterAsync<Tx, BUFFER_SIZE>where
Tx: Unpin,
impl<Tx, const BUFFER_SIZE: usize> UnwindSafe for SmartLedsAdapterAsync<Tx, BUFFER_SIZE>where
Tx: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more