#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Typedefs | |
typedef enum mip_cmd_result | mip_cmd_result |
Represents the status of a MIP command. More... | |
Enumerations | |
enum | mip_cmd_result { MIP_STATUS_USER_START = -10, MIP_STATUS_ERROR = -6, MIP_STATUS_CANCELLED = -5, MIP_STATUS_TIMEDOUT = -4, MIP_STATUS_WAITING = -3, MIP_STATUS_PENDING = -2, MIP_STATUS_NONE = -1, MIP_ACK_OK = 0x00, MIP_NACK_COMMAND_UNKNOWN = 0x01, MIP_NACK_INVALID_CHECKSUM = 0x02, MIP_NACK_INVALID_PARAM = 0x03, MIP_NACK_COMMAND_FAILED = 0x04, MIP_NACK_COMMAND_TIMEOUT = 0x05 } |
Represents the status of a MIP command. More... | |
Functions | |
bool | mip_cmd_result_is_ack (enum mip_cmd_result result) |
Determines if the result is an ack (successful response from the device) More... | |
bool | mip_cmd_result_is_finished (enum mip_cmd_result result) |
Determines if the command has completed, timed out, been cancelled, or otherwise is no longer waiting for a response. More... | |
bool | mip_cmd_result_is_reply (enum mip_cmd_result result) |
Determines if the result is a reply from the device (i.e. More... | |
bool | mip_cmd_result_is_status (enum mip_cmd_result result) |
Determines if the result code was generated by this lib (i.e. More... | |
bool | mip_cmd_result_is_user (enum mip_cmd_result result) |
Determines if the result code was generated by user software. More... | |
const char * | mip_cmd_result_to_string (enum mip_cmd_result result) |
Converts the command result to a string for debugging. More... | |