68 #include "ble_srv_common.h"
69 #include "app_util_platform.h"
71 #define BLE_UIS_UUID_BASE {{0x42, 0x00, 0x74, 0xA9, 0xFF, 0x52, 0x10, 0x9B, 0x33, 0x49, 0x35, 0x9B, 0x00, 0x00, 0x68, 0xEF}}
73 #define BLE_UIS_UUID_SERVICE 0x0300
74 #define BLE_UIS_UUID_LED_CHAR 0x0301
75 #define BLE_UIS_UUID_BUTTON_CHAR 0x0302
76 #define BLE_UIS_UUID_PIN_CHAR 0x0303
83 #define PACKED(TYPE) TYPE __attribute__ ((packed))
96 #define BLE_UIS_LED_MODE_MIN BLE_UIS_LED_MODE_OFF
97 #define BLE_UIS_LED_MODE_MAX BLE_UIS_LED_MODE_BREATHE_ONE_SHOT
99 #define BLE_UIS_LED_MODE_OFF_LENGTH 1
100 #define BLE_UIS_LED_MODE_CONST_LENGTH 4
101 #define BLE_UIS_LED_MODE_BREATHE_LENGTH 5
102 #define BLE_UIS_LED_MODE_BREATHE_ONE_SHOT_LENGTH 3
104 #define BLE_UIS_LED_COLOR_MIX_MIN 1
105 #define BLE_UIS_LED_COLOR_MIX_MAX 7
106 #define BLE_UIS_LED_INTENSITY_MIN 1
107 #define BLE_UIS_LED_INTENSITY_MAX 100
108 #define BLE_UIS_LED_DELAY_MIN 1
109 #define BLE_UIS_LED_DELAY_MAX 10000
113 typedef PACKED( union
131 })mode_breathe_one_shot;
132 }) ble_uis_led_data_t;
136 typedef PACKED(
struct
139 ble_uis_led_data_t data;
144 typedef PACKED(
struct
169 ble_uis_pin_t init_pin;
170 ble_uis_led_t * p_init_led;
185 bool is_button_notif_enabled;
219 #endif // BLE_UIS_H__