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

#include <state_machine_test.h>

Collaboration diagram for DrivetrainMock:
Collaboration graph

Public Member Functions

void command_drivetrain_no_torque ()
 
bool handle_inverter_startup (unsigned long cm)
 
bool inverter_init_timeout (unsigned long curr_time)
 
bool hv_over_threshold_on_drivetrain ()
 
void disable ()
 
bool drivetrain_error_occured ()
 
void command_drivetrain (const DrivetrainCommand_s &data)
 
void disable_no_pins ()
 

Public Attributes

bool drivetrain_inited_
 
bool hv_thresh_
 
bool drivetrain_error_
 

Detailed Description

Definition at line 12 of file state_machine_test.h.

Member Function Documentation

◆ command_drivetrain()

void DrivetrainMock::command_drivetrain ( const DrivetrainCommand_s data)
inline

Definition at line 30 of file state_machine_test.h.

30{};

◆ command_drivetrain_no_torque()

void DrivetrainMock::command_drivetrain_no_torque ( )
inline
Parameters
curr_timecurrent system tick time (millis()) that sets the init phase start time

Definition at line 20 of file state_machine_test.h.

20{};

◆ disable()

void DrivetrainMock::disable ( )
inline

Definition at line 27 of file state_machine_test.h.

27{};

◆ disable_no_pins()

void DrivetrainMock::disable_no_pins ( )
inline

Definition at line 31 of file state_machine_test.h.

31{};

◆ drivetrain_error_occured()

bool DrivetrainMock::drivetrain_error_occured ( )
inline

Definition at line 28 of file state_machine_test.h.

28{ return drivetrain_error_; };

◆ handle_inverter_startup()

bool DrivetrainMock::handle_inverter_startup ( unsigned long  cm)
inline

Definition at line 22 of file state_machine_test.h.

22{ return drivetrain_inited_; };

◆ hv_over_threshold_on_drivetrain()

bool DrivetrainMock::hv_over_threshold_on_drivetrain ( )
inline

Definition at line 26 of file state_machine_test.h.

26{ return hv_thresh_; };

◆ inverter_init_timeout()

bool DrivetrainMock::inverter_init_timeout ( unsigned long  curr_time)
inline

Definition at line 24 of file state_machine_test.h.

24{};

Member Data Documentation

◆ drivetrain_error_

bool DrivetrainMock::drivetrain_error_

Definition at line 17 of file state_machine_test.h.

◆ drivetrain_inited_

bool DrivetrainMock::drivetrain_inited_

Definition at line 15 of file state_machine_test.h.

◆ hv_thresh_

bool DrivetrainMock::hv_thresh_

Definition at line 16 of file state_machine_test.h.


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