| | |
| | | #define SCPI_MSG_CONTROL_IO_LISTEN 3 |
| | | #define SCPI_MSG_IO 4 |
| | | #define SCPI_MSG_CONTROL_IO 5 |
| | | #define SCPI_MSG_SET_ESE_REQ 6 |
| | | |
| | | static void setEseReq(void) { |
| | | SCPI_RegSetBits(&scpi_context, SCPI_REG_ESR, ESR_REQ); |
| | | } |
| | | |
| | | void SCPI_RequestControl(void) { |
| | | uint32_t msg = SCPI_MSG_SET_ESE_REQ; |
| | | xQueueSend(user_data.evtQueue, &msg, 1000); |
| | | } |
| | | |
| | | void scpi_netconn_callback(struct netconn * conn, enum netconn_evt evt, u16_t len) { |
| | | uint32_t msg; |
| | |
| | | processSrqIo(&user_data); |
| | | } |
| | | |
| | | if (rc == SCPI_MSG_SET_ESE_REQ) { |
| | | setEseReq(); |
| | | } |
| | | |
| | | } |
| | | |
| | | vTaskDelete(NULL); |