MPIStatusMask / MEIStatusMask
Definition: MPIStatusMask
|
typedef enum {
MPIStatusMaskNONE = 0x0,
MPIStatusMaskMOTOR = MPIStatusMaskNONE, /* 0x00000001 */
MPIStatusMaskALL = mpiStatusMaskBIT(MPIStatusFlagLAST) - 1 /* 0x00000001 */
} MPIStatusMask;
|
Description
MPIStatusMask is an
enumeration of bit masks for the MEIStatusFlags. The
status masks represent the present condition for an
object.
|
MPIStatusMaskMOTOR |
Value specifies the motor's status mask. |
MPIStatusMaskALL |
Value specifies the status mask that encompasses all the possible status flags. |
|
Definition: MEIStatusMask
|
typedef enum {
MEIStatusMaskBROKEN_WIRE = mpiStatusMaskBIT(MEIStatusFlagBROKEN_WIRE),
/* 0x00000002 */
MEIStatusMaskILLEGAL_STATE = mpiStatusMaskBIT(MEIStatusFlagILLEGAL_STATE),\
/* 0x00000004 */
MEIStatusMaskABS_ENCODER_FAULT = mpiStatusMaskBIT(MEIStatusFlagABS_ENCODER_FAULT),
/* 0x00000008 */
MEIStatusMaskABS_ENCODER_TIMEOUT = mpiStatusMaskBIT(MEIStatusFlagABS_ENCODER_TIMEOUT),
/* 0x00000010 */
MEIStatusMaskBROKEN_WIRE_SECONDARY = mpiStatusMaskBIT(MEIStatusFlagBROKEN_WIRE_SECONDARY),
/* 0x00000020 */
MEIStatusMaskILLEGAL_STATE_SECONDARY = mpiStatusMaskBIT(MEIStatusFlagILLEGAL_STATE_SECONDARY),
/* 0x00000040 */
MEIStatusMaskMOTOR = /* 0x0000001E */
(MEIStatusMaskBROKEN_WIRE |
MEIStatusMaskILLEGAL_STATE |
MEIStatusMaskABS_ENCODER_FAULT |
MEIStatusMaskABS_ENCODER_TIMEOUT),
MEIStatusMaskALL = /* 0x0000001E */
(mpiStatusMaskBIT(MEIStatusFlagLAST) - 1) & ~MPIStatusMaskALL
} ;
|
Description
MEIStatusMask is an enumeration
of bit masks for the MEIStatusFlags. The status masks represent
the present condition for an object.
|
MEIStatusMaskBROKEN_WIRE |
Broken wire on the primary encoder input signals. Occurs when any of the differential encoder input channels (A+ and A-, B+ and B-, or I+ and I-), have the same logic state. This mask indicates either a floating or shorted encoder input signal. |
MEIStatusMaskILLEGAL_STATE |
Illegal encoder logic state on the primary encoder input signals. Occurs when the A and B encoder input channels transition simultaneously. This mask indicates either faulty encoder signal logic, encoder frequencies that are too high, or noisy encoder signals. |
MEIStatusMaskABS_ENCODER_FAULT |
Absolute encoder initialization failure. Occurs when the hardware fails to read the absolute position information from an encoder. |
MEIStatusMaskABS_ENCODER_TIMEOUT |
Absolute encoder response timeout. Occurs when the encoder fails to respond to a request for absolute position data. |
MEIStatusMaskBROKEN_WIRE_SECONDARY |
Broken wire on the secondary encoder input signals. Occurs when any of the differential encoder input channels (A+ and A-, B+ and B-, or I+ and I-), have the same logic state. This mask indicates either a floating or shorted encoder input signal. |
MEIStatusMaskILLEGAL_STATE_SECONDARY |
Illegal encoder logic state on the secondary encoder inputs. Occurs when the A and B encoder input channels transition simultaneously. This flag indicates either faulty encoder signal logic, encoder frequencies that are too high, or noisy encoder signals. |
MEIStatusMaskMOTOR |
Bit mask containing all of the motor specific MEIStatusFlags set. |
MEIStatusMaskALL |
Bit mask containing all of the MEIStatusFlags set. |
|
See Also
MPIStatus | MEIStatusFlag | MPIStatusMask
|