ros2_canopen  master
C++ ROS CANopen Library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Types | Public Member Functions | List of all members
ros2_canopen::State402 Class Reference

#include <state.hpp>

Public Types

enum  StatusWord {
  SW_Ready_To_Switch_On = 0 , SW_Switched_On = 1 , SW_Operation_enabled = 2 , SW_Fault = 3 ,
  SW_Voltage_enabled = 4 , SW_Quick_stop = 5 , SW_Switch_on_disabled = 6 , SW_Warning = 7 ,
  SW_Manufacturer_specific0 = 8 , SW_Remote = 9 , SW_Target_reached = 10 , SW_Internal_limit = 11 ,
  SW_Operation_mode_specific0 = 12 , SW_Operation_mode_specific1 = 13 , SW_Manufacturer_specific1 = 14 , SW_Manufacturer_specific2 = 15
}
 
enum  InternalState {
  Unknown = 0 , Start = 0 , Not_Ready_To_Switch_On = 1 , Switch_On_Disabled = 2 ,
  Ready_To_Switch_On = 3 , Switched_On = 4 , Operation_Enable = 5 , Quick_Stop_Active = 6 ,
  Fault_Reaction_Active = 7 , Fault = 8
}
 

Public Member Functions

InternalState getState ()
 
InternalState read (uint16_t sw)
 
bool waitForNewState (const std::chrono::steady_clock::time_point &abstime, InternalState &state)
 
 State402 ()
 

Member Enumeration Documentation

◆ StatusWord

Enumerator
SW_Ready_To_Switch_On 
SW_Switched_On 
SW_Operation_enabled 
SW_Fault 
SW_Voltage_enabled 
SW_Quick_stop 
SW_Switch_on_disabled 
SW_Warning 
SW_Manufacturer_specific0 
SW_Remote 
SW_Target_reached 
SW_Internal_limit 
SW_Operation_mode_specific0 
SW_Operation_mode_specific1 
SW_Manufacturer_specific1 
SW_Manufacturer_specific2 

◆ InternalState

Enumerator
Unknown 
Start 
Not_Ready_To_Switch_On 
Switch_On_Disabled 
Ready_To_Switch_On 
Switched_On 
Operation_Enable 
Quick_Stop_Active 
Fault_Reaction_Active 
Fault 

Constructor & Destructor Documentation

◆ State402()

ros2_canopen::State402::State402 ( )
inline

Member Function Documentation

◆ getState()

InternalState ros2_canopen::State402::getState ( )

◆ read()

InternalState ros2_canopen::State402::read ( uint16_t  sw)

◆ waitForNewState()

bool ros2_canopen::State402::waitForNewState ( const std::chrono::steady_clock::time_point &  abstime,
InternalState state 
)

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