MCU
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
InverterMock Class Reference

#include <drivetrain_system_test.h>

Collaboration diagram for InverterMock:
Collaboration graph

Public Member Functions

 InverterMock ()
 
void request_enable_hv ()
 
void request_enable_inverter ()
 
void command_no_torque ()
 
void command_reset ()
 
void handle_command (const InverterCommand &cmd)
 
void disable ()
 
bool error ()
 
bool inverter_system_ready ()
 
uint16_t dc_bus_voltage ()
 
bool dc_quit_on ()
 
bool get_quit_dc_on ()
 
bool get_quit_inverter_on ()
 

Public Attributes

int request_enable_hv_count_ = 0
 
int request_enable_inverter_count_ = 0
 
float torque_setpoint_nm_ = 0
 
float speed_setpoint_rpm_ = 0
 
int cmd_no_t_count_ = 0
 
int cmd_reset_count_ = 0
 
int cmd_general_count_ = 0
 
int cmd_disable_count_ = 0
 
bool error_
 
bool system_ready_
 
bool dc_quit_on_
 
bool quit_inverter_on_
 
uint16_t voltage_
 

Detailed Description

Definition at line 12 of file drivetrain_system_test.h.

Constructor & Destructor Documentation

◆ InverterMock()

InverterMock::InverterMock ( )
inline

Definition at line 25 of file drivetrain_system_test.h.

Member Function Documentation

◆ command_no_torque()

void InverterMock::command_no_torque ( )
inline

Definition at line 55 of file drivetrain_system_test.h.

◆ command_reset()

void InverterMock::command_reset ( )
inline

Definition at line 56 of file drivetrain_system_test.h.

56 {
58 error_ = false; };

◆ dc_bus_voltage()

uint16_t InverterMock::dc_bus_voltage ( )
inline

Definition at line 72 of file drivetrain_system_test.h.

72{ return voltage_; };

◆ dc_quit_on()

bool InverterMock::dc_quit_on ( )
inline

Definition at line 73 of file drivetrain_system_test.h.

73{ return dc_quit_on_; }

◆ disable()

void InverterMock::disable ( )
inline

Definition at line 65 of file drivetrain_system_test.h.

65 {
67 }

◆ error()

bool InverterMock::error ( )
inline

Definition at line 69 of file drivetrain_system_test.h.

69{ return error_; };

◆ get_quit_dc_on()

bool InverterMock::get_quit_dc_on ( )
inline

Definition at line 74 of file drivetrain_system_test.h.

74{ return dc_quit_on_; }

◆ get_quit_inverter_on()

bool InverterMock::get_quit_inverter_on ( )
inline

Definition at line 75 of file drivetrain_system_test.h.

75{ return quit_inverter_on_; }

◆ handle_command()

void InverterMock::handle_command ( const InverterCommand cmd)
inline

◆ inverter_system_ready()

bool InverterMock::inverter_system_ready ( )
inline

Definition at line 70 of file drivetrain_system_test.h.

70{ return system_ready_; };

◆ request_enable_hv()

void InverterMock::request_enable_hv ( )
inline

Definition at line 41 of file drivetrain_system_test.h.

42 {
44 dc_quit_on_ = true;
45 };

◆ request_enable_inverter()

void InverterMock::request_enable_inverter ( )
inline

Definition at line 47 of file drivetrain_system_test.h.

48 {
49
51 quit_inverter_on_ = true;
52 };

Member Data Documentation

◆ cmd_disable_count_

int InverterMock::cmd_disable_count_ = 0

Definition at line 23 of file drivetrain_system_test.h.

◆ cmd_general_count_

int InverterMock::cmd_general_count_ = 0

Definition at line 22 of file drivetrain_system_test.h.

◆ cmd_no_t_count_

int InverterMock::cmd_no_t_count_ = 0

Definition at line 20 of file drivetrain_system_test.h.

◆ cmd_reset_count_

int InverterMock::cmd_reset_count_ = 0

Definition at line 21 of file drivetrain_system_test.h.

◆ dc_quit_on_

bool InverterMock::dc_quit_on_

Definition at line 36 of file drivetrain_system_test.h.

◆ error_

bool InverterMock::error_

Definition at line 36 of file drivetrain_system_test.h.

◆ quit_inverter_on_

bool InverterMock::quit_inverter_on_

Definition at line 36 of file drivetrain_system_test.h.

◆ request_enable_hv_count_

int InverterMock::request_enable_hv_count_ = 0

Definition at line 15 of file drivetrain_system_test.h.

◆ request_enable_inverter_count_

int InverterMock::request_enable_inverter_count_ = 0

Definition at line 16 of file drivetrain_system_test.h.

◆ speed_setpoint_rpm_

float InverterMock::speed_setpoint_rpm_ = 0

Definition at line 18 of file drivetrain_system_test.h.

◆ system_ready_

bool InverterMock::system_ready_

Definition at line 36 of file drivetrain_system_test.h.

◆ torque_setpoint_nm_

float InverterMock::torque_setpoint_nm_ = 0

Definition at line 17 of file drivetrain_system_test.h.

◆ voltage_

uint16_t InverterMock::voltage_

Definition at line 37 of file drivetrain_system_test.h.


The documentation for this class was generated from the following file: