AgIsoStack++
A control-function-focused implementation of the major ISOBUS and J1939 protocols
|
Stores information sent/received in a maintain power message. More...
#include <isobus_maintain_power_interface.hpp>
Public Types | |
enum class | ImplementInWorkState : std::uint8_t { ImplementNotInWorkState = 0 , ImplementInWorkState = 1 , ErrorIndication = 2 , NotAvailable = 3 } |
Signal that indicates that an implement is connected to a tractor or power unit and is in work state. More... | |
enum class | ImplementReadyToWorkState { ImplementNotReadyForFieldWork = 0 , ImplementReadyForFieldWork = 1 , ErrorIndication = 2 , NotAvailable = 3 } |
Signal that indicates that an implement is connected to a tractor or power unit and is ready for work. More... | |
enum class | ImplementParkState { ImplementMayNotBeDisconnected = 0 , ImplementMayBeDisconnected = 1 , ErrorIndication = 2 , NotAvailable = 3 } |
Indicates the state of an implement where it may be disconnected from a tractor or power unit. More... | |
enum class | ImplementTransportState { ImplementMayNotBeTransported = 0 , ImplementMayBeTransported = 1 , ErrorIndication = 2 , NotAvailable = 3 } |
Indicates the transport state of an implement connected to a tractor or power unit. More... | |
enum class | MaintainActuatorPower { NoFurtherRequirementForPWR = 0 , RequirementFor2SecondsMoreForPWR = 1 , Reserved = 2 , DontCare = 3 } |
Enumerates the different states that can be requested in the "Maintain Actuator Power" SPN. More... | |
enum class | MaintainECUPower { NoFurtherRequirementForECU_PWR = 0 , RequirementFor2SecondsMoreForECU_PWR = 1 , Reserved = 2 , DontCare = 3 } |
Enumerates the different states that can be requested in the "Maintain ECU Power" SPN. More... | |
Public Member Functions | |
MaintainPowerData (std::shared_ptr< ControlFunction > sendingControlFunction) | |
Constructor for a MaintainPowerData object, which stores information sent/received in a maintain power message. | |
bool | set_implement_in_work_state (ImplementInWorkState inWorkState) |
Sets the reported implement in-work state. | |
ImplementInWorkState | get_implement_in_work_state () const |
Returns the reported implement in-work state. | |
bool | set_implement_ready_to_work_state (ImplementReadyToWorkState readyToWorkState) |
Sets the reported implement ready to work state. | |
ImplementReadyToWorkState | get_implement_ready_to_work_state () const |
Returns the reported implement ready to work state. | |
bool | set_implement_park_state (ImplementParkState parkState) |
Sets the reported implement park state. | |
ImplementParkState | get_implement_park_state () const |
Returns the reported implement park state. | |
bool | set_implement_transport_state (ImplementTransportState transportState) |
Sets the reported implement transport state. | |
ImplementTransportState | get_implement_transport_state () const |
Returns the reported implement transport state. | |
bool | set_maintain_actuator_power (MaintainActuatorPower maintainState) |
Sets the reported maintain actuator power state. | |
MaintainActuatorPower | get_maintain_actuator_power () const |
Returns the reported maintain actuator power state. | |
bool | set_maintain_ecu_power (MaintainECUPower maintainState) |
Sets the reported maintain ECU power state. | |
MaintainECUPower | get_maintain_ecu_power () const |
Returns the reported maintain ECU power state. | |
std::shared_ptr< ControlFunction > | get_sender_control_function () const |
Returns a pointer to the sender of the message. If an ICF is the sender, returns the ICF being used to transmit from. | |
void | set_timestamp_ms (std::uint32_t timestamp) |
Sets the timestamp for when the message was received or sent. | |
std::uint32_t | get_timestamp_ms () const |
Returns the timestamp for when the message was received, in milliseconds. | |
Private Attributes | |
std::shared_ptr< ControlFunction > | sendingControlFunction = nullptr |
The control function that is sending the message. | |
std::uint32_t | timestamp_ms = 0 |
A timestamp for when the message was released in milliseconds. | |
ImplementInWorkState | currentImplementInWorkState = ImplementInWorkState::NotAvailable |
The reported implement in-work state. | |
ImplementReadyToWorkState | currentImplementReadyToWorkState = ImplementReadyToWorkState::NotAvailable |
The reported implement ready to work state. | |
ImplementParkState | currentImplementParkState = ImplementParkState::NotAvailable |
The reported implement park state. | |
ImplementTransportState | currentImplementTransportState = ImplementTransportState::NotAvailable |
The reported transport state of the implement. | |
MaintainActuatorPower | currentMaintainActuatorPowerState = MaintainActuatorPower::DontCare |
The reported state for maintaining actuator power for 2 more seconds. | |
MaintainECUPower | currentMaintainECUPowerState = MaintainECUPower::DontCare |
The reported state for maintaining ECU power for 2 more seconds. | |
Stores information sent/received in a maintain power message.
Definition at line 33 of file isobus_maintain_power_interface.hpp.
|
strong |
Signal that indicates that an implement is connected to a tractor or power unit and is in work state.
SPN 7447
Definition at line 38 of file isobus_maintain_power_interface.hpp.
|
strong |
Indicates the state of an implement where it may be disconnected from a tractor or power unit.
SPN 1870
Definition at line 58 of file isobus_maintain_power_interface.hpp.
Signal that indicates that an implement is connected to a tractor or power unit and is ready for work.
SPN 1871
Definition at line 48 of file isobus_maintain_power_interface.hpp.
Indicates the transport state of an implement connected to a tractor or power unit.
SPN 1869
Definition at line 68 of file isobus_maintain_power_interface.hpp.
|
strong |
Enumerates the different states that can be requested in the "Maintain Actuator Power" SPN.
SPN 1868
Definition at line 78 of file isobus_maintain_power_interface.hpp.
|
strong |
Enumerates the different states that can be requested in the "Maintain ECU Power" SPN.
SPN 1867
Definition at line 88 of file isobus_maintain_power_interface.hpp.
|
explicit |
Constructor for a MaintainPowerData object, which stores information sent/received in a maintain power message.
[in] | sendingControlFunction | The control function to use if sending the message |
Definition at line 64 of file isobus_maintain_power_interface.cpp.
MaintainPowerInterface::MaintainPowerData::ImplementInWorkState isobus::MaintainPowerInterface::MaintainPowerData::get_implement_in_work_state | ( | ) | const |
Returns the reported implement in-work state.
Definition at line 76 of file isobus_maintain_power_interface.cpp.
MaintainPowerInterface::MaintainPowerData::ImplementParkState isobus::MaintainPowerInterface::MaintainPowerData::get_implement_park_state | ( | ) | const |
Returns the reported implement park state.
Definition at line 100 of file isobus_maintain_power_interface.cpp.
MaintainPowerInterface::MaintainPowerData::ImplementReadyToWorkState isobus::MaintainPowerInterface::MaintainPowerData::get_implement_ready_to_work_state | ( | ) | const |
Returns the reported implement ready to work state.
Definition at line 88 of file isobus_maintain_power_interface.cpp.
MaintainPowerInterface::MaintainPowerData::ImplementTransportState isobus::MaintainPowerInterface::MaintainPowerData::get_implement_transport_state | ( | ) | const |
Returns the reported implement transport state.
Definition at line 112 of file isobus_maintain_power_interface.cpp.
MaintainPowerInterface::MaintainPowerData::MaintainActuatorPower isobus::MaintainPowerInterface::MaintainPowerData::get_maintain_actuator_power | ( | ) | const |
Returns the reported maintain actuator power state.
Definition at line 124 of file isobus_maintain_power_interface.cpp.
MaintainPowerInterface::MaintainPowerData::MaintainECUPower isobus::MaintainPowerInterface::MaintainPowerData::get_maintain_ecu_power | ( | ) | const |
Returns the reported maintain ECU power state.
Definition at line 136 of file isobus_maintain_power_interface.cpp.
std::shared_ptr< ControlFunction > isobus::MaintainPowerInterface::MaintainPowerData::get_sender_control_function | ( | ) | const |
Returns a pointer to the sender of the message. If an ICF is the sender, returns the ICF being used to transmit from.
Definition at line 141 of file isobus_maintain_power_interface.cpp.
std::uint32_t isobus::MaintainPowerInterface::MaintainPowerData::get_timestamp_ms | ( | ) | const |
Returns the timestamp for when the message was received, in milliseconds.
Definition at line 151 of file isobus_maintain_power_interface.cpp.
bool isobus::MaintainPowerInterface::MaintainPowerData::set_implement_in_work_state | ( | ImplementInWorkState | inWorkState | ) |
Sets the reported implement in-work state.
[in] | inWorkState | The reported implement in-work state to set |
Definition at line 69 of file isobus_maintain_power_interface.cpp.
bool isobus::MaintainPowerInterface::MaintainPowerData::set_implement_park_state | ( | ImplementParkState | parkState | ) |
Sets the reported implement park state.
[in] | parkState | The reported implement park state to set |
Definition at line 93 of file isobus_maintain_power_interface.cpp.
bool isobus::MaintainPowerInterface::MaintainPowerData::set_implement_ready_to_work_state | ( | ImplementReadyToWorkState | readyToWorkState | ) |
Sets the reported implement ready to work state.
[in] | readyToWorkState | The reported implement ready to work state |
Definition at line 81 of file isobus_maintain_power_interface.cpp.
bool isobus::MaintainPowerInterface::MaintainPowerData::set_implement_transport_state | ( | ImplementTransportState | transportState | ) |
Sets the reported implement transport state.
[in] | transportState | The reported implement transport state to set |
Definition at line 105 of file isobus_maintain_power_interface.cpp.
bool isobus::MaintainPowerInterface::MaintainPowerData::set_maintain_actuator_power | ( | MaintainActuatorPower | maintainState | ) |
Sets the reported maintain actuator power state.
[in] | maintainState | The reported maintain actuator power state |
Definition at line 117 of file isobus_maintain_power_interface.cpp.
bool isobus::MaintainPowerInterface::MaintainPowerData::set_maintain_ecu_power | ( | MaintainECUPower | maintainState | ) |
Sets the reported maintain ECU power state.
[in] | maintainState | The reported maintain ECU power state |
Definition at line 129 of file isobus_maintain_power_interface.cpp.
void isobus::MaintainPowerInterface::MaintainPowerData::set_timestamp_ms | ( | std::uint32_t | timestamp | ) |
Sets the timestamp for when the message was received or sent.
[in] | timestamp | The timestamp, in milliseconds, when the message was sent or received |
Definition at line 146 of file isobus_maintain_power_interface.cpp.
|
private |
The reported implement in-work state.
Definition at line 175 of file isobus_maintain_power_interface.hpp.
|
private |
The reported implement park state.
Definition at line 177 of file isobus_maintain_power_interface.hpp.
|
private |
The reported implement ready to work state.
Definition at line 176 of file isobus_maintain_power_interface.hpp.
|
private |
The reported transport state of the implement.
Definition at line 178 of file isobus_maintain_power_interface.hpp.
|
private |
The reported state for maintaining actuator power for 2 more seconds.
Definition at line 179 of file isobus_maintain_power_interface.hpp.
|
private |
The reported state for maintaining ECU power for 2 more seconds.
Definition at line 180 of file isobus_maintain_power_interface.hpp.
|
private |
The control function that is sending the message.
Definition at line 173 of file isobus_maintain_power_interface.hpp.
|
private |
A timestamp for when the message was released in milliseconds.
Definition at line 174 of file isobus_maintain_power_interface.hpp.