Correct type of *TST? callback function
| | |
| | | return SCPI_RES_OK; |
| | | } |
| | | |
| | | scpi_result_t SCPI_Test(scpi_t * context) { |
| | | /** |
| | | * Callback for *TST? command |
| | | * |
| | | * It returns directly the result of the test |
| | | * @param context |
| | | * @return 0 means "test was OK", other values means, that some error bits are set |
| | | */ |
| | | int32_t SCPI_Test(scpi_t * context) { |
| | | (void) context; |
| | | iprintf("**Test\r\n"); |
| | | return SCPI_RES_OK; |
| | | return 0; |
| | | } |
| | | |
| | | scpi_result_t SCPI_Reset(scpi_t * context) { |
| | |
| | | return SCPI_RES_OK; |
| | | } |
| | | |
| | | scpi_result_t SCPI_Test(scpi_t * context) { |
| | | /** |
| | | * Callback for *TST? command |
| | | * |
| | | * It returns directly the result of the test |
| | | * @param context |
| | | * @return 0 means "test was OK", other values means, that some error bits are set |
| | | */ |
| | | int32_t SCPI_Test(scpi_t * context) { |
| | | fprintf(stderr, "**Test\r\n"); |
| | | return SCPI_RES_OK; |
| | | return 0; |
| | | } |
| | | |
| | | scpi_result_t SCPI_Reset(scpi_t * context) { |
| | |
| | | return SCPI_RES_OK; |
| | | } |
| | | |
| | | scpi_result_t SCPI_Test(scpi_t * context) { |
| | | /** |
| | | * Callback for *TST? command |
| | | * |
| | | * It returns directly the result of the test |
| | | * @param context |
| | | * @return 0 means "test was OK", other values means, that some error bits are set |
| | | */ |
| | | int32_t SCPI_Test(scpi_t * context) { |
| | | fprintf(stderr, "**Test\r\n"); |
| | | return SCPI_RES_OK; |
| | | return 0; |
| | | } |
| | | |
| | | scpi_result_t SCPI_Reset(scpi_t * context) { |
| | |
| | | return SCPI_RES_OK; |
| | | } |
| | | |
| | | scpi_result_t SCPI_Test(scpi_t * context) { |
| | | /** |
| | | * Callback for *TST? command |
| | | * |
| | | * It returns directly the result of the test |
| | | * @param context |
| | | * @return 0 means "test was OK", other values means, that some error bits are set |
| | | */ |
| | | int32_t SCPI_Test(scpi_t * context) { |
| | | fprintf(stderr, "**Test\r\n"); |
| | | return SCPI_RES_OK; |
| | | return 0; |
| | | } |
| | | |
| | | scpi_result_t SCPI_Reset(scpi_t * context) { |
| | |
| | | return SCPI_RES_OK; |
| | | } |
| | | |
| | | scpi_result_t SCPI_Test(scpi_t * context) { |
| | | /** |
| | | * Callback for *TST? command |
| | | * |
| | | * It returns directly the result of the test |
| | | * @param context |
| | | * @return 0 means "test was OK", other values means, that some error bits are set |
| | | */ |
| | | int32_t SCPI_Test(scpi_t * context) { |
| | | fprintf(stderr, "**Test\r\n"); |
| | | return SCPI_RES_OK; |
| | | } |
| | |
| | | typedef struct _scpi_parser_state_t scpi_parser_state_t; |
| | | |
| | | typedef scpi_result_t(*scpi_command_callback_t)(scpi_t *); |
| | | typedef int32_t(*scpi_test_command_callback_t)(scpi_t *); |
| | | |
| | | /* scpi error queue */ |
| | | typedef void * scpi_error_queue_t; |
| | |
| | | scpi_write_control_t control; |
| | | scpi_command_callback_t flush; |
| | | scpi_command_callback_t reset; |
| | | scpi_command_callback_t test; |
| | | scpi_test_command_callback_t test; |
| | | }; |
| | | |
| | | struct _scpi_t { |