public Result Initialize(UInt32 wordsOnPage, UInt32 pagesCount) { this.mConfig = new Configuration(wordsOnPage, pagesCount); this.mDataBuffer = new byte[this.mConfig.PagesCount * this.mConfig.WordsOnPage * sizeof(UInt32)]; Result result = Eeprom.Init(this.mDataBuffer, ref this.mConfig); return(result); }
public Result LowLevelCanOverwrite(UInt32 valueOld, UInt32 valueNew) { return(Eeprom.LowLevelCanOverwrite_(valueOld, valueNew)); }
public Result LowLevelErasePage(UInt32 pageIndex) { return(Eeprom.LowLevelErasePage(this.mDataBuffer, ref this.mConfig, pageIndex)); }
public Result LowLevelWriteWord(UInt32 pageIndex, UInt32 cellIndex, UInt32 value) { return(Eeprom.LowLevelWriteWord(this.mDataBuffer, ref this.mConfig, pageIndex, cellIndex, value)); }
public Result ReadByIndex(UInt16 index, out UInt16 key, out UInt16 value) { return(Eeprom.ReadByIndex(this.mDataBuffer, ref this.mConfig, index, out key, out value)); }
public Result GetKeysCount(out UInt16 count) { return(Eeprom.GetKeysCount(this.mDataBuffer, ref this.mConfig, out count)); }
public Result Write(ushort key, ushort value) { return(Eeprom.WriteValue(this.mDataBuffer, ref this.mConfig, key, value)); }
public Result Read(ushort key, out ushort value) { return(Eeprom.ReadValue(this.mDataBuffer, ref this.mConfig, key, out value)); }