AMU Library 3.0
C/C++ library for communicating with AMU (Aerospace Measurement Unit) devices
Loading...
Searching...
No Matches
scpi.h File Reference

SCPI library include file. More...

#include "libscpi\libscpi.h"
#include "amu_commands.h"

Go to the source code of this file.

Macros

#define AMULIBC_SCPI_INPUT_BUFFER_LENGTH   1024
#define AMULIBC_SCPI_ERROR_QUEUE_SIZE   16
#define SCPI_CMD_RW_PROTOTYPE(TYPE)
#define SCPI_CMD_EXEC_QRY_PROTOTYPE(TYPE)
#define SCPI_COMMAND(P, C, T)
#define __AMU_DEFAULT_CMD_LIST__
#define __AMU_EXTENDED_CMD_LIST__

Functions

void amu_scpi_init (volatile amu_device_t *dev, const char *idn1, const char *idn2, const char *idn3, const char *idn4)
void amu_scpi_update (const char incomingByte)
void amu_scpi_update_buffer (const char *buffer, size_t len)
void amu_scpi_list_commands (void)
void amu_scpi_add_aux_commands (const scpi_command_t *aux_cmd_list)
scpi_result_t scpi_cmd_execute (scpi_t *context)
scpi_result_t scpi_cmd_rw_uint8_t (scpi_t *context)
scpi_result_t scpi_cmd_rw_uint16_t (scpi_t *context)
scpi_result_t scpi_cmd_rw_uint32_t (scpi_t *context)
scpi_result_t scpi_cmd_rw_int32_t (scpi_t *context)
scpi_result_t scpi_cmd_rw_float (scpi_t *context)
scpi_result_t scpi_cmd_rw_amu_pid_t (scpi_t *context)
scpi_result_t scpi_cmd_rw_amu_coeff_t (scpi_t *context)
scpi_result_t scpi_cmd_rw_amu_notes_t (scpi_t *context)
scpi_result_t scpi_cmd_rw_ss_angle_t (scpi_t *context)
scpi_result_t scpi_cmd_rw_press_data_t (scpi_t *context)
scpi_result_t scpi_cmd_rw_amu_int_volt_t (scpi_t *context)
scpi_result_t scpi_cmd_rw_amu_meas_t (scpi_t *context)
scpi_result_t scpi_cmd_exec_qry_uint8_t (scpi_t *context)
scpi_result_t scpi_cmd_exec_qry_uint16_t (scpi_t *context)
scpi_result_t scpi_cmd_exec_qry_uint32_t (scpi_t *context)
scpi_result_t scpi_cmd_exec_qry_float (scpi_t *context)
scpi_result_t _scpi_read_ptr (scpi_t *context)
scpi_result_t _scpi_write_sweep_ptr (scpi_t *context)
scpi_result_t _scpi_write_config_ptr (scpi_t *context)
scpi_result_t _scpi_write_meta_ptr (scpi_t *context)
scpi_result_t _scpi_cmd_twi_scan (scpi_t *context)
scpi_result_t _scpi_cmd_measure_channel (scpi_t *context)
scpi_result_t _scpi_cmd_measure_active_ch (scpi_t *context)
scpi_result_t _scpi_cmd_measure_tsensors (scpi_t *context)
scpi_result_t _scpi_cmd_query_str (scpi_t *context)
scpi_result_t _scpi_cmd_led (scpi_t *context)
int16_t _scpi_get_channelList (scpi_t *context)

Detailed Description

SCPI library include file.

SCPI Command Interface for AMU Library.

Date
Thu Nov 15 10:58:45 UTC 2012

This file defines the SCPI (Standard Commands for Programmable Instruments) command interface for the AMU (Aerospace Measurement Unit) library.

Author
CJM28241
Date
5/28/2018 7:13:29 PM

Definition in file scpi.h.

Macro Definition Documentation

◆ __AMU_DEFAULT_CMD_LIST__

#define __AMU_DEFAULT_CMD_LIST__

Definition at line 92 of file scpi.h.

◆ __AMU_EXTENDED_CMD_LIST__

#define __AMU_EXTENDED_CMD_LIST__

Definition at line 236 of file scpi.h.

◆ AMULIBC_SCPI_ERROR_QUEUE_SIZE

#define AMULIBC_SCPI_ERROR_QUEUE_SIZE   16

Definition at line 27 of file scpi.h.

◆ AMULIBC_SCPI_INPUT_BUFFER_LENGTH

#define AMULIBC_SCPI_INPUT_BUFFER_LENGTH   1024

Definition at line 23 of file scpi.h.

◆ SCPI_CMD_EXEC_QRY_PROTOTYPE

#define SCPI_CMD_EXEC_QRY_PROTOTYPE ( TYPE)
Value:
scpi_result_t scpi_cmd_exec_qry_##TYPE(scpi_t *context);
enum _scpi_result_t scpi_result_t
Definition types.h:113

Definition at line 63 of file scpi.h.

◆ SCPI_CMD_RW_PROTOTYPE

#define SCPI_CMD_RW_PROTOTYPE ( TYPE)
Value:
scpi_result_t scpi_cmd_rw_##TYPE(scpi_t *context);

Definition at line 49 of file scpi.h.

◆ SCPI_COMMAND

