IUF-SDK-3
Interventional Ultrasound Library
iufParametricPulse.c File Reference
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <iuf.h>
#include <iufPulsePrivate.h>

Data Structures

struct  IufParametricPulse
 

Functions

iupp_t iufParametricPulseCreate (float pulseFrequency, float pulseAmplitude, int numPulses)
 
int iufParametricPulseDelete (iupp_t pulse)
 
IUF_BOOL iufParametricPulseCompare (iupp_t reference, iupp_t actual)
 
float iufParametricPulseGetFrequency (iupp_t pulse)
 
float iufParametricPulseGetPulseAmplitude (iupp_t pulse)
 
int iufParametricPulseGetNumPulses (iupp_t pulse)
 
int iufParametricPulseSave (iupp_t pulse, hid_t handle)
 
iupp_t iufParametricPulseLoad (hid_t handle)
 

Data Structure Documentation

◆ IufParametricPulse

struct IufParametricPulse
Data Fields
struct IufPulse base
int numPulses

number of cycles that the pulse represents

float pulseAmplitude

(max) amplitude of the pulse in Volts

float pulseFrequency

frequency that the pulse represents in Hz

Function Documentation

◆ iufParametricPulseCompare()

IUF_BOOL iufParametricPulseCompare ( iupp_t  reference,
iupp_t  actual 
)

Compares two parametric pulses. It doesn't matter which is the reference and the actual. /return

Parameters
referencewhen comparing two parametric pulses: the reference
actualwhen comparing two parametric pulses: the pulse to compare with the reference

◆ iufParametricPulseCreate()

iupp_t iufParametricPulseCreate ( float  pulseFrequency,
float  pulseAmplitude,
int  numPulses 
)

Create the parametric pulse that is described by a sinusoid with the three parameters: frequency, amplitude and number of periods

/return the created pulse

Parameters
pulseFrequencyThe frequency in Hz of the transmitted sinusoid
pulseAmplitudeThe Amplitude of the pulse in Volt
numPulsesThe number of periods the pulse.

◆ iufParametricPulseDelete()

int iufParametricPulseDelete ( iupp_t  pulse)

Deletes a parametric pulse

Parameters
pulseThe paramteric pulse to be deleted

◆ iufParametricPulseGetFrequency()

float iufParametricPulseGetFrequency ( iupp_t  pulse)
Parameters
pulseReturns the frequency in Hz of this pararmetric pulse

◆ iufParametricPulseGetNumPulses()

int iufParametricPulseGetNumPulses ( iupp_t  pulse)
Parameters
pulseReturns the number of periods that this pararmetric pulse has

◆ iufParametricPulseGetPulseAmplitude()

float iufParametricPulseGetPulseAmplitude ( iupp_t  pulse)
Parameters
pulseReturns the amplitude in Hz of this pararmetric pulse

◆ iufParametricPulseLoad()

iupp_t iufParametricPulseLoad ( hid_t  handle)

< frequency that the pulse represents in Hz

< (max) amplitude of the pulse in Volts

< number of cycles that the pulse represents

◆ iufParametricPulseSave()

int iufParametricPulseSave ( iupp_t  pulse,
hid_t  handle 
)