16#ifndef _AMMETER_API_H_
17#define _AMMETER_API_H_
59#ifndef __bool_true_false_are_defined
60#define __bool_true_false_are_defined 1
74#define AMMETER_API_EXPORTS
75#ifdef AMMETER_API_EXPORTS
76#define AMMETER_API __declspec(dllexport)
78#define AMMETER_API __declspec(dllimport)
90#define AMMETER_CALLBACK(A, Y, Z) (A != NULL) ? A(Y, Z) : ((void)0)
93#define AMMETER_STR_SIZE 256
111 AMMETER_API_SUCCESS = 0,
113 AMMETER_API_INVALID_DBG_PARAMS,
114 AMMETER_API_DBG_DLL_ERROR,
AMMETER_API int ammeter_api_samples(uint32_t samples)
Set the number of samples/measurements that the instrument will take and average.
AMMETER_API int ammeter_api_dbg_close(void)
Current measurement instrument debug session close.
AMMETER_API int ammeter_api_dbg_init(_dbg_params *dbg_params_t)
Current measurement instrument debug session initialize.
AMMETER_API int ammeter_api_gen_cmd(const char *gen_cmd)
Set a SCPI command that will be passed to the instrument. Multiple, column separated commands,...
AMMETER_API int ammeter_api_resolution(double resolution)
Set the resolution that the instrument will operate.
AMMETER_API int ammeter_api_range(double range)
Set the ampere range that the instrument will operate.
void(* _callback_ammeter)(int status, double val)
Current measurement API callback function type definition.
AMMETER_API int ammeter_api_close(void)
Current measurement instrument close function and free allocated resources.
AMMETER_API int ammeter_api_init(const char *iface, _callback_ammeter callback_ammeter)
Current measurement instrument initialize function.
AMMETER_API int ammeter_api_shunt_res(float shunt_res)
Set the shunt resistor value. Only used if voltmeters or NI-DAQs are used to measure current.
AMMETER_API int ammeter_api_measure(void)
Perform a current measurement and return the result.
enum _AMMETER_API_STATUS_CODES AMMETER_API_STATUS_CODES
The Current measurement instrument API return status codes.
_AMMETER_API_STATUS_CODES
The Current measurement instrument API return status codes.
The main settings of the Debug DLL API.