MCPcopy Create free account
hub / github.com/BruceDevices/firmware / DataMask

Method DataMask

lib/RTC/cplus_RTC.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void cplus_RTC::DataMask() {
47 trdata[0] = trdata[0] & 0x7f; // 秒
48 trdata[1] = trdata[1] & 0x7f; // 分
49 trdata[2] = trdata[2] & 0x3f; // 时
50
51 trdata[3] = trdata[3] & 0x3f; // 日
52 trdata[4] = trdata[4] & 0x07; // 星期
53 trdata[5] = trdata[5] & 0x1f; // 月
54
55 trdata[6] = trdata[6] & 0xff; // 年
56}
57/********************************************************************
58函 数 名: void Bcd2asc(void)
59功 能: bcd 码转换成 asc 码,供Lcd显示用

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected