public RadioConfiguration(Radio radio) { _radio = radio; _payloadWidth = Constants.MaxPayloadWidth; Registers = new RegisterManager(_radio); Registers.LoadRegisters(); }
public ReceivePipe(Radio radio, int pipeId) { if (PipeId > 5) throw new ArgumentOutOfRangeException(nameof(pipeId), "Invalid PipeId number for this Pipe"); _radio = radio; PipeId = pipeId; _registers = _radio.Configuration.Registers; }
public ReceivePipe(Radio radio, int pipeId) { if (PipeId > 5) { throw new ArgumentOutOfRangeException(nameof(pipeId), "Invalid PipeId number for this Pipe"); } _radio = radio; PipeId = pipeId; _registers = _radio.Configuration.Registers; }
public ReceivePipeCollection(Radio radio) { _radio = radio; _registers = _radio.Configuration.Registers; Add(0, new ReceivePipe(radio, 0)); Add(1, new ReceivePipe(radio, 1)); Add(2, new ReceivePipe(radio, 2)); Add(3, new ReceivePipe(radio, 3)); Add(4, new ReceivePipe(radio, 4)); Add(5, new ReceivePipe(radio, 5)); }
public TransmitPipe(Radio radio) { _radio = radio; _registers = _radio.Configuration.Registers; }