MIP_SDK
v3.0.0
MicroStrain Communications Library for embedded systems
|
bool mip_cmd_result_is_reply(enum mip_cmd_result result)
Determines if the result is a reply from the device (i.e. mip_ack).
Definition: mip_result.c:55
@ MIP_STATUS_WAITING
Waiting for command reply (timeout timer has started).
Definition: mip_result.h:35
A collection of C++ classes and functions covering the full mip api.
Definition: commands_3dm.c:11
bool mip_cmd_result_is_finished(enum mip_cmd_result status)
Determines if the command has completed, timed out, been cancelled, or otherwise is no longer waiting...
Definition: mip_result.c:47
mip_cmd_result
Represents the status of a MIP command.
Definition: mip_result.h:27
const char * mip_cmd_result_to_string(enum mip_cmd_result result)
Converts the command result to a string for debugging.
Definition: mip_result.c:17
@ MIP_NACK_COMMAND_UNKNOWN
Command not supported.
Definition: mip_result.h:41
@ MIP_STATUS_PENDING
Command has been queued but the I/O update hasn't run yet.
Definition: mip_result.h:36
@ MIP_NACK_COMMAND_TIMEOUT
Internal device timeout. Use MIP_STATUS_TIMEDOUT for command timeouts.
Definition: mip_result.h:45
@ MIP_NACK_COMMAND_FAILED
The device could not complete the command.
Definition: mip_result.h:44
@ MIP_STATUS_TIMEDOUT
Reply was not received before timeout expired.
Definition: mip_result.h:34
@ MIP_STATUS_CANCELLED
Command was canceled in software.
Definition: mip_result.h:33
@ MIP_STATUS_ERROR
Command could not be executed (error sending/receiving)
Definition: mip_result.h:32
bool mip_cmd_result_is_ack(enum mip_cmd_result result)
Determines if the result is an ack (successful response from the device)
Definition: mip_result.c:79
bool mip_cmd_result_is_user(enum mip_cmd_result result)
Determines if the result code was generated by user software.
Definition: mip_result.c:71
@ MIP_NACK_INVALID_PARAM
A parameter was not a supported value.
Definition: mip_result.h:43
bool mip_cmd_result_is_status(enum mip_cmd_result result)
Determines if the result code was generated by this lib (i.e. mip_cmd_status).
Definition: mip_result.c:63
@ MIP_ACK_OK
Command completed successfully.
Definition: mip_result.h:40
@ MIP_NACK_INVALID_CHECKSUM
Reserved.
Definition: mip_result.h:42
@ MIP_STATUS_USER_START
Values defined by user code must be less than or equal to this value.
Definition: mip_result.h:29
@ MIP_STATUS_NONE
Command has been initialized but not queued yet.
Definition: mip_result.h:37