Exemple #1
0
        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);
        }
Exemple #2
0
 public Result LowLevelCanOverwrite(UInt32 valueOld, UInt32 valueNew)
 {
     return(Eeprom.LowLevelCanOverwrite_(valueOld, valueNew));
 }
Exemple #3
0
 public Result LowLevelErasePage(UInt32 pageIndex)
 {
     return(Eeprom.LowLevelErasePage(this.mDataBuffer, ref this.mConfig, pageIndex));
 }
Exemple #4
0
 public Result LowLevelWriteWord(UInt32 pageIndex, UInt32 cellIndex, UInt32 value)
 {
     return(Eeprom.LowLevelWriteWord(this.mDataBuffer, ref this.mConfig, pageIndex, cellIndex, value));
 }
Exemple #5
0
 public Result ReadByIndex(UInt16 index, out UInt16 key, out UInt16 value)
 {
     return(Eeprom.ReadByIndex(this.mDataBuffer, ref this.mConfig, index, out key, out value));
 }
Exemple #6
0
 public Result GetKeysCount(out UInt16 count)
 {
     return(Eeprom.GetKeysCount(this.mDataBuffer, ref this.mConfig, out count));
 }
Exemple #7
0
 public Result Write(ushort key, ushort value)
 {
     return(Eeprom.WriteValue(this.mDataBuffer, ref this.mConfig, key, value));
 }
Exemple #8
0
 public Result Read(ushort key, out ushort value)
 {
     return(Eeprom.ReadValue(this.mDataBuffer, ref this.mConfig, key, out value));
 }