Home
last modified time | relevance | path

Searched full:time (Results 1 – 25 of 2798) sorted by relevance

12345678910>>...112

/Zephyr-latest/doc/kernel/
Dtimeutil.rst3 Time Utilities
14 representation of this time.
16 Applications often need to correlate the Zephyr internal time with external
17 time scales used in daily life, such as local time or Coordinated Universal
18 Time. These systems interpret time in different ways and may have
20 local time offsets like daylight saving time.
23 clocks underlying the cycle counter, the offset between time estimated from
24 the Zephyr clock and the actual time in a "real" civil time scale is not
27 The time utilities API supports:
29 * :ref:`converting between time representations <timeutil_repr>`
[all …]
/Zephyr-latest/subsys/bindesc/
DKconfig.build_time5 bool "Build Time binary descriptors"
7 Add the build time binary descriptors
12 bool "Use local time"
14 If enabled, the build time used for the descriptors will express
15 the local time, rather than UTC.
21 If enabled, the file containing the build time definitions will
56 bool "Build time as UNIX time"
58 The UNIX time at which the image was compiled. This is an integer
62 bool "Build date and time as string"
64 The date and time of compilation as a string, such as "2023-09-29T17:43:14+0000"
[all …]
/Zephyr-latest/include/zephyr/sys/
Dtime_units.h19 * @defgroup timeutil_unit_apis Time Units Helpers
22 * @brief Various helper APIs for converting between time units.
46 /* Exhaustively enumerated, highly optimized time unit conversion API */
94 /* Time converter generator gadget. Selects from one of three
105 * const_hz - The hz arguments are known to be compile-time
155 * at compile time anyway.
308 * print " * Converts time values in $hfrom to $hto.\n";
320 * print " * \@param t Source time in $hfrom. uint64_t\n";
322 * print " * \@return The converted time value in $hto. $type\n";
347 * Converts time values in seconds to hardware cycles.
[all …]
Dtimeutil.h9 * @brief Utilities supporting operation on time data structures.
12 * inverse transformations are non-standard or require access to time
24 #include <time.h>
33 * @defgroup timeutil_apis Time Utility APIs
35 * @defgroup timeutil_repr_apis Time Representation APIs
44 * @brief Convert broken-down time to a POSIX epoch offset in seconds.
46 * @param tm pointer to broken down time.
48 * @return the corresponding time in the POSIX epoch time scale.
55 * @brief Convert broken-down time to a POSIX epoch offset in seconds.
57 * @param tm pointer to broken down time.
[all …]
/Zephyr-latest/include/zephyr/bluetooth/services/
Dcts.h11 * @brief Current Time Service (CTS)
12 * @defgroup bt_cts Current Time Service (CTS)
25 * @brief CTS time update reason bits as defined in the specification
30 /* When time is changed manually e.g. through UI */
32 /* If time is changed through external reference */
34 /* time changed due to timezone adjust */
36 /* time changed due to dst offset change */
41 * @brief Current Time service data format, Please refer to
56 /** @brief Current Time Service callback structure */
58 /** @brief Current Time Service notifications changed
[all …]
/Zephyr-latest/tests/lib/time/src/
Dmain.c8 #include <time.h>
17 time_initial_unaligned = time(NULL); in ZTEST()
18 zassert_true(time_initial_unaligned >= 0, "Fail to get time"); in ZTEST()
20 /* Wait until time() will return new value, which should be aligned */ in ZTEST()
24 if (time(NULL) != time_initial_unaligned) { in ZTEST()
29 time_initial = time(NULL); in ZTEST()
31 "Time (%d) should be one second larger than initially (%d)", in ZTEST()
37 time_current = time(NULL); in ZTEST()
39 "Current time (%d) does not match expected time (%d)", in ZTEST()
50 time_result = time(&time_param); in ZTEST()
[all …]
/Zephyr-latest/boards/native/native_posix/
Dtimer_model.c10 * - A real time clock
11 * - A one shot HW timer which can be used to awake the CPU at a given time
15 * About time in native_posix
18 * Real time clock
22 #include <time.h>
39 * Helper function to convert a 64 bit time in microseconds into a string.
45 static char *us_time_to_str(char *dest, uint64_t time) in us_time_to_str() argument
47 if (time != NEVER) { in us_time_to_str()
53 hour = (time / 3600U / 1000000U) % 24; in us_time_to_str()
54 minute = (time / 60U / 1000000U) % 60; in us_time_to_str()
[all …]
DKconfig22 bool "Slow down execution to real time"
26 When selected the execution of the process will be slowed down to real time.
27 (if there is a lot of load it may be slower than real time)
29 Note that this only decouples simulated time from real/wall time. In either
31 interact with some other driver/device which runs at real time.
/Zephyr-latest/scripts/native_simulator/native/src/
Dtimer_model.c11 * - A real time clock
12 * - A one shot HW timer which can be used to awake the CPU at a given time
18 #include <time.h>
34 * Helper function to convert a 64 bit time in microseconds into a string.
40 static char *us_time_to_str(char *dest, uint64_t time) in us_time_to_str() argument
42 if (time != NSI_NEVER) { in us_time_to_str()
48 hour = (time / 3600U / 1000000U) % 24; in us_time_to_str()
49 minute = (time / 60U / 1000000U) % 60; in us_time_to_str()
50 second = (time / 1000000U) % 60; in us_time_to_str()
51 us = time % 1000000; in us_time_to_str()
[all …]
/Zephyr-latest/doc/hardware/peripherals/
Drtc.rst3 Real-Time Clock (RTC)
15 * - Real-time clock
16 - Low power device tracking time using broken-down time
17 * - Real-time counter
18 - Low power counter which can be used to track time
20 - Acronym for real-time clock
22 An RTC is a low power device which tracks time using broken-down time.
30 trigger at a given time. These alarms are commonly used to wake up the
38 between broken-down time and the unix timestamp within the RTC
39 drivers, which internally used the broken-down time representation.
[all …]
/Zephyr-latest/include/zephyr/dt-bindings/adc/
Dadc.h11 /** Acquisition time is expressed in microseconds. */
13 /** Acquisition time is expressed in nanoseconds. */
15 /** Acquisition time is expressed in ADC ticks. */
17 /** Macro for composing the acquisition time value in given units. */
19 /** Value indicating that the default acquisition time should be used. */
23 #define ADC_ACQ_TIME_UNIT(time) (((time) >> 14) & BIT_MASK(2)) argument
24 #define ADC_ACQ_TIME_VALUE(time) ((time) & BIT_MASK(14)) argument
/Zephyr-latest/tests/benchmarks/sys_kernel/
DREADME.txt16 average time for one iteration is displayed.
25 DETAILS: Average time for 1 iteration: NNNN nSec
36 DETAILS: Average time for 1 iteration: NNNN nSec
48 DETAILS: Average time for 1 iteration: NNNN nSec
58 DETAILS: Average time for 1 iteration: NNNN nSec
70 DETAILS: Average time for 1 iteration: NNNN nSec
82 DETAILS: Average time for 1 iteration: NNNN nSec
92 DETAILS: Average time for 1 iteration: NNNN nSec
104 DETAILS: Average time for 1 iteration: NNNN nSec
116 DETAILS: Average time for 1 iteration: NNNN nSec
[all …]
/Zephyr-latest/include/zephyr/net/
Dnet_time.h9 * @brief Representation of nanosecond resolution elapsed time and timestamps in
16 * @defgroup net_time Network time representation.
35 * resolution scalar time span, future (positive) or past (negative) relative
36 * time or absolute timestamp referred to some local network uptime reference
42 * time within the network subsystem.
45 * local or remote interfaces to share a common notion of elapsed time within
46 * well-defined tolerances. Network uptime therefore differs from time
51 * locked) with respect to a common local or remote network reference time
55 * This also explains why network time, if represented as a cycle value of some
67 * time according to a more complex timescale (e.g. including leap seconds, time
[all …]
/Zephyr-latest/drivers/sensor/st/vl53l1x/
DKconfig1 # VL53L0X time of flight sensor configuration options
7 bool "VL53L1X time of flight sensor"
14 Enable driver for VL53L1X I2C-based time of flight sensor.
19 bool "Use interrupt mode for VL53L1X time of flight sensor"
23 Enable interrupt mode for VL53L1X time of flight sensor. Otherwise,
27 bool "Use xshut pin on VL53L1X time of flight sensor"
/Zephyr-latest/doc/connectivity/networking/api/
Dptp_time.rst4 Precision Time Protocol (PTP) time format
14 The PTP time struct can store time information in high precision
16 time in fractional nanoseconds accuracy. The PTP time format is used
/Zephyr-latest/samples/drivers/counter/maxim_ds3231/
DREADME.rst5 Interact with a DS3231 real-time clock using the counter API and dedicated driver API.
10 The `DS3231`_ temperature-compensated real-time clock is a
11 high-precision (2 ppm) battery backed clock that maintains civil time
28 counter value is read, and its value formatted as the date, time, day of
44 is set, the civil time will be advanced to the start of the next hour,
45 and the clock will be set to align that time with the time of the boot,
46 which in the output below is 34 ms in the past. The time required to
69 Five seconds is added to the current time and the civil time
71 fire at that time on the current day-of-week. The minute-resolution
74 Min Sec base time: 2019-07-19 06:00:07 Fri 200
[all …]
/Zephyr-latest/dts/bindings/adc/
Datmel,sam-adc.yaml25 startup-time:
29 ADC startup time in ADC clock cycles.
32 settling-time:
36 ADC settling time in ADC clock cycles. When the gain, offset
39 settling time before starting the tracking phase.
42 tracking-time:
46 ADC tracking time in ADC clock cycles. A minimal tracking time
/Zephyr-latest/lib/libc/common/
DCMakeLists.txt8 zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_ASCTIME source/time/asctime.c)
9 zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_GMTIME_R source/time/gmtime_r.c)
10 zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_LOCALTIME_R_UTC source/time/localtime_r_utc.c)
11 zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_CTIME source/time/ctime.c)
12 zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_TIME source/time/time.c)
/Zephyr-latest/tests/boards/native_sim/rtc/src/
Dmain.c13 #include <time.h>
20 static char *us_time_to_str(char *dest, uint64_t time) in us_time_to_str() argument
22 if (time != NSI_NEVER) { in us_time_to_str()
28 hour = (time / 3600U / 1000000U) % 24; in us_time_to_str()
29 minute = (time / 60U / 1000000U) % 60; in us_time_to_str()
30 second = (time / 1000000U) % 60; in us_time_to_str()
31 us = time % 1000000; in us_time_to_str()
42 #define TOLERANCE 20 /* ms Tolerance in native_posix time after WAIT_TIME */
46 * @brief Test native_posix real time control
51 uint64_t time; in ZTEST() local
[all …]
/Zephyr-latest/include/zephyr/drivers/usb_c/
Dusbc_tc.h50 * @brief From the time the Sink is detached until the Source removes VBUS and reaches
57 * @brief From the time the Source supplied VBUS in the Attached.SRC state.
63 * @brief From the time a Sink with accessory support enters the PoweredAccessory state
70 * @brief From the time that a Sink is detached or as directed until the VCONN supply is
77 * @brief Response time for a Sink to adjust its current consumption to be in the specified
96 * @brief The minimum time a DRP shall complete transitions between Source and Sink roles
103 * @brief The maximum time a DRP shall complete transitions between Source and Sink roles
110 * @brief Minimum wait time associated with the Try.SRC state.
116 * @brief Maximum wait time associated with the Try.SRC state.
122 * @brief Minimum wait time associated with the Try.SNK state.
[all …]
/Zephyr-latest/drivers/ieee802154/
DKconfig.dw100013 int "SNIFF on time"
17 SNIFF on time in unit of PAC. The minimum on time is the duration
18 of two PACs. The SNIFF counter always adds 1 PAC unit to the on-time
23 int "SNIFF off time"
27 SNIFF off time in unit of approximate 1 microsecond.
/Zephyr-latest/samples/fuel_gauge/max17048/
DREADME.rst25 * Total time until battery is fully charged or discharged
32 The charging state and the time to full/empty are estimated and based on the last consumption avera…
33 if you plug/unplug a charger it will take some time until it is actually detected by the chip. Don'…
34 to see in real time the charging status change because it will not work. If you really need to know…
43 Time to empty 1911
44 Time to full 0
47 Time to empty 1911
48 Time to full 0
/Zephyr-latest/samples/drivers/rtc/
DREADME.rst2 :name: Real-Time Clock (RTC)
5 Set and read the date/time from a Real-Time Clock.
11 to set and read the date/time from RTC and display on the console
30 RTC date and time: 2024-11-17 04:19:00
31 RTC date and time: 2024-11-17 04:19:01
/Zephyr-latest/lib/libc/common/source/time/
Dgmtime_r.c14 #include <time.h>
21 /** Convert a UNIX time to civil time.
24 * to the POSIX standard civil time representation. Any adjustments
25 * due to time zone, leap seconds, or a different epoch must be
26 * applied to @p time before invoking this function.
28 * @param time the time represented as seconds.
30 * @return the time information for corresponding to the provided
74 /* Convert a UNIX time to civil time.
77 * to the POSIX standard civil time representation. Any adjustments
78 * due to time zone, leap seconds, or a different epoch must be
[all …]
/Zephyr-latest/boards/native/native_sim/
DKconfig30 bool "Slow down execution to real time"
34 When selected the execution of the process will be slowed down to real time.
35 (if there is a lot of load it may be slower than real time)
37 Note that this only decouples simulated time from real/wall time. In either
39 interact with some other driver/device which runs at real time.
46 bool "Slow down execution to real time (native_posix compat)"

12345678910>>...112