intio_device_writecmd
intio_device_writecmd(bst, bsh, RTC_SET_REG, &data, 1);
intio_device_writecmd(bst, bsh, RTC_SET_REG, &tmp, 1);
intio_device_writecmd(bst, bsh, RTC_WRITE_REG, NULL, 0);