mirror of
https://github.com/Dev-KATECH/ADM.git
synced 2026-06-10 16:24:11 +09:00
431 lines
12 KiB
Plaintext
431 lines
12 KiB
Plaintext
|
|
Marking local functions:
|
|
|
|
|
|
Marking externally visible functions: ACU_Motor_Logic RC_Motor_Logic Motor_init
|
|
|
|
|
|
Marking externally visible variables: Motor_Tunning
|
|
|
|
|
|
Reclaiming functions:
|
|
Reclaiming variables:
|
|
Clearing address taken flags:
|
|
Symbol table:
|
|
|
|
GV_ACU_Vx_Command/25 (GV_ACU_Vx_Command) @06b50b40
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: ACU_Motor_Logic/3 (read)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_ACU_Drive_ACC_Cmd/24 (GV_ACU_Drive_ACC_Cmd) @06b50af8
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: ACU_Motor_Logic/3 (read)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_ACU_long_Ctl_mode/23 (GV_VCU_ACU_long_Ctl_mode) @06b50ab0
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: ACU_Motor_Logic/3 (read)ACU_Motor_Logic/3 (read)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_RC_Vx_Command/22 (GV_RC_Vx_Command) @06b506c0
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: RC_Motor_Logic/2 (read)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_TrqCmd/21 (GV_VCU_TrqCmd) @06b50678
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: RC_Motor_Logic/2 (write)RC_Motor_Logic/2 (write)ACU_Motor_Logic/3 (write)ACU_Motor_Logic/3 (write)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_RC_Drive_ACC_Cmd/20 (GV_RC_Drive_ACC_Cmd) @06b50630
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: RC_Motor_Logic/2 (read)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_RC_long_Ctl_mode/19 (GV_VCU_RC_long_Ctl_mode) @06b505e8
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: RC_Motor_Logic/2 (read)RC_Motor_Logic/2 (read)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_Drive_Mode/18 (GV_VCU_Drive_Mode) @06b505a0
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: RC_Motor_Logic/2 (read)ACU_Motor_Logic/3 (read)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_NegTrqLimit/17 (GV_VCU_NegTrqLimit) @06b50168
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: Motor_init/0 (write)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_PosTrqLimit/16 (GV_VCU_PosTrqLimit) @06b50120
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: Motor_init/0 (write)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_BMS_HVOn_STA/15 (GV_BMS_HVOn_STA) @06b500d8
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: Motor_init/0 (read)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_ACU_BMS_FltSta/14 (GV_ACU_BMS_FltSta) @06b50090
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: Motor_init/0 (read)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_TorqueContol/13 (GV_VCU_TorqueContol) @06b50048
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: Motor_init/0 (write)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_Ready/12 (GV_VCU_Ready) @06b50000
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: Motor_init/0 (write)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_ControlMode/11 (GV_VCU_ControlMode) @06b25f78
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: Motor_init/0 (write)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_PwrEnable/10 (GV_VCU_PwrEnable) @06b25f30
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: Motor_init/0 (write)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_BmsHvSt/9 (GV_VCU_BmsHvSt) @06b25ee8
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: Motor_init/0 (read)Motor_init/0 (write)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_BmsFlt/8 (GV_VCU_BmsFlt) @06b25ea0
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: Motor_init/0 (read)Motor_init/0 (write)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_EPAM_Park_Request_to_EPC/7 (GV_VCU_EPAM_Park_Request_to_EPC) @06b25e58
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: Motor_init/0 (write)Motor_init/0 (write)Motor_init/0 (write)Motor_init/0 (write)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_MtrDir/6 (GV_VCU_MtrDir) @06b25e10
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: Motor_init/0 (write)Motor_init/0 (write)Motor_init/0 (write)Motor_init/0 (write)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_GearCmd/5 (GV_VCU_GearCmd) @06b25dc8
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: Motor_init/0 (write)Motor_init/0 (write)Motor_init/0 (write)Motor_init/0 (write)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
GV_VCU_GearSelStat/4 (GV_VCU_GearSelStat) @06b25d80
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: Motor_init/0 (read)Motor_init/0 (read)Motor_init/0 (read)Motor_init/0 (read)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
ACU_Motor_Logic/3 (ACU_Motor_Logic) @06b28c40
|
|
Type: function definition analyzed
|
|
Visibility: externally_visible public
|
|
References: GV_VCU_Drive_Mode/18 (read)GV_VCU_ACU_long_Ctl_mode/23 (read)GV_ACU_Drive_ACC_Cmd/24 (read)GV_VCU_TrqCmd/21 (write)GV_VCU_ACU_long_Ctl_mode/23 (read)GV_ACU_Vx_Command/25 (read)GV_VCU_TrqCmd/21 (write)
|
|
Referring:
|
|
Availability: available
|
|
Function flags: body optimize_size
|
|
Called by:
|
|
Calls:
|
|
RC_Motor_Logic/2 (RC_Motor_Logic) @06b289a0
|
|
Type: function definition analyzed
|
|
Visibility: externally_visible public
|
|
References: GV_VCU_Drive_Mode/18 (read)GV_VCU_RC_long_Ctl_mode/19 (read)GV_RC_Drive_ACC_Cmd/20 (read)GV_VCU_TrqCmd/21 (write)GV_VCU_RC_long_Ctl_mode/19 (read)GV_RC_Vx_Command/22 (read)Motor_Tunning/1 (read)GV_VCU_TrqCmd/21 (write)
|
|
Referring:
|
|
Availability: available
|
|
Function flags: body optimize_size
|
|
Called by:
|
|
Calls:
|
|
Motor_Tunning/1 (Motor_Tunning) @06b254c8
|
|
Type: variable definition analyzed
|
|
Visibility: externally_visible public
|
|
References:
|
|
Referring: RC_Motor_Logic/2 (read)
|
|
Availability: available
|
|
Varpool flags: initialized
|
|
Motor_init/0 (Motor_init) @06b28620
|
|
Type: function definition analyzed
|
|
Visibility: externally_visible public
|
|
References: GV_VCU_GearSelStat/4 (read)GV_VCU_GearCmd/5 (write)GV_VCU_MtrDir/6 (write)GV_VCU_EPAM_Park_Request_to_EPC/7 (write)GV_VCU_GearSelStat/4 (read)GV_VCU_GearCmd/5 (write)GV_VCU_MtrDir/6 (write)GV_VCU_EPAM_Park_Request_to_EPC/7 (write)GV_VCU_GearSelStat/4 (read)GV_VCU_GearCmd/5 (write)GV_VCU_MtrDir/6 (write)GV_VCU_EPAM_Park_Request_to_EPC/7 (write)GV_VCU_GearSelStat/4 (read)GV_VCU_GearCmd/5 (write)GV_VCU_MtrDir/6 (write)GV_VCU_EPAM_Park_Request_to_EPC/7 (write)GV_VCU_BmsFlt/8 (read)GV_VCU_BmsHvSt/9 (read)GV_VCU_PwrEnable/10 (write)GV_VCU_ControlMode/11 (write)GV_VCU_Ready/12 (write)GV_VCU_TorqueContol/13 (write)GV_ACU_BMS_FltSta/14 (read)GV_VCU_BmsFlt/8 (write)GV_BMS_HVOn_STA/15 (read)GV_VCU_BmsHvSt/9 (write)GV_VCU_PosTrqLimit/16 (write)GV_VCU_NegTrqLimit/17 (write)
|
|
Referring:
|
|
Availability: available
|
|
Function flags: body optimize_size
|
|
Called by:
|
|
Calls:
|
|
ACU_Motor_Logic ()
|
|
{
|
|
<bb 2> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_Drive_Mode.14_1 = GV_VCU_Drive_Mode;
|
|
if (GV_VCU_Drive_Mode.14_1 == 0)
|
|
goto <bb 3>; [INV]
|
|
else
|
|
goto <bb 7>; [INV]
|
|
|
|
<bb 3> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_ACU_long_Ctl_mode.15_2 = GV_VCU_ACU_long_Ctl_mode;
|
|
if (GV_VCU_ACU_long_Ctl_mode.15_2 == 1)
|
|
goto <bb 4>; [INV]
|
|
else
|
|
goto <bb 5>; [INV]
|
|
|
|
<bb 4> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_ACU_Drive_ACC_Cmd.16_3 = GV_ACU_Drive_ACC_Cmd;
|
|
_4 = GV_ACU_Drive_ACC_Cmd.16_3 * 1.0e+1;
|
|
GV_VCU_TrqCmd = _4;
|
|
goto <bb 7>; [INV]
|
|
|
|
<bb 5> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_ACU_long_Ctl_mode.17_5 = GV_VCU_ACU_long_Ctl_mode;
|
|
if (GV_VCU_ACU_long_Ctl_mode.17_5 == 0)
|
|
goto <bb 6>; [INV]
|
|
else
|
|
goto <bb 7>; [INV]
|
|
|
|
<bb 6> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_ACU_Vx_Command.18_6 = GV_ACU_Vx_Command;
|
|
_7 = GV_ACU_Vx_Command.18_6 / 5;
|
|
_8 = (float) _7;
|
|
GV_VCU_TrqCmd = _8;
|
|
|
|
<bb 7> :
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
RC_Motor_Logic ()
|
|
{
|
|
<bb 2> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_Drive_Mode.8_1 = GV_VCU_Drive_Mode;
|
|
if (GV_VCU_Drive_Mode.8_1 == 1)
|
|
goto <bb 3>; [INV]
|
|
else
|
|
goto <bb 7>; [INV]
|
|
|
|
<bb 3> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_RC_long_Ctl_mode.9_2 = GV_VCU_RC_long_Ctl_mode;
|
|
if (GV_VCU_RC_long_Ctl_mode.9_2 == 1)
|
|
goto <bb 4>; [INV]
|
|
else
|
|
goto <bb 5>; [INV]
|
|
|
|
<bb 4> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_RC_Drive_ACC_Cmd.10_3 = GV_RC_Drive_ACC_Cmd;
|
|
_4 = GV_RC_Drive_ACC_Cmd.10_3 * 10;
|
|
_5 = (float) _4;
|
|
GV_VCU_TrqCmd = _5;
|
|
goto <bb 7>; [INV]
|
|
|
|
<bb 5> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_RC_long_Ctl_mode.11_6 = GV_VCU_RC_long_Ctl_mode;
|
|
if (GV_VCU_RC_long_Ctl_mode.11_6 == 0)
|
|
goto <bb 6>; [INV]
|
|
else
|
|
goto <bb 7>; [INV]
|
|
|
|
<bb 6> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_RC_Vx_Command.12_7 = GV_RC_Vx_Command;
|
|
_8 = (float) GV_RC_Vx_Command.12_7;
|
|
Motor_Tunning.13_9 = Motor_Tunning;
|
|
_10 = _8 * Motor_Tunning.13_9;
|
|
GV_VCU_TrqCmd = _10;
|
|
|
|
<bb 7> :
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
Motor_init ()
|
|
{
|
|
<bb 2> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_GearSelStat.0_1 = GV_VCU_GearSelStat;
|
|
if (GV_VCU_GearSelStat.0_1 == 0)
|
|
goto <bb 3>; [INV]
|
|
else
|
|
goto <bb 4>; [INV]
|
|
|
|
<bb 3> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_GearCmd = 7;
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_MtrDir = 0;
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_EPAM_Park_Request_to_EPC = 1;
|
|
goto <bb 10>; [INV]
|
|
|
|
<bb 4> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_GearSelStat.1_2 = GV_VCU_GearSelStat;
|
|
if (GV_VCU_GearSelStat.1_2 == 1)
|
|
goto <bb 5>; [INV]
|
|
else
|
|
goto <bb 6>; [INV]
|
|
|
|
<bb 5> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_GearCmd = 2;
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_MtrDir = 2;
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_EPAM_Park_Request_to_EPC = 2;
|
|
goto <bb 10>; [INV]
|
|
|
|
<bb 6> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_GearSelStat.2_3 = GV_VCU_GearSelStat;
|
|
if (GV_VCU_GearSelStat.2_3 == 2)
|
|
goto <bb 7>; [INV]
|
|
else
|
|
goto <bb 8>; [INV]
|
|
|
|
<bb 7> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_GearCmd = 3;
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_MtrDir = 0;
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_EPAM_Park_Request_to_EPC = 2;
|
|
goto <bb 10>; [INV]
|
|
|
|
<bb 8> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_GearSelStat.3_4 = GV_VCU_GearSelStat;
|
|
if (GV_VCU_GearSelStat.3_4 == 3)
|
|
goto <bb 9>; [INV]
|
|
else
|
|
goto <bb 10>; [INV]
|
|
|
|
<bb 9> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_GearCmd = 4;
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_MtrDir = 1;
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_EPAM_Park_Request_to_EPC = 2;
|
|
|
|
<bb 10> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_BmsFlt.4_5 = GV_VCU_BmsFlt;
|
|
if (GV_VCU_BmsFlt.4_5 == 0)
|
|
goto <bb 11>; [INV]
|
|
else
|
|
goto <bb 13>; [INV]
|
|
|
|
<bb 11> :
|
|
GV_VCU_BmsHvSt.5_6 = GV_VCU_BmsHvSt;
|
|
if (GV_VCU_BmsHvSt.5_6 == 1)
|
|
goto <bb 12>; [INV]
|
|
else
|
|
goto <bb 13>; [INV]
|
|
|
|
<bb 12> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_PwrEnable = 1;
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_ControlMode = 1;
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_Ready = 1;
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_TorqueContol = 1;
|
|
|
|
<bb 13> :
|
|
# DEBUG BEGIN_STMT
|
|
GV_ACU_BMS_FltSta.6_7 = GV_ACU_BMS_FltSta;
|
|
GV_VCU_BmsFlt = GV_ACU_BMS_FltSta.6_7;
|
|
# DEBUG BEGIN_STMT
|
|
GV_BMS_HVOn_STA.7_8 = GV_BMS_HVOn_STA;
|
|
_9 = (long unsigned int) GV_BMS_HVOn_STA.7_8;
|
|
GV_VCU_BmsHvSt = _9;
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_PosTrqLimit = 80;
|
|
# DEBUG BEGIN_STMT
|
|
GV_VCU_NegTrqLimit = -5.0e+1;
|
|
return;
|
|
|
|
}
|
|
|
|
|