mirror of
https://gitlab.com/hyperglitch/jellyfish.git
synced 2025-12-30 07:37:10 +00:00
31 lines
694 B
C
31 lines
694 B
C
/*
|
|
* SPDX-FileCopyrightText: 2025 Igor Brkic <igor@hyperglitch.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
#ifndef JF_SCPI_H
|
|
#define JF_SCPI_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#define JF_SCPI_INPUT_BUFFER_SIZE 256
|
|
#define JF_SCPI_ERROR_QUEUE_SIZE 17
|
|
|
|
#define JF_SCPI_IDN1 "JellyfishOPP"
|
|
#define JF_SCPI_IDN2 "HYPERGLITCH Ltd"
|
|
#define JF_SCPI_IDN3 "2025"
|
|
#define JF_SCPI_IDN4 "1.0"
|
|
|
|
typedef enum {
|
|
JF_SCPI_IF_UART,
|
|
JF_SCPI_IF_USB,
|
|
JF_SCPI_IF_COUNT,
|
|
}jf_scpi_interface_t;
|
|
|
|
void jf_scpi_init(jf_scpi_interface_t interface, bool (*write_func)(const uint8_t *c, int len));
|
|
void jf_scpi_input(jf_scpi_interface_t interface, char *c, int len);
|
|
|
|
#endif //JF_SCPI_H
|