#include <motor.h>
Public Types | |
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 } |
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 } |
Public Member Functions | |
InternalState | getState () |
InternalState | read (uint16_t sw) |
State402 () | |
bool | waitForNewState (const time_point &abstime, InternalState &state) |
Private Attributes | |
boost::condition_variable | cond_ |
boost::mutex | mutex_ |
InternalState | state_ |
State402::InternalState canopen::State402::getState | ( | ) |
State402::InternalState canopen::State402::read | ( | uint16_t | sw | ) |
bool canopen::State402::waitForNewState | ( | const time_point & | abstime, |
State402::InternalState & | state | ||
) |
|
private |