« Close

Datasheets and User Guides

App Notes

Software & Driver

 

4.3.14 - Miscellaneous

The following are special channels, used with the get/put config IOTypes, to read/write the calibration memory and user memory:

LJ_chCAL_CONSTANTS    // x1 points to an array with 128 doubles.
LJ_chUSER_MEM    // x1 points to an array with 1024 bytes.

LJ_chCAL_CONSTANTS makes 8 calls to the low-level ReadMem or EraseMem/WriteMem functions to do a consecutive read or erase/write of the 8x 128-byte blocks of calibration memory (blocks 0-7), or 1024 bytes total.  Those bytes represent 128x 64-bit fixed point values in hardware, but are passed to/from the UD as 128 doubles.

LJ_chUSER_MEM makes 8 calls to the low-level ReadMem or EraseMem/WriteMem functions to do a consecutive read or erase/write of the 8x 128-byte blocks of user memory (blocks 8-15), or 1024 bytes total. 

For more information, see the low-level descriptions in Sections 5.3.10 - 5.3.12, and see the Memory example in the VC6_LJUD archive.