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

Method Bcd2ToByte

lib/RTC/pcf85063_RTC.cpp:65–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65uint8_t pcf85063_RTC::Bcd2ToByte(uint8_t Value) {
66 uint8_t tmp = 0;
67 tmp = ((uint8_t)(Value & (uint8_t)0xF0) >> (uint8_t)0x4) * 10;
68 return (tmp + (Value & (uint8_t)0x0F));
69}
70
71uint8_t pcf85063_RTC::ByteToBcd2(uint8_t Value) {
72 uint8_t bcdhigh = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected