44 #define LED_CONTROL_COLOR_OFF 0 45 #define LED_CONTROL_COLOR_RED 1 46 #define LED_CONTROL_COLOR_GREEN 2 47 #define LED_CONTROL_COLOR_BLUE 3 48 #define LED_CONTROL_COLOR_YELLOW 4 49 #define LED_CONTROL_COLOR_PURPLE 5 50 #define LED_CONTROL_COLOR_AMBER 6 51 #define LED_CONTROL_COLOR_CYAN 7 52 #define LED_CONTROL_COLOR_WHITE 8 53 #define LED_CONTROL_MODE_OFF 0 54 #define LED_CONTROL_MODE_ON 1 55 #define LED_CONTROL_MODE_DISABLED 2 56 #define LED_CONTROL_MODE_BLINK_SLOW 3 57 #define LED_CONTROL_MODE_BLINK_NORMAL 4 58 #define LED_CONTROL_MODE_BLINK_FAST 5 59 #define LED_CONTROL_MODE_BREATHE 6 60 #define LED_CONTROL_MODE_FLASH 7 61 #define LED_CONTROL_MAX_PRIORITY 2 62 #define LED_CONTROL_ORB_QUEUE_LENGTH 4 82 static constexpr uint8_t COLOR_OFF = 0;
83 static constexpr uint8_t COLOR_RED = 1;
84 static constexpr uint8_t COLOR_GREEN = 2;
85 static constexpr uint8_t COLOR_BLUE = 3;
86 static constexpr uint8_t COLOR_YELLOW = 4;
87 static constexpr uint8_t COLOR_PURPLE = 5;
88 static constexpr uint8_t COLOR_AMBER = 6;
89 static constexpr uint8_t COLOR_CYAN = 7;
90 static constexpr uint8_t COLOR_WHITE = 8;
91 static constexpr uint8_t MODE_OFF = 0;
92 static constexpr uint8_t MODE_ON = 1;
93 static constexpr uint8_t MODE_DISABLED = 2;
94 static constexpr uint8_t MODE_BLINK_SLOW = 3;
95 static constexpr uint8_t MODE_BLINK_NORMAL = 4;
96 static constexpr uint8_t MODE_BLINK_FAST = 5;
97 static constexpr uint8_t MODE_BREATHE = 6;
98 static constexpr uint8_t MODE_FLASH = 7;
99 static constexpr uint8_t MAX_PRIORITY = 2;
100 static constexpr uint8_t ORB_QUEUE_LENGTH = 4;
API for the uORB lightweight object broker.
static led_control_s led_control