Пример #1
0
        public DeadOnRTCData ReadData()
        {
            byte[] writeBuffer = new byte[] { 0 };
            byte[] readBuffer  = new byte[0x14];

            _spi.WriteRead(writeBuffer, readBuffer);
            DeadOnRTCData data = new DeadOnRTCData(readBuffer);

            return(data);
        }
Пример #2
0
        public DeadOnRTCData ReadData()
        {
            byte[] writeBuffer = new byte[] { 0 };
            byte[] readBuffer = new byte[0x14];

            _spi.WriteRead(writeBuffer, readBuffer);
            DeadOnRTCData data = new DeadOnRTCData(readBuffer);
            return data;
        }