ADM/GW/Debug_FLASH/src/MCU/Motor_logic.c.016i.visibility
2024-08-29 20:37:25 +09:00

423 lines
12 KiB
Plaintext

Marking local functions:
Marking externally visible functions: ACU_Motor_Logic RC_Motor_Logic Motor_init
Marking externally visible variables:
Reclaiming functions:
Reclaiming variables:
Clearing address taken flags:
Symbol table:
GV_ACU_Vx_Command/24 (GV_ACU_Vx_Command) @06b6fa68
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: ACU_Motor_Logic/2 (read)
Availability: not_available
Varpool flags:
GV_ACU_Drive_ACC_Cmd/23 (GV_ACU_Drive_ACC_Cmd) @06b6fa20
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: ACU_Motor_Logic/2 (read)
Availability: not_available
Varpool flags:
GV_VCU_ACU_long_Ctl_mode/22 (GV_VCU_ACU_long_Ctl_mode) @06b6f9d8
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: ACU_Motor_Logic/2 (read)ACU_Motor_Logic/2 (read)
Availability: not_available
Varpool flags:
GV_RC_Vx_Command/21 (GV_RC_Vx_Command) @06b6f5e8
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: RC_Motor_Logic/1 (read)
Availability: not_available
Varpool flags:
GV_VCU_TrqCmd/20 (GV_VCU_TrqCmd) @06b6f5a0
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: RC_Motor_Logic/1 (write)RC_Motor_Logic/1 (write)ACU_Motor_Logic/2 (write)ACU_Motor_Logic/2 (write)
Availability: not_available
Varpool flags:
GV_RC_Drive_ACC_Cmd/19 (GV_RC_Drive_ACC_Cmd) @06b6f558
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: RC_Motor_Logic/1 (read)
Availability: not_available
Varpool flags:
GV_VCU_RC_long_Ctl_mode/18 (GV_VCU_RC_long_Ctl_mode) @06b6f510
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: RC_Motor_Logic/1 (read)RC_Motor_Logic/1 (read)
Availability: not_available
Varpool flags:
GV_VCU_Drive_Mode/17 (GV_VCU_Drive_Mode) @06b6f4c8
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: RC_Motor_Logic/1 (read)ACU_Motor_Logic/2 (read)
Availability: not_available
Varpool flags:
GV_VCU_NegTrqLimit/16 (GV_VCU_NegTrqLimit) @06b6f0d8
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/15 (GV_VCU_PosTrqLimit) @06b6f090
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/14 (GV_BMS_HVOn_STA) @06b6f048
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/13 (GV_ACU_BMS_FltSta) @06b6f000
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/12 (GV_VCU_TorqueContol) @06b44f78
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/11 (GV_VCU_Ready) @06b44f30
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/10 (GV_VCU_ControlMode) @06b44ee8
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/9 (GV_VCU_PwrEnable) @06b44ea0
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/8 (GV_VCU_BmsHvSt) @06b44e58
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/7 (GV_VCU_BmsFlt) @06b44e10
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/6 (GV_VCU_EPAM_Park_Request_to_EPC) @06b44dc8
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/5 (GV_VCU_MtrDir) @06b44d80
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/4 (GV_VCU_GearCmd) @06b44d38
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/3 (GV_VCU_GearSelStat) @06b44cf0
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/2 (ACU_Motor_Logic) @06b47b60
Type: function definition analyzed
Visibility: externally_visible public
References: GV_VCU_Drive_Mode/17 (read)GV_VCU_ACU_long_Ctl_mode/22 (read)GV_ACU_Drive_ACC_Cmd/23 (read)GV_VCU_TrqCmd/20 (write)GV_VCU_ACU_long_Ctl_mode/22 (read)GV_ACU_Vx_Command/24 (read)GV_VCU_TrqCmd/20 (write)
Referring:
Availability: available
Function flags: body optimize_size
Called by:
Calls:
RC_Motor_Logic/1 (RC_Motor_Logic) @06b478c0
Type: function definition analyzed
Visibility: externally_visible public
References: GV_VCU_Drive_Mode/17 (read)GV_VCU_RC_long_Ctl_mode/18 (read)GV_RC_Drive_ACC_Cmd/19 (read)GV_VCU_TrqCmd/20 (write)GV_VCU_RC_long_Ctl_mode/18 (read)GV_RC_Vx_Command/21 (read)GV_VCU_TrqCmd/20 (write)
Referring:
Availability: available
Function flags: body optimize_size
Called by:
Calls:
Motor_init/0 (Motor_init) @06b47620
Type: function definition analyzed
Visibility: externally_visible public
References: GV_VCU_GearSelStat/3 (read)GV_VCU_GearCmd/4 (write)GV_VCU_MtrDir/5 (write)GV_VCU_EPAM_Park_Request_to_EPC/6 (write)GV_VCU_GearSelStat/3 (read)GV_VCU_GearCmd/4 (write)GV_VCU_MtrDir/5 (write)GV_VCU_EPAM_Park_Request_to_EPC/6 (write)GV_VCU_GearSelStat/3 (read)GV_VCU_GearCmd/4 (write)GV_VCU_MtrDir/5 (write)GV_VCU_EPAM_Park_Request_to_EPC/6 (write)GV_VCU_GearSelStat/3 (read)GV_VCU_GearCmd/4 (write)GV_VCU_MtrDir/5 (write)GV_VCU_EPAM_Park_Request_to_EPC/6 (write)GV_VCU_BmsFlt/7 (read)GV_VCU_BmsHvSt/8 (read)GV_VCU_PwrEnable/9 (write)GV_VCU_ControlMode/10 (write)GV_VCU_Ready/11 (write)GV_VCU_TorqueContol/12 (write)GV_ACU_BMS_FltSta/13 (read)GV_VCU_BmsFlt/7 (write)GV_BMS_HVOn_STA/14 (read)GV_VCU_BmsHvSt/8 (write)GV_VCU_PosTrqLimit/15 (write)GV_VCU_NegTrqLimit/16 (write)
Referring:
Availability: available
Function flags: body optimize_size
Called by:
Calls:
ACU_Motor_Logic ()
{
<bb 2> :
# DEBUG BEGIN_STMT
GV_VCU_Drive_Mode.13_1 = GV_VCU_Drive_Mode;
if (GV_VCU_Drive_Mode.13_1 == 0)
goto <bb 3>; [INV]
else
goto <bb 7>; [INV]
<bb 3> :
# DEBUG BEGIN_STMT
GV_VCU_ACU_long_Ctl_mode.14_2 = GV_VCU_ACU_long_Ctl_mode;
if (GV_VCU_ACU_long_Ctl_mode.14_2 == 1)
goto <bb 4>; [INV]
else
goto <bb 5>; [INV]
<bb 4> :
# DEBUG BEGIN_STMT
GV_ACU_Drive_ACC_Cmd.15_3 = GV_ACU_Drive_ACC_Cmd;
_4 = GV_ACU_Drive_ACC_Cmd.15_3 * 1.0e+1;
GV_VCU_TrqCmd = _4;
goto <bb 7>; [INV]
<bb 5> :
# DEBUG BEGIN_STMT
GV_VCU_ACU_long_Ctl_mode.16_5 = GV_VCU_ACU_long_Ctl_mode;
if (GV_VCU_ACU_long_Ctl_mode.16_5 == 0)
goto <bb 6>; [INV]
else
goto <bb 7>; [INV]
<bb 6> :
# DEBUG BEGIN_STMT
GV_ACU_Vx_Command.17_6 = GV_ACU_Vx_Command;
_7 = GV_ACU_Vx_Command.17_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 = GV_RC_Vx_Command.12_7 / 2;
_9 = (float) _8;
GV_VCU_TrqCmd = _9;
<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 = 30;
# DEBUG BEGIN_STMT
GV_VCU_NegTrqLimit = -1.5e+1;
return;
}