13.07.2015 Views

User manual - ICP DAS USA

User manual - ICP DAS USA

User manual - ICP DAS USA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• Write_EEPDescription:To write one byte of data to the EEPROM. There is a 16K-byte EEPROM in the maincontrol unit of the LinPAC-8000 system. This EEPROM is divided into 256 blocks (0 to 255),and each block is 64 bytes in length from the offset of 0 to 63. This EEPROM with itsaccessing APIs, provides another mechanism for storing critical data inside non-volatilememory.Syntax:[ C ]void Write_EEP(int block, int offset, unsigned char data)Parameter:block :offset:Data:[Input] the block number of EEPROM.[Input] the offset within the block.[Input] data to write to EEPROM.Return Value:NoneExample:int block, offset;unsigned char data=10;WriteEEP(block, offset, data);// Writes a 10 value output to the EEPROM (block & offset) locationRemark:LinPAC-8x4x SDK:67

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

Saved successfully!

Ooh no, something went wrong!