private void CreatRegisters() { #region Register difine Test_mode = new Register("Test_mode", 0xAA, "Test_Mode", 8); Test00 = new Register("Test00", 0xF0, "Test_ana_H", 8); Test01 = new Register("Test01", 0xF1, "Test_ana_L", 8); Test02 = new Register("Test02", 0xF2, "Trim_Sel", 1, "Fuse_en", 1, "Trim_load", 1, "ANA_T", 1, "Norm_T", 1,"LR_sel",1,"Norm_en",1,"Fuse_COPY",1); Test03 = new Register("Test03", 0xF3, "Chip_ID_H", 8); Test04 = new Register("Test04", 0xF4, "CHip_ID_L", 8); Test05 = new Register("Test05", 0xF5, "Gain", 5); Test06 = new Register("Test06", 0xF6, "Fuse_Version", 2, "Trim_master", 1); SoftReset = new Register("SoftReset", 0xFF, "SoftReset", 8); #endregion Register difine #region Add all registers to regMap ADMP521TRegMap.Add(Test_mode); ADMP521TRegMap.Add(Test00); ADMP521TRegMap.Add(Test01); ADMP521TRegMap.Add(Test02); ADMP521TRegMap.Add(Test03); ADMP521TRegMap.Add(Test04); ADMP521TRegMap.Add(Test05); ADMP521TRegMap.Add(Test06); ADMP521TRegMap.Add(SoftReset); #endregion Add all registers to regMap }
public void Remove(Register _reg) { this.RegistersList.Remove(_reg); }
public void Add(Register _reg) { this.RegistersList.Add(_reg); }