Class for maintaining the DBW state.
More...
#include <ssc_interface.hpp>
Class for maintaining the DBW state.
◆ DbwStateMachine()
| ssc_interface::DbwStateMachine::DbwStateMachine |
( |
uint16_t |
dbw_disabled_debounce | ) |
|
|
explicit |
Default constructor.
- Parameters
-
| [in] | dbw_disabled_debounce | If state = ENABLE_SENT and DBW reports DISABLED, debounce this many msgs // NOLINT |
◆ control_cmd_sent()
| void ssc_interface::DbwStateMachine::control_cmd_sent |
( |
| ) |
|
Notifies the state machine that a control command was sent to the DBW system.
◆ dbw_feedback()
| void ssc_interface::DbwStateMachine::dbw_feedback |
( |
bool8_t |
enabled | ) |
|
Notifies the state machine that feedback was received from the DBW system.
- Parameters
-
| [in] | enabled | If true, DBW system reports enabled. If false, DBW system reports disabled |
◆ enabled()
| bool8_t ssc_interface::DbwStateMachine::enabled |
( |
| ) |
const |
Returns true if state is ENABLED, ENABLE_SENT, or ENABLE_REQUESTED with conditions.
◆ get_state()
| DbwState ssc_interface::DbwStateMachine::get_state |
( |
| ) |
const |
Returns current internal state.
- Returns
- A DbwState object representing the current state
◆ state_cmd_sent()
| void ssc_interface::DbwStateMachine::state_cmd_sent |
( |
| ) |
|
Notifies the state machine that a state command was sent to the DBW system.
◆ user_request()
| void ssc_interface::DbwStateMachine::user_request |
( |
bool8_t |
enable | ) |
|
The user has requested the DBW system to enable (true) or disable (false)
- Parameters
-
| [in] | enable | If true, request enable. If false, request disable |
The documentation for this class was generated from the following files: