libximc  2.13.1
Data Fields
status_t Struct Reference

Device state. More...

Data Fields

unsigned int MoveSts
 Flags of move state.
unsigned int MvCmdSts
 Move command state.
unsigned int PWRSts
 Flags of power state of stepper motor.
unsigned int EncSts
 Encoder state.
unsigned int WindSts
 Winding state.
int CurPosition
 Current position.
int uCurPosition
 Step motor shaft position in microsteps.
long_t EncPosition
 Current encoder position.
int CurSpeed
 Motor shaft speed in steps/s or rpm.
int uCurSpeed
 Part of motor shaft speed in microsteps.
int Ipwr
 Engine current, mA.
int Upwr
 Power supply voltage, tens of mV.
int Iusb
 USB current, mA.
int Uusb
 USB voltage, tens of mV.
int CurT
 Temperature in tenths of degrees C.
unsigned int Flags
 Status flags.
unsigned int GPIOFlags
 Status flags of the GPIO outputs.
unsigned int CmdBufFreeSpace
 This field is a service field.

Detailed Description

Device state.

Useful structure that contains current controller state, including speed, position and boolean flags.

See Also
get_status_impl

Field Documentation

unsigned int CmdBufFreeSpace

This field is a service field.

It shows the amount of free cells buffer synchronization chain.

int CurPosition

Current position.

int CurSpeed

Motor shaft speed in steps/s or rpm.

int CurT

Temperature in tenths of degrees C.

long_t EncPosition

Current encoder position.

unsigned int EncSts
unsigned int Flags
unsigned int GPIOFlags
int Ipwr

Engine current, mA.

int Iusb

USB current, mA.

unsigned int MoveSts
unsigned int MvCmdSts
unsigned int PWRSts
int uCurPosition

Step motor shaft position in microsteps.

Microstep size and the range of valid values for this field depend on selected step division mode (see MicrostepMode field in engine_settings). Used only with stepper motor.

int uCurSpeed

Part of motor shaft speed in microsteps.

Microstep size and the range of valid values for this field depend on selected step division mode (see MicrostepMode field in engine_settings). Used only with stepper motor.

int Upwr

Power supply voltage, tens of mV.

int Uusb

USB voltage, tens of mV.

unsigned int WindSts