
Status flags
Category
general
Offset
1
Type
unsigned 16-bit
Default
0x2200 (Reset, Error active)
Data
•
Bit 0:
Protocol error
•
Bit 1:
CRC error
•
Bit 2:
Command timeout latched
•
Bit 3:
Motor fault latched
•
Bit 4:
No power latched
•
Bit 9:
Reset
•
Bit 10:
Command timeout
•
Bit 11:
Motor faulting
•
Bit 12:
No power
•
Bit 13:
Error active
•
Bit 14:
Motor output enabled
•
Bit 15:
Motor driving
Command
Clear latched status flags
Set latched status flags
Arduino library
uint16_t getStatusFlags()
bool getProtocolErrorFlag()
bool getCrcErrorFlag()
bool getCommandTimeoutLatchedFlag()
bool getMotorFaultLatchedFlag()
bool getNoPowerLatchedFlag()
bool getResetFlag()
bool getMotorFaultingFlag()
bool getNoPowerFlag()
bool getErrorActiveFlag()
bool getMotorOutputEnabledFlag()
bool getMotorDrivingFlag()
void clearLatchedStatusFlags(uint16_t flags)
void clearResetFlag()
void setLatchedStatusFlags(uint16_t flags)
Pololu Motoron Motor Controller User’s Guide
© 2001–2022 Pololu Corporation
8. Variable reference
Page 35 of 67