|
WISP ERT (Client)
1.0.0
The WISP Extended Runtime (WISP side)
|
#include <stdbool.h>#include <string.h>#include <stdlib.h>#include <wisp-base.h>#include <ert/rpc.h>#include <ert/runtime.h>Functions | |
| static void | ert_read_callback (void) |
| WISP RFID Read callback. More... | |
| static void | ert_blockwrite_callback (void) |
| WISP RFID Blockwrite callback. More... | |
| static | WIO_CALLBACK (ert_enter_main) |
| static | WIO_CALLBACK (ert_on_recv) |
| static | WIO_CALLBACK (ert_on_connect) |
| void | ert_user_suspend (ert_status_t *_status_var, uint16_t result_size, void *_result_var) |
| Suspend execution of user context. More... | |
| WIO_CALLBACK (ert_user_resume) | |
| void | main (void) |
| WISP program entry point. More... | |
Variables | |
| uint16_t | ert_wisp_id = 0x5101 |
| WISP ID. More... | |
| wtp_t * | ert_wtp_ep = WIO_INST_PTR(wtp_t) |
| WTP endpoint. More... | |
| urpc_t * | ert_rpc_ep = WIO_INST_PTR(urpc_t) |
| u-RPC endpoint More... | |
| static uint8_t | blockwrite_buffer [_ERT_BW_SIZE] = {0} |
| Blockwrite data buffer. More... | |
| static WISP_dataStructInterface_t | wisp_data |
| WISP data. More... | |
| static bool | read_flag = false |
| RFID Read flag. More... | |
| static bool | blockwrite_flag = false |
| RFID BlockWrite flag. More... | |
| static ucontext_t | runtime_ctx |
| ERT runtime context. More... | |
| static ucontext_t | user_ctx |
| ERT user context. More... | |
| static ert_status_t * | user_status_var |
| User context status variable. More... | |
| static void * | user_result_var |
| User context result variable. More... | |
| static uint16_t | user_result_size |
| User context result size. More... | |
| static uint8_t | epc_update_counter = 0 |
| EPC update counter. More... | |
|
static |
WISP RFID Blockwrite callback.
|
static |
WISP RFID Read callback.
| void ert_user_suspend | ( | ert_status_t * | _status_var, |
| uint16_t | result_size, | ||
| void * | _result_var | ||
| ) |
Suspend execution of user context.
| void main | ( | void | ) |
WISP program entry point.
|
static |
Function that starts ERT user main routine.
|
static |
ERT WTP data received callback.
|
static |
ERT WTP connected callback.
| WIO_CALLBACK | ( | ert_user_resume | ) |
|
static |
Blockwrite data buffer.
|
static |
RFID BlockWrite flag.
|
static |
EPC update counter.
| urpc_t* ert_rpc_ep = WIO_INST_PTR(urpc_t) |
u-RPC endpoint
ERT u-RPC endpoint.
| uint16_t ert_wisp_id = 0x5101 |
WISP ID.
| wtp_t* ert_wtp_ep = WIO_INST_PTR(wtp_t) |
WTP endpoint.
ERT WTP endpoint.
|
static |
RFID Read flag.
|
static |
ERT runtime context.
|
static |
ERT user context.
|
static |
User context result size.
|
static |
User context result variable.
|
static |
User context status variable.
|
static |
WISP data.