Analog Devices / Mbed OS EVAL-ADMX2001

Dependencies:   ADMX2001

Embed: (wiki syntax)

« Back to documentation index

calibrate.cpp File Reference

calibrate.cpp File Reference

This file contains calibrate related APIs for sdpk1 host. More...

Go to the source code of this file.

Functions

static void DisplayCalibratedValue (double displayVal1, double displayVal2, double sweepVar)
 Displays the output value.
static int32_t ReadAndDisplayCalibratedValue ()
 Function to read and display calibrated values.
int32_t Calibrate (CAL_TYPE calType, float stdR, float stdX)
 Command to perform various calibration types.

Variables

char displayString [MAX_CAL_DISPLAY_LENGTH]
 buffer for string operation
Admx200xDev admx200xDev
 This is kept global and non-static as the test code requires this.
double calibrateBuffer [MAX_CALIBRATE_BUFFER]
 Array to store measurement values.
double sweepPoints [MAX_CALIBRATE_BUFFER]
 Array to store sweep points.

Detailed Description

This file contains calibrate related APIs for sdpk1 host.

Definition in file calibrate.cpp.


Function Documentation

int32_t Calibrate ( CAL_TYPE  calType,
float  stdR,
float  stdX 
)

Command to perform various calibration types.

Parameters:
[in]calType- Type of Calibrate
[in]stdR- stdR value
[in]stdX- stdX value
Returns:
Returns 0 for success or negative error code.

Pointer to the handle

Send the RT data

Send the XT data

Send the Load Calibration command

Definition at line 84 of file calibrate.cpp.

void DisplayCalibratedValue ( double  displayVal1,
double  displayVal2,
double  sweepVar 
) [static]

Displays the output value.

Parameters:
[in]displayVal1- display value 1
[in]displayVal2- display value 2
[in]sweepVar- sweep variable

Definition at line 209 of file calibrate.cpp.

int32_t ReadAndDisplayCalibratedValue (  ) [static]

Function to read and display calibrated values.

Returns:
Returns 0 for success or negative error code.

Definition at line 161 of file calibrate.cpp.


Variable Documentation

Admx200xDev admx200xDev

This is kept global and non-static as the test code requires this.

Definition at line 56 of file main.cpp.

double calibrateBuffer[MAX_CALIBRATE_BUFFER]

Array to store measurement values.

Definition at line 66 of file calibrate.cpp.

char displayString[MAX_CAL_DISPLAY_LENGTH]

buffer for string operation

Definition at line 57 of file measure.cpp.

double sweepPoints[MAX_CALIBRATE_BUFFER]

Array to store sweep points.

Definition at line 61 of file measure.cpp.