BSB Developer Docs
Loading...
Searching...
No Matches
status_lights_preset_base.h
1#pragma once
2
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9#define REPEAT_INFINITE (0)
10
11typedef void StatusLightsGenericPreset;
12
13typedef StatusLightsGenericPreset* (*StatusLightsPresetAlloc)(const Color* color);
14typedef void (*StatusLightsPresetFree)(StatusLightsGenericPreset* instance);
15typedef void (*StatusLightsPresetRun)(StatusLightsGenericPreset* instance, Color* color);
16
17typedef struct {
18 StatusLightsPresetAlloc alloc;
19 StatusLightsPresetFree free;
20 StatusLightsPresetRun run;
21 uint32_t period_ms;
22 uint32_t repeat_count;
23 bool override_brightness;
25
26#ifdef __cplusplus
27}
28#endif
Common public definitions for Status Lights.
RGB color structure.
Definition color.h:42
Definition status_lights_preset_base.h:17