FastLED 3.10.6
Loading...
Searching...
No Matches
power_prepass.h
Go to the documentation of this file.
1#pragma once
2
4#include "fl/stl/int.h"
5#include "fl/stl/noexcept.h"
6
7namespace fl {
8
10
12
17
22
28 u32 flux_q16 = 65536;
30 u32 modeled_mW = 0;
31 u32 mcu_mW = 0;
32 bool infeasible = false;
33 bool limited = false;
34};
35
36#if FL_COLOR_PIPELINE_SHARED
37struct FramePowerDispatch {
38 FramePowerPlan (*calculate)(u8 requested_brightness, u32 budget_mW);
39 u8 (*showBrightness)(u8 requested_brightness, u32 budget_mW);
40 u8 (*showColorBrightness)(u8 requested_brightness, u32 budget_mW);
41};
42
45const FramePowerDispatch* framePowerDispatch() FL_NO_EXCEPT;
46
49const FramePowerDispatch*& activeFramePowerDispatch() FL_NO_EXCEPT;
50
54FramePowerPlan calculateFramePowerPlan(u8 requested_brightness,
55 u32 budget_mW) FL_NO_EXCEPT;
56
58u32 framePowerMCUBaselineMilliwatts() FL_NO_EXCEPT;
59#endif
60
61} // namespace fl
CLEDController * controller
unsigned char u8
Definition stdint.h:131
PowerCodecKind
InputGamut g FL_NO_EXCEPT
Definition rgbw.h:121
PowerCodecPolicy powerChannelCodecPolicy(const CLEDController &controller) FL_NO_EXCEPT
Identify the channel's final current/quantization choice without adding a virtual slot or storage to ...
Base definition for an LED controller.
Definition crgb.hpp:179
PowerCodecKind kind
Result of the shared frame-budget prepass on large-memory managed output.
#define FL_NO_EXCEPT