public ReadLoggingWrapper(IBusPeripheral peripheral, Func <long, T> originalMethod) :
     base(peripheral, originalMethod)
 {
     mapper  = new RegisterMapper(peripheral.GetType());
     machine = peripheral.GetMachine();
     needsByteSwapForDisplay = !peripheral.IsHostEndian();
 }
Exemple #2
0
 public ReadLoggingWrapper(IBusPeripheral peripheral, Func <long, T> originalMethod) :
     base(peripheral, originalMethod)
 {
     mapper  = new RegisterMapper(peripheral.GetType());
     machine = peripheral.GetMachine();
 }
Exemple #3
0
 public WriteLoggingWrapper(IBusPeripheral peripheral, Action <long, T> originalMethod) : base(peripheral, originalMethod, null, null)
 {
     mapper  = new RegisterMapper(peripheral.GetType());
     machine = peripheral.GetMachine();
 }