RX4581_REG_DW
tm->tm_wday = ilog2(date[RX4581_REG_DW] & 0x7F);
buf[RX4581_REG_DW+1] = (0x1 << tm->tm_wday);