|
FastLED 3.9.15
|
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)
#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< u8 > | getBuffer (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 u8 > | data () const |
| Get const access to buffer data. | |
Private Attributes | |
| fl::vector< u8 > | mBuffer |
| size_t | mLaneId |
Friends | |
| class | MultiLaneDevice |