93 return (mask &= this->_statusED[0])?
true:
false;
119 return (mask &= this->_statusED[1])?
true:
false;
128 statusED[0] = this->_statusED[0];
129 statusED[1] = this->_statusED[1];
138 this->_statusED[0] = statusED[0];
139 this->_statusED[1] = statusED[1];
143 #endif // _HKXSTATUS_H
const uint8_t HKX_STAT_EXCEED_REGISTER
Definition: HkxStatus.h:41
const uint8_t HKX_STAT_PACKET
Definition: HkxStatus.h:24
const uint8_t HKX_STAT_MOTOR_FLAG
Definition: HkxStatus.h:45
const uint8_t HKX_STAT_VOLTAGE
Definition: HkxStatus.h:18
const uint8_t HKX_STAT_POSITION
Definition: HkxStatus.h:20
HkxStatus()
Default constructor.
Definition: HkxStatus.h:65
uint8_t _statusED[2]
Definition: HkxStatus.h:58
Class to manage the status of the servos.
Definition: HkxStatus.h:55
const uint8_t HKX_STAT_ALL
Definition: HkxStatus.h:48
const uint8_t HKX_STAT_COMMAND
Definition: HkxStatus.h:39
void getRawData(uint8_t statusED[]) const
Get the status raw data.
Definition: HkxStatus.h:127
boolean isDetail(uint8_t mask) const
Check for details.
Definition: HkxStatus.h:118
boolean isError(uint8_t mask) const
Check for errors.
Definition: HkxStatus.h:92
const uint8_t HKX_STAT_ROM_DISTORTED
Definition: HkxStatus.h:30
const uint8_t HKX_STAT_MOVING_FLAG
Definition: HkxStatus.h:33
const uint8_t HKX_STAT_OVERLOAD
Definition: HkxStatus.h:26
const uint8_t HKX_STAT_DRIVER
Definition: HkxStatus.h:28
const uint8_t HKX_STAT_INPOSITION_FLAG
Definition: HkxStatus.h:35
void setRawData(const uint8_t statusED[])
Set the status raw data.
Definition: HkxStatus.h:137
const uint8_t HKX_STAT_TEMPERATURE
Definition: HkxStatus.h:22
const uint8_t HKX_STAT_CKECKSUM
Definition: HkxStatus.h:37
const uint8_t HKX_STAT_GARBAGE
Definition: HkxStatus.h:43