SCPI parser and status register model implementation (device side) written in C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
scpi_parser/include/scpi_builtins.h

18 lines
603 B

#pragma once
#include <stdint.h>
#include <stdbool.h>
/** Optional *CLS command callback - clear non-SCPI device state */
extern __attribute__((weak)) void scpi_user_CLS(void);
/** Optional *RST command callback - reset non-SCPI device state */
extern __attribute__((weak)) void scpi_user_RST(void);
/** Optional *TST? command callback - perform self test and send response back. */
extern __attribute__((weak)) void scpi_user_TST(void);
/** MANDATORY callback to get the device *IDN? string. */
extern const char *scpi_user_IDN(void);
// Provides:
// const SCPI_command_t scpi_commands_builtin[];