Represents a command awaiting a reply from the device. More...
#include <mip_cmdqueue.h>
Public Attributes | |
union { | |
timeout_type _extra_timeout | |
< More... | |
timestamp_type _reply_time | |
If MIP_STATUS_COMPLETED: timestamp_type from the packet containing the ack/nack. More... | |
timestamp_type _timeout_time | |
If MIP_STATUS_WAITING: timestamp_type after which the command will be timed out. More... | |
}; | |
Private Attributes | |
union { | |
uint8_t _response_buffer_size | |
If status < MIP_STATUS_COMPLETED, the size of the reply data buffer. More... | |
uint8_t _response_length | |
If status == MIP_STATUS_COMPLETED, the length of the reply data. More... | |
}; | |
uint8_t | _descriptor_set |
Command descriptor set. More... | |
uint8_t | _field_descriptor |
Command field descriptor. More... | |
struct mip_pending_cmd * | _next |
Next command in the queue. More... | |
uint8_t * | _response_buffer |
Buffer for response data if response_descriptor != 0x00. More... | |
uint8_t | _response_descriptor |
Response field descriptor, or 0x00 if no response field expected. More... | |
enum mip_cmd_result | _status |
The current status of the command. Writing this to any MipAck value may cause deallocation. More... | |
Represents a command awaiting a reply from the device.
Definition at line 41 of file mip_cmdqueue.h.
union { ... } |
union { ... } |
|
private |
Command descriptor set.
Definition at line 50 of file mip_cmdqueue.h.
|
private |
<
If MIP_STATUS_PENDING: Duration to wait for reply, excluding base timeout time from the queue object.
Definition at line 46 of file mip_cmdqueue.h.
|
private |
Command field descriptor.
Definition at line 51 of file mip_cmdqueue.h.
|
private |
Next command in the queue.
Definition at line 43 of file mip_cmdqueue.h.
|
private |
If MIP_STATUS_COMPLETED: timestamp_type from the packet containing the ack/nack.
Definition at line 48 of file mip_cmdqueue.h.
|
private |
Buffer for response data if response_descriptor != 0x00.
Definition at line 44 of file mip_cmdqueue.h.
|
private |
If status < MIP_STATUS_COMPLETED, the size of the reply data buffer.
Definition at line 54 of file mip_cmdqueue.h.
|
private |
Response field descriptor, or 0x00 if no response field expected.
Definition at line 52 of file mip_cmdqueue.h.
|
private |
If status == MIP_STATUS_COMPLETED, the length of the reply data.
Definition at line 55 of file mip_cmdqueue.h.
|
private |
The current status of the command. Writing this to any MipAck value may cause deallocation.
Definition at line 57 of file mip_cmdqueue.h.
|
private |
If MIP_STATUS_WAITING: timestamp_type after which the command will be timed out.
Definition at line 47 of file mip_cmdqueue.h.