/** * @file include/di_fw/cloudlight.h * @brief Cloudlight header file * @date July 2, 2015 * @author A.A.W.M. Ruijs * @copyright 2015 Dual Inventive Technology Centre B.V. */ #ifndef INCLUDE_DI_FW_CLOUDLIGHT_H_ #define INCLUDE_DI_FW_CLOUDLIGHT_H_ enum di_fw_cloudlight_state { DI_FW_CLOUDLIGHT_STATE_ONLINE = 0, DI_FW_CLOUDLIGHT_STATE_ONLINE_ERROR = 1, DI_FW_CLOUDLIGHT_STATE_OFFLINE = 2, DI_FW_CLOUDLIGHT_STATE_OFFLINE_ERROR = 3, DI_FW_CLOUDLIGHT_STATE_POWERSAVE = 4, DI_FW_CLOUDLIGHT_STATE_BUTTON = 5, DI_FW_CLOUDLIGHT_STATE_SPECIAL = 6 }; enum di_fw_cloudlight_color { DI_FW_CLOUDLIGHT_COLOR_DEFAULT = 0, DI_FW_CLOUDLIGHT_COLOR_GREEN = 1, DI_FW_CLOUDLIGHT_COLOR_BLUE = 2, DI_FW_CLOUDLIGHT_COLOR_RED = 3 }; /** * initiation of user interface */ void di_fw_cloudlight_init(void); /** * set connection state for cloudlight * @param con the connection state that needs to be set */ void di_fw_cloudlight_set_connected(bool con); /** * set the special state to activate * @param hz the speed in witch the lights needs to blink * @param seconds the duration in seconds that the light needs to be on * @param color the color that the lights needs to have, can be blue green or red */ void di_fw_cloudlight_special_state(uint8_t hz, uint8_t seconds, enum di_fw_cloudlight_color color); /** * returns the Cloudlight state * @return The current state */ enum di_fw_cloudlight_state di_fw_cloudlight_get_state(void); #endif /* INCLUDE_DI_FW_CLOUDLIGHT_H_ */