Searched refs:ct_time (Results 1 – 2 of 2) sorted by relevance
37 int bt_cts_time_to_unix_ms(const struct bt_cts_time_format *ct_time, int64_t *unix_ms) in bt_cts_time_to_unix_ms() argument41 date_time.tm_year = sys_le16_to_cpu(ct_time->year); /* year (little endian) */ in bt_cts_time_to_unix_ms()43 date_time.tm_mon = ct_time->mon - 1; /* month start from 1, but need from 0 */ in bt_cts_time_to_unix_ms()44 date_time.tm_mday = ct_time->mday; /* day of month */ in bt_cts_time_to_unix_ms()45 date_time.tm_hour = ct_time->hours; /* hours of day */ in bt_cts_time_to_unix_ms()46 date_time.tm_min = ct_time->min; /* minute of hour */ in bt_cts_time_to_unix_ms()47 date_time.tm_sec = ct_time->sec; /* seconds of minute */ in bt_cts_time_to_unix_ms()48 date_time.tm_wday = ct_time->wday % 7; /* for sundays convert to 0, else keep same */ in bt_cts_time_to_unix_ms()60 (*unix_ms) += ((ct_time->fractions256 * MSEC_PER_SEC) / BT_CTS_FRACTION_256_MAX_VALUE); in bt_cts_time_to_unix_ms()65 int bt_cts_time_from_unix_ms(struct bt_cts_time_format *ct_time, int64_t unix_ms) in bt_cts_time_from_unix_ms() argument[all …]
124 int bt_cts_time_to_unix_ms(const struct bt_cts_time_format *ct_time, int64_t *unix_ms);137 int bt_cts_time_from_unix_ms(struct bt_cts_time_format *ct_time, int64_t unix_ms);