API Documentation
v0.0.1
Loading...
Searching...
No Matches
LedStruct.h
1
/**********************************************************************************************************************
2
* ____ _ _ _
3
* / __ \ | | | | | |
4
* | | | |_ __ ___ _ __ | |__| | ___ _ __ _ __ ___| |_
5
* | | | | '_ \ / _ \ '_ \| __ |/ _ \| '__| '_ \ / _ \ __|
6
* | |__| | |_) | __/ | | | | | | (_) | | | | | | __/ |_
7
* \____/| .__/ \___|_| |_|_| |_|\___/|_| |_| |_|\___|\__|
8
* | |
9
* |_|
10
* ----------------------------------------------------------------------------------
11
*
12
* @file LedStruct.h
13
* @author Ulukaii
14
* @date 24.05.2025
15
* @version t 0.3.2
16
* @copyright Copyright 2016-2025 OpenHornet. See 2A13-BACKLIGHT_CONTROLLER.ino for details.
17
* @brief LED info structures.
18
* @details struct Led: Bundles properties "index" and "role" of one LED.
19
* struct LedText: Bundles properties "index" and "text" of one LED.
20
* @remark LedText associates text with specific LEDs. This is intended for the PREFLT function.
21
* We use this in a separate struct because the 16 byte LED text is not always needed and we need to
22
* save memory and access time. Putting both in the same struct could lead to memory problems.
23
*********************************************************************************************************************/
24
25
#ifndef __LED_STRUCT_H
26
#define __LED_STRUCT_H
27
28
#include <stdint.h>
29
#include "LedRole.h"
30
31
// Maximum length for LED text description
32
const
int
MAX_LEN = 16;
// Maximum length for legend text (including null terminator)
33
34
35
struct
Led
{
36
uint16_t index;
// Local position of the LED on the panel, starts at 0
37
LedRole role;
// Role of LED as the enum defined above
38
};
39
40
41
struct
LedText
{
42
uint16_t index;
// Local position of the LED on the panel, starts at 0
43
char
text[MAX_LEN];
// Free text to associate LED with legend text on a panel
44
};
45
46
#endif
Led
Definition
LedStruct.h:35
LedText
Definition
LedStruct.h:41
embedded
OH2_Lower_Instrument_Panel
2A13-BACKLIGHT_CONTROLLER
helpers
LedStruct.h
Generated on Tue May 5 2026 16:37:05 for API Documentation by
1.12.0