FastLED 3.9.15
Loading...
Searching...
No Matches
fl::spi::Lane Class Reference

Detailed Description

Single lane in a multi-lane SPI device.

Provides buffer access for one independent data stream in a multi-lane SPI configuration (Dual/Quad/Octal)

Note
Lane data is buffered until flush() is called on parent device

Definition at line 24 of file lane.h.

#include <lane.h>

+ Collaboration diagram for fl::spi::Lane:

Public Member Functions

size_t bufferSize () const
 Get current buffer size.
 
void clear ()
 Clear the lane's buffer.
 
fl::span< u8getBuffer (size_t size)
 Get direct buffer access for zero-copy writes.
 
size_t id () const
 Get lane ID.
 
void write (const u8 *data, size_t size)
 Write data to this lane's buffer.
 

Private Member Functions

 Lane (size_t lane_id, MultiLaneDevice *parent)
 Construct lane (called by MultiLaneDevice)
 
fl::span< const u8data () const
 Get const access to buffer data.
 

Private Attributes

fl::vector< u8mBuffer
 
size_t mLaneId
 

Friends

class MultiLaneDevice
 

The documentation for this class was generated from the following files: