FastLED 3.9.15
Loading...
Searching...
No Matches

◆ loadByte() [2/2]

template<EOrder RGB_ORDER, int LANES = 1, uint32_t MASK = 0xFFFFFFFF>
template<int SLOT>
static FASTLED_FORCE_INLINE uint8_t PixelController< RGB_ORDER, LANES, MASK >::loadByte ( PixelController< RGB_ORDER, LANES, MASK > & pc,
int lane )
inlinestatic

Read a byte of LED data for parallel output.

Template Parameters
SLOTThe data slot in the output stream. This is used to select which byte of the output stream is being processed.
Parameters
pcreference to the pixel controller
lanethe parallel output lane to read the byte for

Definition at line 341 of file pixel_controller.h.

341{ return pc.mData[pc.mOffsets[lane] + RO(SLOT)]; }
#define RO(X)
Gets the assigned color channel for a byte's position in the output, using the color order (EOrder) t...
const uint8_t * mData
pointer to the underlying LED data
int mOffsets[LANES]
the number of bytes to offset each lane from the starting pointer
Pixel controller class.

References PixelController(), FASTLED_FORCE_INLINE, mData, mOffsets, and RO.

+ Here is the call graph for this function: