| | |
| | | #include "../common/scpi-def.h" |
| | | |
| | | size_t SCPI_Write(scpi_t * context, const char * data, size_t len) { |
| | | (void) context; |
| | | |
| | | if (context->user_context != NULL) { |
| | | int fd = *(int *) (context->user_context); |
| | | return write(fd, data, len); |
| | |
| | | } |
| | | |
| | | scpi_result_t SCPI_Flush(scpi_t * context) { |
| | | (void) context; |
| | | |
| | | return SCPI_RES_OK; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | scpi_result_t SCPI_Control(scpi_t * context, scpi_ctrl_name_t ctrl, scpi_reg_val_t val) { |
| | | (void) context; |
| | | |
| | | if (SCPI_CTRL_SRQ == ctrl) { |
| | | fprintf(stderr, "**SRQ: 0x%X (%d)\r\n", val, val); |
| | | } else { |
| | |
| | | } |
| | | |
| | | scpi_result_t SCPI_Reset(scpi_t * context) { |
| | | (void) context; |
| | | |
| | | fprintf(stderr, "**Reset\r\n"); |
| | | return SCPI_RES_OK; |
| | | } |
| | | |
| | | scpi_result_t SCPI_SystemCommTcpipControlQ(scpi_t * context) { |
| | | (void) context; |
| | | |
| | | return SCPI_RES_ERR; |
| | | } |
| | | |