public void RegisterPortOutHandler(short port, Action<short> handler) { deviceOutHandlers.Add(port, handler); }