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