#define SCPI_COMMAND ( P,
C,
T )
Value:
static const char C ## _ ## T ## _pattern[] = P;

Definition at line 89 of file scpi.h.

Function Documentation

◆ _scpi_cmd_led()

scpi_result_t _scpi_cmd_led ( scpi_t * context)

Definition at line 270 of file scpi.c.

◆ _scpi_cmd_measure_active_ch()

scpi_result_t _scpi_cmd_measure_active_ch ( scpi_t * context)

Definition at line 322 of file scpi.c.

◆ _scpi_cmd_measure_channel()

scpi_result_t _scpi_cmd_measure_channel ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 283 of file scpi.c.

◆ _scpi_cmd_measure_tsensors()

scpi_result_t _scpi_cmd_measure_tsensors ( scpi_t * context)

Definition at line 348 of file scpi.c.

◆ _scpi_cmd_query_str()

scpi_result_t _scpi_cmd_query_str ( scpi_t * context)

< Root command for I2C/USB commands

< Root command for I2C/USB commands

Definition at line 362 of file scpi.c.

◆ _scpi_cmd_twi_scan()

scpi_result_t _scpi_cmd_twi_scan ( scpi_t * context)

Definition at line 416 of file scpi.c.

◆ _scpi_get_channelList()

int16_t _scpi_get_channelList ( scpi_t * context)

Definition at line 647 of file scpi.c.

◆ _scpi_read_ptr()

scpi_result_t _scpi_read_ptr ( scpi_t * context)

Definition at line 166 of file scpi.c.

◆ _scpi_write_config_ptr()

scpi_result_t _scpi_write_config_ptr ( scpi_t * context)

Definition at line 231 of file scpi.c.

◆ _scpi_write_meta_ptr()

scpi_result_t _scpi_write_meta_ptr ( scpi_t * context)

Definition at line 256 of file scpi.c.

◆ _scpi_write_sweep_ptr()

scpi_result_t _scpi_write_sweep_ptr ( scpi_t * context)

Definition at line 215 of file scpi.c.

◆ amu_scpi_add_aux_commands()

void amu_scpi_add_aux_commands ( const scpi_command_t * aux_cmd_list)

◆ amu_scpi_init()

void amu_scpi_init ( volatile amu_device_t * dev,
const char * idn1,
const char * idn2,
const char * idn3,
const char * idn4 )

◆ amu_scpi_list_commands()

void amu_scpi_list_commands ( void )

◆ amu_scpi_update()

void amu_scpi_update ( const char incomingByte)

◆ amu_scpi_update_buffer()

void amu_scpi_update_buffer ( const char * buffer,
size_t len )

◆ scpi_cmd_exec_qry_float()

scpi_result_t scpi_cmd_exec_qry_float ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 145 of file scpi.c.

◆ scpi_cmd_exec_qry_uint16_t()

scpi_result_t scpi_cmd_exec_qry_uint16_t ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 143 of file scpi.c.

◆ scpi_cmd_exec_qry_uint32_t()

scpi_result_t scpi_cmd_exec_qry_uint32_t ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 144 of file scpi.c.

◆ scpi_cmd_exec_qry_uint8_t()

scpi_result_t scpi_cmd_exec_qry_uint8_t ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 142 of file scpi.c.

◆ scpi_cmd_execute()

scpi_result_t scpi_cmd_execute ( scpi_t * context)

Definition at line 149 of file scpi.c.

◆ scpi_cmd_rw_amu_coeff_t()

scpi_result_t scpi_cmd_rw_amu_coeff_t ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 101 of file scpi.c.

◆ scpi_cmd_rw_amu_int_volt_t()

scpi_result_t scpi_cmd_rw_amu_int_volt_t ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 105 of file scpi.c.

◆ scpi_cmd_rw_amu_meas_t()

scpi_result_t scpi_cmd_rw_amu_meas_t ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 106 of file scpi.c.

◆ scpi_cmd_rw_amu_notes_t()

scpi_result_t scpi_cmd_rw_amu_notes_t ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 102 of file scpi.c.

◆ scpi_cmd_rw_amu_pid_t()

scpi_result_t scpi_cmd_rw_amu_pid_t ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 100 of file scpi.c.

◆ scpi_cmd_rw_float()

scpi_result_t scpi_cmd_rw_float ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 99 of file scpi.c.

◆ scpi_cmd_rw_int32_t()

scpi_result_t scpi_cmd_rw_int32_t ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 98 of file scpi.c.

◆ scpi_cmd_rw_press_data_t()

scpi_result_t scpi_cmd_rw_press_data_t ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 104 of file scpi.c.

◆ scpi_cmd_rw_ss_angle_t()

scpi_result_t scpi_cmd_rw_ss_angle_t ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 103 of file scpi.c.

◆ scpi_cmd_rw_uint16_t()

scpi_result_t scpi_cmd_rw_uint16_t ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 96 of file scpi.c.

◆ scpi_cmd_rw_uint32_t()

scpi_result_t scpi_cmd_rw_uint32_t ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 97 of file scpi.c.

◆ scpi_cmd_rw_uint8_t()

scpi_result_t scpi_cmd_rw_uint8_t ( scpi_t * context)

< Root command for I2C/USB commands

Definition at line 95 of file scpi.c.