view src/cs/drivers/drv_app/fchg/fchg_func_i.h @ 75:8697f358f505

backlight rework: Condat light driver accepts levels The present change is another intermediate step on the path toward new FreeCalypso backlight handling. At this intermediate step the Condat light driver accepts 0-255 backlight levels driven by MFW, and puts them out on PWL on Luna development boards. At the same time on C139 it is now possible to turn on the display backlight with or without the keypad bl - the lsb of the 0-255 backlight level controls the keypad bl. MFW presently drives only 0 and 255 backlight levels, thus there is no visible behavioral change yet - but the plan for subsequent stages of this backlight rework is to add a dimmed backlight state (no keypad bl on C139) during active calls.
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 24 Oct 2020 20:44:04 +0000
parents 4e78acac3d88
children 769cf6273fe4
line wrap: on
line source

/*
 * Declarations of internal functions live here.
 */

#ifndef __FCHG_FUNC_I
#define __FCHG_FUNC_I

#include "fchg/fchg_messages.h"

void pwr_init_discharge(void);
void pwr_load_ffs_batt_table(void);
void pwr_load_ffs_charging_config(void);
void pwr_set_default_batt_table(void);

void pwr_process_message(T_RV_HDR *msg_ptr);
void pwr_process_adc(struct pwr_adc_ind_s *msg);
void pwr_handle_timer(void);
void pwr_charger_plug(void);
void pwr_charger_unplug(void);
void pwr_charge_start_req(void);
void pwr_charge_stop_req(void);

#endif	/* include guard */