0x00 - WIND_A_STATE_ABSENT (Winding A is disconnected.)
0x01 - WIND_A_STATE_UNKNOWN (Winding A state is unknown.)
0x02 - WIND_A_STATE_MALFUNC (Winding A is short-circuited.)
0x03 - WIND_A_STATE_OK (Winding A is connected and working properly.)
0x00 - WIND_B_STATE_ABSENT (Winding B is disconnected.)
0x10 - WIND_B_STATE_UNKNOWN (Winding B state is unknown.)
0x20 - WIND_B_STATE_MALFUNC (Winding B is short-circuited.)
0x30 - WIND_B_STATE_OK (Winding B is connected and working properly.)
INT32S CurPosition Current position.
INT16S uCurPosition Step motor shaft position in 1/256 microsteps. Used only with stepper motor.
INT64S EncPosition Current encoder position.
INT32S CurSpeed Motor shaft speed.
INT16S uCurSpeed Part of motor shaft speed in 1/256 microsteps. Used only with stepper motor.
INT16S Ipwr Engine current.
INT16S Upwr Power supply voltage, tens of mV.
INT16S Iusb USB current consumption.
INT16S Uusb USB voltage, tens of mV.
INT16S CurT Temperature in tenths of degrees C.
INT32U Flags Set of flags specify motor shaft movement algorithm and list of limitations.
0x00003F - STATE_CONTR (Flags of controller states.)
0x000001 - STATE_ERRC (Command error encountered.)
0x000002 - STATE_ERRD (Data integrity error encountered.)
0x000004 - STATE_ERRV (Value error encountered.)
0x000010 - STATE_EEPROM_CONNECTED (EEPROM with settings is connected.)
0x000020 - STATE_IS_HOMED (Calibration performed)
0x73FFC0 - STATE_SECUR (Flags of security.)
0x000040 - STATE_ALARM (Controller is in alarm state indicating that something dangerous had
happened. Most commands are ignored in this state. To reset the flag a STOP command must be issued.)
0x000080 - STATE_CTP_ERROR (Control position error(is only used with stepper motor).)
0x000100 - STATE_POWER_OVERHEAT (Power driver overheat.)
0x000200 - STATE_CONTROLLER_OVERHEAT (Controller overheat.)
0x000400 - STATE_OVERLOAD_POWER_VOLTAGE (Power voltage exceeds safe limit.)
0x000800 - STATE_OVERLOAD_POWER_CURRENT (Power current exceeds safe limit.)
0x001000 - STATE_OVERLOAD_USB_VOLTAGE (USB voltage exceeds safe limit.)
0x002000 - STATE_LOW_USB_VOLTAGE (USB voltage is insufficient for normal operation.)
0x004000 - STATE_OVERLOAD_USB_CURRENT (USB current exceeds safe limit.)
0x008000 - STATE_BORDERS_SWAP_MISSET (Engine stuck at the wrong edge.)
0x010000 - STATE_LOW_POWER_VOLTAGE (Power voltage is lower than Low Voltage Protection limit)
0x020000 - STATE_H_BRIDGE_FAULT (Signal from the driver that fault happened)
0x0C0000 - STATE_CURRENT_MOTOR_BITS (Bits indicating the current operating motor on boards with
multiple outputs for engine mounting.)
0x000000 - STATE_CURRENT_MOTOR0 (Motor 0.)
0x040000 - STATE_CURRENT_MOTOR1 (Motor 1.)
0x080000 - STATE_CURRENT_MOTOR2 (Motor 2.)
0x0C0000 - STATE_CURRENT_MOTOR3 (Motor 3.)
0x100000 - STATE_WINDING_RES_MISMATCH (The difference between winding resistances is too large)
0x200000 - STATE_ENCODER_FAULT (Signal from the encoder that fault happened)
0x400000 - STATE_MOTOR_CURRENT_LIMIT (Current limit exceeded)
INT32U GPIOFlags Set of flags of gpio states