10.07.2015 Views

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

CF2 API Reference (PDF) - Persistor Instruments Inc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>VEEFetchStr -- Return C string from Virtual EEPROMDescription:Prototype:Inputs:Returns:Return either a signed long value found in the virtual eeprom or a default value.char *VEEFetchStr(char *name, char *fallback);name is a pointer to a zero terminated C string of up to 15 characters that identifies the entry.fallback is a C string used as a default fallback if the vee search fails to find the veename entryReturns a C string.Notes:VEEFetchVar -- Fetch a Virtual EEPROM variableDescription:Prototype:Inputs:Returns:Notes:Return a pointer to a VEEVar structure.VEEVar VEEFetchVar(char *name);name iis a pointer to a zero terminated C string of up to 15 characters that locates the entry.Returns a pointer to a VEEVar structure or zero if the requested name can't be found.You can determine the type of data from the type field, and access the name and stored datausing the companion VEEGetName and VEEGetData functions.VEEGetData -- Return pointer to VEE variable data field or zeroDescription:Prototype:Inputs:Returns:Given a VEEVar structure pointer, return a pointer to its data field, which is guaranteed to beginon an even boundary.void* VEEGetData(VEEVar *vvp, short *size);vvp is a pointer to a VEEVar structure from VEEFetchVar, VEELookup, or VEEFetchNext.size is an optional (not used if its zero) pointer to a short to hold the size of the data field inbytes.Returns a non-zero pointer or zero if there is a problem.Notes:VEEGetName -- Return VEE variable name or null string pointer ("\0")Description:Prototype:Inputs:Returns:Notes:Given a VEEVar structure pointer, return a pointer to its zero terminated C string.char* VEEGetName(VEEVar *vvp);vvp is a pointer to a VEEVar structure from VEEFetchVar, VEELookup, or VEEFetchNext.Returns a pointer to a zero terminated C string or zero if there is a problem.Notes.PERSISTOR<strong>Instruments</strong> <strong>Inc</strong>.80 of 84<strong>CF2</strong> <strong>API</strong> <strong>Reference</strong>7/19/2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!