229 {
231
232 for (int symbol_idx = 0; symbol_idx < 3; symbol_idx++) {
233 u8 lane_bytes[8] = {0, 0, 0, 0, 0, 0, 0, 0};
234
235
236
237 for (int byte_idx = 0; byte_idx < 8; byte_idx++) {
238 u8 input_byte = transposed[symbol_idx * 8 + byte_idx];
239
240 int pulse_bit = 7 - byte_idx;
241
242 for (int lane = 0; lane < 8; lane++) {
243 u8 pulse = (input_byte >> lane) & 1;
244 lane_bytes[lane] |= (pulse << pulse_bit);
245 }
246 }
247
248 for (int lane = 0; lane < 8; lane++) {
249 lane_waves[lane].
data[symbol_idx] = lane_bytes[lane];
250 }
251 }
252
253 for (int lane = 0; lane < 8; lane++) {
255 }
256}
FL_OPTIMIZE_FUNCTION FL_IRAM FASTLED_FORCE_INLINE void memcpy(void *FL_RESTRICT_PARAM dst, const void *FL_RESTRICT_PARAM src, size_t num_bytes)
ISR-optimized memcpy with alignment detection and switch dispatch.
Type-safe container for 3-byte wave pulse pattern (wave3 encoding)