zephyr/drivers/led/led_context.h
Kumar Gala a1b77fd589 zephyr: replace zephyr integer types with C99 types
git grep -l 'u\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g"
	git grep -l 's\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g"

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-06-08 08:23:57 -05:00

39 lines
746 B
C

/*
* Copyright (c) 2018 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Private LED driver APIs
*/
#ifndef ZEPHYR_DRIVERS_LED_LED_CONTEXT_H_
#define ZEPHYR_DRIVERS_LED_LED_CONTEXT_H_
#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) */
uint32_t min_period;
/* Maximum acceptable LED blinking time period (in ms) */
uint32_t max_period;
/* Minimum acceptable LED brightness value */
uint16_t min_brightness;
/* Maximum acceptable LED brightness value */
uint16_t max_brightness;
};
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_DRIVERS_LED_LED_CONTEXT_H_ */