Home
last modified time | relevance | path

Searched refs:timestamp (Results 1 – 17 of 17) sorted by relevance

/SCP-firmware-master/module/sensor/src/
A Dsensor_extended.c25 ctx->timestamp.timestamp_support = ctx->config->timestamp.timestamp_support; in sensor_timestamp_dev_init()
26 if (ctx->timestamp.timestamp_support) { in sensor_timestamp_dev_init()
45 if (!ctx->timestamp.timestamp_support) { in sensor_set_timestamp_config()
49 ctx->timestamp.enabled = config->enabled; in sensor_set_timestamp_config()
50 ctx->timestamp.exponent = config->exponent; in sensor_set_timestamp_config()
68 if (!ctx->timestamp.timestamp_support) { in sensor_get_timestamp_config()
73 config->enabled = ctx->timestamp.enabled; in sensor_get_timestamp_config()
74 config->exponent = ctx->timestamp.exponent; in sensor_get_timestamp_config()
92 uint64_t timestamp; in sensor_get_timestamp() local
97 if (!ctx->timestamp.enabled) { in sensor_get_timestamp()
[all …]
A Dsensor.h61 struct mod_sensor_timestamp_info timestamp; member
A Dmod_sensor.c167 ctx->last_read.timestamp = sensor_get_timestamp(id); in get_data()
222 status = sensor_get_timestamp_config(id, &info->timestamp); in get_info()
224 info->timestamp.timestamp_support = false; in get_info()
322 ctx->last_read.timestamp = sensor_get_timestamp(dev_id); in reading_complete()
/SCP-firmware-master/framework/src/
A Dfwk_time.c29 if (fwk_time_ctx.driver.timestamp == NULL) { in fwk_time_current()
33 return fwk_time_ctx.driver.timestamp(fwk_time_ctx.driver_ctx); in fwk_time_current()
36 fwk_duration_ns_t fwk_time_stamp_duration(fwk_timestamp_t timestamp) in fwk_time_stamp_duration() argument
38 return FWK_NS(timestamp); in fwk_time_stamp_duration()
76 .timestamp = NULL, in fmw_time_driver()
A Dfwk_log.c94 fwk_timestamp_t timestamp = 0; in fwk_log_vsnprintf() local
111 timestamp = fwk_time_current(); in fwk_log_vsnprintf()
112 duration = fwk_time_stamp_duration(timestamp); in fwk_log_vsnprintf()
/SCP-firmware-master/product/rcar/module/rcar_arch_timer/src/
A Dmod_rcar_arch_timer.c86 static int set_timer(fwk_id_t dev_id, uint64_t timestamp) in set_timer() argument
95 timestamp = FWK_MAX(counter + GTIMER_MIN_TIMESTAMP, timestamp); in set_timer()
97 write_cntp_cval_el0(timestamp); in set_timer()
102 static int get_timer(fwk_id_t dev_id, uint64_t *timestamp) in get_timer() argument
104 *timestamp = read_cntp_cval_el0(); in get_timer()
229 fwk_timestamp_t timestamp; in mod_arch_timer_timestamp() local
234 timestamp = (FWK_S(1) / frequency) * counter; in mod_arch_timer_timestamp()
236 return timestamp; in mod_arch_timer_timestamp()
246 .timestamp = mod_arch_timer_timestamp, in mod_arch_timer_driver()
/SCP-firmware-master/module/timer/src/
A Dmod_timer.c50 uint64_t timestamp; member
81 uint64_t *timestamp) in _time_to_timestamp() argument
87 fwk_assert(timestamp != NULL); in _time_to_timestamp()
102 uint64_t *timestamp) in _timestamp_from_now() argument
120 *timestamp += counter; in _timestamp_from_now()
127 uint64_t timestamp, in _remaining() argument
142 if (timestamp < counter) { in _remaining()
192 while ((alarm_node != NULL) && (alarm_new->timestamp > alarm->timestamp)) { in _insert_alarm_ctx_into_active_queue()
229 if (timestamp == NULL) { in time_to_timestamp()
541 uint64_t timestamp = 0; in timer_isr() local
[all …]
/SCP-firmware-master/module/timer/include/
A Dmod_timer.h113 int (*set_timer)(fwk_id_t dev_id, uint64_t timestamp);
116 int (*get_timer)(fwk_id_t dev_id, uint64_t *timestamp);
160 uint64_t *timestamp);
237 uint64_t timestamp,
/SCP-firmware-master/module/gtimer/src/
A Dmod_gtimer.c104 static int set_timer(fwk_id_t dev_id, uint64_t timestamp) in set_timer() argument
124 timestamp = FWK_MAX(counter + GTIMER_MIN_TIMESTAMP, timestamp); in set_timer()
128 ctx->hw_timer->P_CVALL = (uint32_t)(timestamp & 0xFFFFFFFFUL); in set_timer()
129 ctx->hw_timer->P_CVALH = (uint32_t)(timestamp >> 32UL); in set_timer()
134 static int get_timer(fwk_id_t dev_id, uint64_t *timestamp) in get_timer() argument
146 *timestamp = ((uint64_t)counter_high << 32) | counter_low; in get_timer()
311 fwk_timestamp_t timestamp; in mod_gtimer_timestamp() local
319 timestamp = (FWK_S(1) / frequency) * counter; in mod_gtimer_timestamp()
321 return timestamp; in mod_gtimer_timestamp()
331 .timestamp = mod_gtimer_timestamp, in mod_gtimer_driver()
/SCP-firmware-master/framework/include/
A Dfwk_time.h164 fwk_duration_ns_t fwk_time_stamp_duration(fwk_timestamp_t timestamp);
232 fwk_timestamp_t (*timestamp)(const void *ctx); member
/SCP-firmware-master/module/sensor/include/
A Dmod_sensor.h310 struct mod_sensor_timestamp_info timestamp; member
371 struct mod_sensor_timestamp_info timestamp; member
395 uint64_t timestamp; member
/SCP-firmware-master/unit_test/unity_mocks/mocks/
A DMockfwk_time.h43 …_stamp_duration_ExpectAndReturn(timestamp, cmock_retval) fwk_time_stamp_duration_CMockExpectAndRet… argument
44 …ration_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, fwk_timestamp_t timestamp, fwk_duration_ns…
45 typedef fwk_duration_ns_t (* CMOCK_fwk_time_stamp_duration_CALLBACK)(fwk_timestamp_t timestamp, int…
A DMockfwk_time.c393 fwk_duration_ns_t fwk_time_stamp_duration(fwk_timestamp_t timestamp) in fwk_time_stamp_duration() argument
412 …fwk_duration_ns_t cmock_cb_ret = Mock.fwk_time_stamp_duration_CallbackFunctionPointer(timestamp, M… in fwk_time_stamp_duration()
423 …QUAL_MEMORY((void*)(&cmock_call_instance->Expected_timestamp), (void*)(&timestamp), sizeof(fwk_tim… in fwk_time_stamp_duration()
428 …cmock_call_instance->ReturnVal = Mock.fwk_time_stamp_duration_CallbackFunctionPointer(timestamp, M… in fwk_time_stamp_duration()
434 …ation(CMOCK_fwk_time_stamp_duration_CALL_INSTANCE* cmock_call_instance, fwk_timestamp_t timestamp);
435 …ration(CMOCK_fwk_time_stamp_duration_CALL_INSTANCE* cmock_call_instance, fwk_timestamp_t timestamp) in CMockExpectParameters_fwk_time_stamp_duration() argument
437 memcpy((void*)(&cmock_call_instance->Expected_timestamp), (void*)(&timestamp), in CMockExpectParameters_fwk_time_stamp_duration()
438 …sizeof(fwk_timestamp_t[sizeof(timestamp) == sizeof(fwk_timestamp_t) ? 1 : -1])); /* add fwk_timest… in CMockExpectParameters_fwk_time_stamp_duration()
477 …ration_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, fwk_timestamp_t timestamp, fwk_duration_ns… in fwk_time_stamp_duration_CMockExpectAndReturn() argument
487 CMockExpectParameters_fwk_time_stamp_duration(cmock_call_instance, timestamp); in fwk_time_stamp_duration_CMockExpectAndReturn()
/SCP-firmware-master/module/statistics/src/
A Dmod_stats.c330 fwk_timestamp_t timestamp = 0; in _get_curret_ts_us() local
334 timestamp = fwk_time_current(); in _get_curret_ts_us()
335 duration = fwk_time_stamp_duration(timestamp); in _get_curret_ts_us()
/SCP-firmware-master/module/scmi_sensor/src/
A Dmod_scmi_sensor.c204 .timestamp_low = (uint32_t)sensor_data->timestamp, in scmi_sensor_reading_respond()
205 .timestamp_high = (uint32_t)(sensor_data->timestamp >> 32), in scmi_sensor_reading_respond()
212 .timestamp_low = (uint32_t)sensor_data->timestamp, in scmi_sensor_reading_respond()
213 .timestamp_high = (uint32_t)(sensor_data->timestamp >> 32), in scmi_sensor_reading_respond()
/SCP-firmware-master/
A Dchange_log.md81 - morello: fix timestamp in debug logs
166 ` - scmi_sensor/sensor: add timestamp support
/SCP-firmware-master/doc/
A Dcmake_readme.md111 - `SCP_ENABLE_SENSOR_TIMESTAMP`: Enable/disable sensor timestamp support.

Completed in 29 milliseconds