Example #1
0
        public void rtcSet(DateTime dt)
        {
            RtcTime rtc = new RtcTime(dt);

            byte[] vals = rtc.getVals();
            txCMD(CMD_RTC_SET);
            txData(vals);
        }
Example #2
0
        public RtcTime rtcGet()
        {
            txCMD(CMD_RTC_GET);
            byte[]  buff = rxData(RtcTime.size);
            RtcTime rtc  = new RtcTime(buff);

            return(rtc);
        }