1 /* 2 * Copyright (c) 2018 Linaro Limited 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /** 8 * @file 9 * @brief Private LED driver APIs 10 */ 11 12 #ifndef ZEPHYR_DRIVERS_LED_LED_CONTEXT_H_ 13 #define ZEPHYR_DRIVERS_LED_LED_CONTEXT_H_ 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 19 /** 20 * @brief Internal driver specific representation of an LED device 21 */ 22 23 struct led_data { 24 /* Minimum acceptable LED blinking time period (in ms) */ 25 uint32_t min_period; 26 /* Maximum acceptable LED blinking time period (in ms) */ 27 uint32_t max_period; 28 /* Minimum acceptable LED brightness value */ 29 uint16_t min_brightness; 30 /* Maximum acceptable LED brightness value */ 31 uint16_t max_brightness; 32 }; 33 34 #ifdef __cplusplus 35 } 36 #endif 37 38 #endif /* ZEPHYR_DRIVERS_LED_LED_CONTEXT_H_ */ 39