/** * @file include/di_fw/battery_indicator.h * @brief battery indicator header file * @date August 24, 2016 * @author A.A.W.M. Ruijs * @copyright 2016 Dual Inventive Technology Centre B.V. */ #ifndef INCLUDE_DI_FW_BATTERY_INDICATOR_H_ #define INCLUDE_DI_FW_BATTERY_INDICATOR_H_ #include /** * init battery indicator module */ void di_fw_battery_indicator_init(void); /** * set state for battery indicator according to the battery states * @param bat battery nr * @param state battery state of the battery */ void di_fw_battery_indicator_set_state(enum di_fw_batteries bat, enum di_device_battery_state state); /** * force write to IO-expander * @param enable when true, the output is always written, when false the output is * written when changed */ void di_fw_battery_indicator_force_update_enable(bool enable); /** * enable/disable display * @param on bool true for display enable, false for display disable */ void di_fw_battery_indicator_set_display_enabled(bool on); #endif /*INCLUDE_DI_FW_BATTERY_INDICATOR_H_ */