view src/cs/drivers/drv_app/fchg/fchg_func_i.h @ 236:3c790d29748e

fchg_is_running startup sync flag change: set the flag when the first ADC message has been processed, and not merely when the task is running - this way the flag indicates that meaningful info about the state of the battery is available.
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 02 May 2021 04:25:48 +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 */