public void SetChannelValue(byte index, PcaRegisterValue pcaRegisterValue)
        {
            CheckInitialization();

            var onRegisterAddressList  = PcaRegisters.GetRegisterAddressList(index, RegisterType.On);
            var offRegisterAddressList = PcaRegisters.GetRegisterAddressList(index, RegisterType.Off);

            RegisterHelper.WriteUShort(device, onRegisterAddressList, pcaRegisterValue.On);
            RegisterHelper.WriteUShort(device, offRegisterAddressList, pcaRegisterValue.Off);
        }
        public PcaRegisterValue GetChannelValue(byte index)
        {
            CheckInitialization();

            var onRegisterAddressList  = PcaRegisters.GetRegisterAddressList(index, RegisterType.On);
            var offRegisterAddressList = PcaRegisters.GetRegisterAddressList(index, RegisterType.Off);

            return(new PcaRegisterValue()
            {
                On = RegisterHelper.GetUShort(device, onRegisterAddressList),
                Off = RegisterHelper.GetUShort(device, offRegisterAddressList)
            });
        }