Definition in file bootldr.h.
Go to the source code of this file.
| #define ALARM_MODE 0x20 |
Definition at line 115 of file bootldr.h.
Referenced by AlarmModeDisabledCheck(), MasterSMBusCheck(), and SMBW_BattMode().
| #define BATTERY_ADDR 0x16 |
| #define CAPACITY_MODE 0x80 |
Definition at line 117 of file bootldr.h.
Referenced by AtRateOK(), AtRateTTE(), AtRateTTF(), AvgTimeToFull(), FullChgCap(), RemainingCap(), SMBR_DesignCap(), SMBW_BattMode(), and TimeToEmpty().
| #define CHARGE_CONTROLLER_ENABLED 0x01 |
| #define CHARGER_ADDR 0x12 |
| #define CHARGER_MODE 0x40 |
| #define DISCHARGING 0x40 |
| #define FULLY_CHARGED 0x20 |
Definition at line 141 of file bootldr.h.
Referenced by ChargeCheck(), FullChargeReached(), FullDischargeReached(), and MasterSMBusCheck().
| #define FULLY_DISCHARGED 0x10 |
Definition at line 142 of file bootldr.h.
Referenced by ChargeCheck(), FullChargeReached(), and FullDischargeReached().
| #define hibyte 1 |
Definition at line 95 of file bootldr.h.
Referenced by AlarmConditionsCheck(), AlarmModeDisabledCheck(), AtRateOK(), AtRateTTE(), AtRateTTF(), AvgTimeToFull(), ChargeCheck(), FullChgCap(), MasterSMBusCheck(), RemainingCap(), SMBR_DesignCap(), ThermalCheck(), TimeToEmpty(), and TWICD_ISR().
| #define HOST_ADDR 0x10 |
| #define INTERNAL_CHARGE_CONTROLLER 0x01 |
| #define lobyte 0 |
Definition at line 94 of file bootldr.h.
Referenced by ChargeCheck(), FullChargeReached(), FullDischargeReached(), main(), MasterSMBusCheck(), SMB_CmdInterpreter(), SMBR_BattStatus(), SMBR_ChgCurrent(), SMBR_ChgVoltage(), SMBW_AtRate(), SMBW_BattMode(), SMBW_MfrAccess(), SMBW_RemCapAlm(), SMBW_RemTimeAlm(), and TWI_ISR().
| #define OVER_CHARGED_ALARM 0x80 |
| #define OVER_TEMP_ALARM 0x10 |
| #define PRIMARY_BATTERY 0x02 |
| #define REMAINING_CAPACITY_ALARM 0x02 |
Definition at line 134 of file bootldr.h.
Referenced by AlarmConditionsCheck(), and MasterSMBusCheck().
| #define REMAINING_TIME_ALARM 0x01 |
Definition at line 135 of file bootldr.h.
Referenced by AlarmConditionsCheck(), and MasterSMBusCheck().
| #define SMB_M_CMD_ALARMWARNING 0x16 |
| #define SMB_M_CMD_CHARGINGCURRENT 0x14 |
| #define SMB_M_CMD_CHARGINGVOLTAGE 0x15 |
| #define SMBerr_AccessDenied 0x04 |
Definition at line 152 of file bootldr.h.
Referenced by SMBW_BattMode(), SMBW_Invalid(), and TWI_ISR().
| #define SMBerr_ReservedCommand 0x02 |
Definition at line 147 of file bootldr.h.
Referenced by SMBR_Opt1(), SMBR_Opt2(), SMBR_Opt3(), SMBW_Opt1(), SMBW_Opt2(), and SMBW_Opt3().
| #define SMBerr_UnknownError 0x07 |
| #define SMBerr_UnsuptdCommand 0x03 |
| #define SMBV_AbsSOC 14 |
| #define SMBV_AtRate 4 |
Definition at line 52 of file bootldr.h.
Referenced by AtRateOK(), AtRateTTE(), AtRateTTF(), InitSMBvariables(), SMBR_AtRate(), and SMBW_AtRate().
| #define SMBV_AtRateOK 7 |
| #define SMBV_AtRateTTE 6 |
| #define SMBV_AtRateTTF 5 |
| #define SMBV_AvgCurrent 11 |
| #define SMBV_AvgTTE 18 |
| #define SMBV_AvgTTF 19 |
| #define SMBV_BattMode 3 |
Definition at line 51 of file bootldr.h.
Referenced by AlarmModeDisabledCheck(), AtRateOK(), AtRateTTE(), AtRateTTF(), AvgTimeToFull(), FullChgCap(), InitSMBvariables(), MasterSMBusCheck(), RemainingCap(), SMBR_BattMode(), SMBR_DesignCap(), SMBW_BattMode(), TimeToEmpty(), and TWICD_ISR().
| #define SMBV_BattStatus 22 |
Definition at line 72 of file bootldr.h.
Referenced by AlarmConditionsCheck(), ChargeCheck(), FullChargeReached(), FullDischargeReached(), InitSMBvariables(), main(), MasterSMBusCheck(), SMB_CmdInterpreter(), SMBR_BattStatus(), SMBR_ChgCurrent(), SMBR_ChgVoltage(), SMBW_AtRate(), SMBW_MfrAccess(), SMBW_RemCapAlm(), SMBW_RemTimeAlm(), ThermalCheck(), and TWI_ISR().
| #define SMBV_ChgCurrent 20 |
| #define SMBV_ChgVoltage 21 |
| #define SMBV_Current 10 |
| #define SMBV_CycleCount 23 |
| #define SMBV_DesignCap 24 |
| #define SMBV_DesignVolt 25 |
| #define SMBV_FullChgCap 16 |
| #define SMBV_MaxError 12 |
| #define SMBV_MfrAccess 0 |
Definition at line 48 of file bootldr.h.
Referenced by InitSMBvariables(), SMBR_MfrAccess(), and SMBW_MfrAccess().
| #define SMBV_MfrDate 27 |
| #define SMBV_Opt5 0x2F |
| #define SMBV_RelSOC 13 |
| #define SMBV_RemCap 15 |
| #define SMBV_RemCapAlm 1 |
Definition at line 49 of file bootldr.h.
Referenced by AlarmConditionsCheck(), InitSMBvariables(), SMBR_RemCapAlm(), and SMBW_RemCapAlm().
| #define SMBV_RemTimeAlm 2 |
Definition at line 50 of file bootldr.h.
Referenced by AlarmConditionsCheck(), InitSMBvariables(), SMBR_RemTimeAlm(), and SMBW_RemTimeAlm().
| #define SMBV_RunTTE 17 |
| #define SMBV_SerialNo 28 |
| #define SMBV_SpecInfo 26 |
| #define SMBV_Temperature 8 |
| #define SMBV_Voltage 9 |
| #define SMBvar_int SV.SMBint |
Definition at line 29 of file bootldr.h.
Referenced by AlarmConditionsCheck(), AtRateOK(), AtRateTTE(), AtRateTTF(), InitSMBvariables(), MasterSMBusCheck(), SMBR_AbsSOC(), SMBR_AtRate(), SMBR_AtRateOK(), SMBR_AtRateTTE(), SMBR_AtRateTTF(), SMBR_AvgCurrent(), SMBR_AvgTTE(), SMBR_AvgTTF(), SMBR_BattMode(), SMBR_BattStatus(), SMBR_ChgCurrent(), SMBR_ChgVoltage(), SMBR_Current(), SMBR_CycleCount(), SMBR_DesignCap(), SMBR_DesignVolt(), SMBR_FullChgCap(), SMBR_MaxError(), SMBR_MfrAccess(), SMBR_MfrDate(), SMBR_RelSOC(), SMBR_RemCap(), SMBR_RemCapAlm(), SMBR_RemTimeAlm(), SMBR_RunTTE(), SMBR_SerialNo(), SMBR_SpecInfo(), SMBR_Temperature(), SMBR_Voltage(), SMBW_AtRate(), SMBW_BattMode(), SMBW_MfrAccess(), SMBW_RemCapAlm(), and SMBW_RemTimeAlm().
| #define SMBvariables SV.SMBvar |
Definition at line 28 of file bootldr.h.
Referenced by AlarmConditionsCheck(), AlarmModeDisabledCheck(), AtRateOK(), AtRateTTE(), AtRateTTF(), AvgTimeToFull(), ChargeCheck(), FullChargeReached(), FullChgCap(), FullDischargeReached(), main(), MasterSMBusCheck(), RemainingCap(), SMB_CmdInterpreter(), SMBR_BattStatus(), SMBR_ChgCurrent(), SMBR_ChgVoltage(), SMBR_DesignCap(), SMBW_AtRate(), SMBW_BattMode(), SMBW_MfrAccess(), SMBW_RemCapAlm(), SMBW_RemTimeAlm(), ThermalCheck(), TimeToEmpty(), TWI_ISR(), and TWICD_ISR().
| #define TERMINATE_CHARGE_ALARM 0x40 |
| #define TERMINATE_DISCHARGE_ALARM 0x08 |
| #define TWRX_BLKCNT 2 |
| #define TWRX_CMD 3 |
| #define TWRX_DATA 9 |
| #define TWRX_HIADDR 7 |
| #define TWRX_LOADDR 6 |
| #define TWRX_MEM 4 |
| #define TWRX_OFFSET 5 |
| #define TWRX_SIZE 8 |
1.5.3