MCPcopy Create free account
hub / github.com/FastLED/FastLED / getBigEndian16

Function getBigEndian16

tests/fl/chipsets/hd108.cpp:40–42  ·  view source on GitHub ↗

Helper to extract 16-bit big-endian value from byte span

Source from the content-addressed store, hash-verified

38
39/// Helper to extract 16-bit big-endian value from byte span
40u16 getBigEndian16(const fl::span<const u8>& bytes, size_t offset) {
41 return (u16(bytes[offset]) << 8) | u16(bytes[offset + 1]);
42}
43
44/// Helper to decode RGB gains from HD108 header bytes
45void decodeGains(u8 f0, u8 f1, u8* r_gain, u8* g_gain, u8* b_gain) {

Callers 1

FL_TEST_FILEFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected