| | |
| | | #include "scpi/scpi_utils.h" |
| | | #include "scpi/scpi_units.h" |
| | | |
| | | int DMM_MeasureVoltageDcQ(scpi_context_t * context) { |
| | | int DMM_MeasureVoltageDcQ(scpi_t * context) { |
| | | scpi_number_t param1, param2; |
| | | char bf[15]; |
| | | fprintf(stderr, "meas:volt:dc\r\n"); // debug command name |
| | |
| | | SCPI_CMD_LIST_END |
| | | }; |
| | | |
| | | size_t SCPI_Write(scpi_context_t * context, const char * data, size_t len) { |
| | | size_t SCPI_Write(scpi_t * context, const char * data, size_t len) { |
| | | (void) context; |
| | | return fwrite(data, 1, len, stdout); |
| | | } |
| | | |
| | | int SCPI_Error(scpi_context_t * context, int_fast16_t err) { |
| | | int SCPI_Error(scpi_t * context, int_fast16_t err) { |
| | | (void) context; |
| | | |
| | | fprintf(stderr, "**ERROR: %d, \"%s\"\r\n", (int32_t) err, SCPI_ErrorTranslate(err)); |
| | |
| | | // .data = (char[SCPI_BUFFER_LENGTH]){}, |
| | | }; |
| | | |
| | | scpi_context_t scpi_context; |
| | | scpi_t scpi_context; |
| | | |
| | | /* |
| | | * |