You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
746 B
C
40 lines
746 B
C
2 years ago
|
#pragma once
|
||
|
|
||
|
#include "message.h"
|
||
|
|
||
|
#include <stdbool.h>
|
||
|
#include <stdint.h>
|
||
|
|
||
|
static const uint8_t SET_SYSTEM_LED_CMDID = 0x33;
|
||
|
|
||
|
enum LEDCOMP {
|
||
|
LEDCOMP_BOTTOM_BACK = 0x1,
|
||
|
LEDCOMP_BOTTOM_FRONT = 0x2,
|
||
|
LEDCOMP_BOTTOM_LEFT = 0x4,
|
||
|
LEDCOMP_BOTTOM_RIGHT = 0x8,
|
||
|
LEDCOMP_BOTTOM_ALL = 0xf,
|
||
|
LEDCOMP_TOP_LEFT = 0x10,
|
||
|
LEDCOMP_TOP_RIGHT = 0x20,
|
||
|
LEDCOMP_TOP_ALL = 0x30,
|
||
|
LEDCOMP_ALL = 0x3f
|
||
|
};
|
||
|
|
||
|
enum LEDEFFECT {
|
||
|
LEDEFFECT_OFF = 0,
|
||
|
LEDEFFECT_ON = 1,
|
||
|
LEDEFFECT_BREATH = 2,
|
||
|
LEDEFFECT_FLASH = 3,
|
||
|
LEDEFFECT_SCROLLING = 4
|
||
|
};
|
||
|
|
||
|
void set_system_led (
|
||
|
Client session,
|
||
|
uint8_t red,
|
||
|
uint8_t green,
|
||
|
uint8_t blue,
|
||
|
enum LEDCOMP comp,
|
||
|
uint16_t led_mask,
|
||
|
enum LEDEFFECT effect,
|
||
|
uint16_t t1,
|
||
|
uint16_t t2 );
|