/* * sec_step_charging.h * Samsung Mobile Charger Header * * Copyright (C) 2015 Samsung Electronics, Inc. * * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #ifndef __SEC_STEP_CHARGING_H #define __SEC_STEP_CHARGING __FILE__ #define STEP_CHARGING_CONDITION_VOLTAGE 0x01 #define STEP_CHARGING_CONDITION_SOC 0x02 #define STEP_CHARGING_CONDITION_CHARGE_POWER 0x04 #define STEP_CHARGING_CONDITION_ONLINE 0x08 #define STEP_CHARGING_CONDITION_CURRENT_NOW 0x10 #define STEP_CHARGING_CONDITION_FLOAT_VOLTAGE 0x20 #define STEP_CHARGING_CONDITION_INPUT_CURRENT 0x40 #define STEP_CHARGING_CONDITION_SOC_INIT_ONLY 0x80 /* use this to consider SOC to decide starting step only */ #define STEP_CHARGING_CONDITION_DC_INIT (STEP_CHARGING_CONDITION_VOLTAGE | STEP_CHARGING_CONDITION_SOC | STEP_CHARGING_CONDITION_SOC_INIT_ONLY) #define DIRECT_CHARGING_FLOAT_VOLTAGE_MARGIN 20 #define DIRECT_CHARGING_FORCE_SOC_MARGIN 10 #endif /* __SEC_STEP_CHARGING_H */