2017-12-17 18:46:02 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Linaro Limited
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief Private LED driver APIs
|
|
|
|
*/
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_DRIVERS_LED_LED_CONTEXT_H_
|
|
|
|
#define ZEPHYR_DRIVERS_LED_LED_CONTEXT_H_
|
2017-12-17 18:46:02 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Internal driver specific representation of an LED device
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct led_data {
|
|
|
|
/* Minimum acceptable LED blinking time period (in ms) */
|
2020-05-28 00:26:57 +08:00
|
|
|
uint32_t min_period;
|
2017-12-17 18:46:02 +08:00
|
|
|
/* Maximum acceptable LED blinking time period (in ms) */
|
2020-05-28 00:26:57 +08:00
|
|
|
uint32_t max_period;
|
2017-12-17 18:46:02 +08:00
|
|
|
/* Minimum acceptable LED brightness value */
|
2020-05-28 00:26:57 +08:00
|
|
|
uint16_t min_brightness;
|
2017-12-17 18:46:02 +08:00
|
|
|
/* Maximum acceptable LED brightness value */
|
2020-05-28 00:26:57 +08:00
|
|
|
uint16_t max_brightness;
|
2017-12-17 18:46:02 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_DRIVERS_LED_LED_CONTEXT_H_ */
|