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

Data Structures

struct  IufNonParametricPulse
 

Functions

iunpp_t iufNonParametricPulseCreate (int numPulseValues)
 Create an IufNonParametricPulse for a wave function with numPulseValues {time,voltage} pairs. More...
 
int iufNonParametricPulseDelete (iunpp_t pulse)
 Delete an IufNonParametricPulse. More...
 
int iufNonParametricPulseCompare (iunpp_t reference, iunpp_t actual)
 Compare two IufNonParametricPulse with each other. More...
 
int iufNonParametricPulseGetNumValues (iunpp_t pulse)
 Get the number of {time, voltage} pairs. More...
 
float iufNonParametricPulseGetValueAmplitude (iunpp_t pulse, int index)
 Get the voltage value at location index. More...
 
float iufNonParametricPulseGetValueTime (iunpp_t pulse, int index)
 Get the time at location index. More...
 
int iufNonParametricPulseSetValue (iunpp_t pulse, int index, float pulseTime, float pulseAmplitude)
 Set a {time, voltage} pair at location index. More...
 
int iufNonParametricPulseSave (iunpp_t pulse, hid_t handle)
 
iunpp_t iufNonParametricPulseLoad (hid_t handle)
 

Data Structure Documentation

◆ IufNonParametricPulse

struct IufNonParametricPulse
Data Fields
struct IufPulse base

The basic/common properties of a pulse

int numPulseValues

number of points to describe waveform, 0 implies a parametric description only

float * pRawPulseAmplitudes

shape of waveform [in Volts]

float * pRawPulseTimes

corresponding timestamps of amplitudes [in seconds]

Function Documentation

◆ iufNonParametricPulseCompare()

int iufNonParametricPulseCompare ( iunpp_t  reference,
iunpp_t  actual 
)

Compare two IufNonParametricPulse with each other.

Returns
Returns IUF_TRUE in case the pulses are equal and IUF_FALSE otherwise
Parameters
referenceThe IufNonParametricPulse to compare to
actualThe IufNonParametricPulse to compare with

◆ iufNonParametricPulseCreate()

iunpp_t iufNonParametricPulseCreate ( int  numPulseValues)

Create an IufNonParametricPulse for a wave function with numPulseValues {time,voltage} pairs.

Returns
Returns the created IufNonParametricPulse or IUNPP_INVALID in case of an error.
Parameters
numPulseValuesnumber of points to describe the pulse waveform

◆ iufNonParametricPulseDelete()

int iufNonParametricPulseDelete ( iunpp_t  pulse)

Delete an IufNonParametricPulse.

Returns
Returns IUF_E_OK when succesful or IUF_ERR_VALUE when the argument is invalid.
Parameters
pulseThe IufNonParametricPulse that is to be deleted.

◆ iufNonParametricPulseGetNumValues()

int iufNonParametricPulseGetNumValues ( iunpp_t  pulse)

Get the number of {time, voltage} pairs.

Returns
Returns the number of {time, voltage} pairs or -1 in case of an error
Parameters
pulseThe IufNonParametricPulse of interest

◆ iufNonParametricPulseGetValueAmplitude()

float iufNonParametricPulseGetValueAmplitude ( iunpp_t  pulse,
int  index 
)

Get the voltage value at location index.

Returns
Returns the voltage at index in Volt or IUF_ERR_VALUE in case of an error
Parameters
pulseThe IufNonParametricPulse of interest
indexThe index of the {time, voltage} pairs

◆ iufNonParametricPulseGetValueTime()

float iufNonParametricPulseGetValueTime ( iunpp_t  pulse,
int  index 
)

Get the time at location index.

Returns
Returns the time at index in seconds or IUF_ERR_VALUE in case of an error
Parameters
pulseThe IufNonParametricPulse of interest
indexThe index of the {time, voltage} pairs

◆ iufNonParametricPulseLoad()

iunpp_t iufNonParametricPulseLoad ( hid_t  handle)

◆ iufNonParametricPulseSave()

int iufNonParametricPulseSave ( iunpp_t  pulse,
hid_t  handle 
)

◆ iufNonParametricPulseSetValue()

int iufNonParametricPulseSetValue ( iunpp_t  pulse,
int  index,
float  pulseTime,
float  pulseAmplitude 
)

Set a {time, voltage} pair at location index.

Returns
Returns IUF_E_OK when succesful and IUF_ERR_VALUE in case of invalid parameters
Parameters
pulseThe IufNonParametricPulse of interest
indexThe index of the {time, voltage} pairs
pulseTimethe time in seconds
pulseAmplitudethe amplitude in Volt