DataStructures 1.6.16
A small compiled C library of data structures used in the NHP wrist center-out and other tasks.
Loading...
Searching...
No Matches
Initialization

Initializers for each different type of state data structure. More...

Functions

void initLogicFlags (FlagData *flags)
 Initialize the logical flag structure.
 
void initLogData (LogData *logData, StateData *pstate, TrialData *ptrial)
 Initialize the logdata structure for logging.
 
void initTrialData (TrialData *trial)
 Initialize the trial-data-tracking structure.
 
void initStateData (StateData *stateData)
 Initializes a StateData structure with default values.
 
void initCursorData (CursorData *cursorData)
 Initializes a CursorData structure with default values.
 
void initRenderedCircleData (RenderedCircleData *data)
 Initializes a RenderedCircleData structure with default values.
 
void resetTrialData (TrialData *trialData)
 Reset the trial-data-tracking structure for a new set of trials.
 

Detailed Description

Initializers for each different type of state data structure.

Function Documentation

◆ initCursorData()

void initCursorData ( CursorData * cursorData)

Initializes a CursorData structure with default values.

Parameters
cursorDataPointer to the CursorData structure to be initialized.

◆ initLogData()

void initLogData ( LogData * logData,
StateData * pstate,
TrialData * ptrial )

Initialize the logdata structure for logging.

Parameters
logDataLogData structure to initialize.
pstateIf NULL, initialize state field using initStateData, otherwise use values pointed to by this StateData pointer.
ptrialIf NULL, initialize trial field using initTrialData, otherwise use values pointed to by this TrialData pointer.

◆ initLogicFlags()

void initLogicFlags ( FlagData * flags)

Initialize the logical flag structure.

Parameters
flagsPointer to FlagData structure.

◆ initRenderedCircleData()

void initRenderedCircleData ( RenderedCircleData * data)

Initializes a RenderedCircleData structure with default values.

Parameters
dataPointer to the RenderedCircleData structure to be initialized.

◆ initStateData()

void initStateData ( StateData * stateData)

Initializes a StateData structure with default values.

Parameters
stateDataPointer to the StateData structure to be initialized.

◆ initTrialData()

void initTrialData ( TrialData * trial)

Initialize the trial-data-tracking structure.

Parameters
trialPointer to TrialData structure.

◆ resetTrialData()

void resetTrialData ( TrialData * trialData)

Reset the trial-data-tracking structure for a new set of trials.

Parameters
trialDataPointer to TrialData structure.