Stores the response to a status request.
More...
Stores the response to a status request.
Returned by KangarooChannel::getP(), KangarooMonitor::status(), and others.
boolean KangarooStatus::busy |
( |
| ) |
const |
|
inline |
Gets whether a recently-requested command is still executing. For example, KangarooChannel::p() is busy while the channel is getting into position, and KangarooChannel::home() is busy while the channel is homing.
- Returns
- True if the channel is busy.
char KangarooStatus::channel |
( |
| ) |
const |
|
inline |
Gets the channel name.
- Returns
- The channel name.
boolean KangarooStatus::done |
( |
| ) |
const |
|
inline |
Gets whether a recently-requested command has completed execution. For example, KangarooChannel::p() is done when the channel is in position.
- Returns
- True if the command is done.
If the response is an error, gets the error.
- Returns
- The error, or KANGAROO_NO_ERROR if the response is not an error.
Gets the status flags associated with this response.
- Returns
- The status flags.
boolean KangarooStatus::ok |
( |
| ) |
const |
|
inline |
Gets whether the response is not an error and KangarooStatus::value() is the requested value.
- Returns
- True if the response is not an error.
boolean KangarooStatus::timedOut |
( |
| ) |
const |
|
inline |
Gets the type of the request.
- Returns
- The type of the request.
int32_t KangarooStatus::value |
( |
| ) |
const |
|
inline |
Gets the value associated with this response.
- Returns
- The value.