public void rtcSet(DateTime dt) { RtcTime rtc = new RtcTime(dt); byte[] vals = rtc.getVals(); txCMD(CMD_RTC_SET); txData(vals); }
public RtcTime rtcGet() { txCMD(CMD_RTC_GET); byte[] buff = rxData(RtcTime.size); RtcTime rtc = new RtcTime(buff); return(rtc); }