FastLED 3.9.15
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "fl/stl/stdint.h"
7#include "fl/stl/int.h"
8namespace fl {
11
16
17
20typedef union {
21 u32 i;
22 float f;
23 struct {
24 u32 mantissa: 23;
25 u32 exponent: 8;
26 u32 signbit: 1;
27 };
28 struct {
29 u32 mant7 : 7;
30 u32 mant16: 16;
31 u32 exp_ : 8;
32 u32 sb_ : 1;
33 };
34 struct {
35 u32 mant_lo8 : 8;
36 u32 mant_hi16_exp_lo1 : 16;
37 u32 sb_exphi7 : 8;
38 };
39} IEEE754binary32_t;
40
43} // namespace fl
u32 i
raw value, as an integer
Definition types.h:21
float f
raw value, as a float
Definition types.h:22
Base definition for an LED controller.
Definition crgb.hpp:179