|
Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
Context associated with a single in-flight command. More...
#include <client.h>
Data Fields | |
| struct k_timer | timeout |
| Command response timeout timer. | |
| struct k_sem | tx_tokens |
| Tokens allowing the next transmission. | |
| k_timeout_t | rsp_timeout |
| Timeout for the response. | |
| rpc_client_rsp_fn | cb |
| Callback to run on completion. | |
| void * | user_data |
| Arbitrary user data for callback. | |
| uint32_t | request_id |
| RPC request ID (0 when context is unused) | |
| uint16_t | command_id |
| RPC command ID. | |
| uint16_t | tx_tokens_on_ack |
| Number of TX tokens to give on DATA_ACK. | |
| int16_t | tx_result |
| Result of TX queuing. | |
| bool | tx_pending |
| Command packet TX callback has not yet run (context cannot be reused) | |
Context associated with a single in-flight command.
| rpc_client_rsp_fn rpc_client_cmd_ctx::cb |
Callback to run on completion.
| uint16_t rpc_client_cmd_ctx::command_id |
RPC command ID.
| uint32_t rpc_client_cmd_ctx::request_id |
RPC request ID (0 when context is unused)
| k_timeout_t rpc_client_cmd_ctx::rsp_timeout |
Timeout for the response.
| struct k_timer rpc_client_cmd_ctx::timeout |
Command response timeout timer.
| bool rpc_client_cmd_ctx::tx_pending |
Command packet TX callback has not yet run (context cannot be reused)
| int16_t rpc_client_cmd_ctx::tx_result |
Result of TX queuing.
| struct k_sem rpc_client_cmd_ctx::tx_tokens |
Tokens allowing the next transmission.
| uint16_t rpc_client_cmd_ctx::tx_tokens_on_ack |
Number of TX tokens to give on DATA_ACK.
| void* rpc_client_cmd_ctx::user_data |
Arbitrary user data for callback.