/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_rw_cbor.c | 4 * SPDX-License-Identifier: Apache-2.0 19 #include <time.h> 33 #define CPKT_CBOR_W_SZ(pos, cpkt) ((size_t)(pos) - (size_t)(cpkt)->data - (size_t)(cpkt)->offset) 35 #define ICTX_CBOR_R_SZ(pos, ictx) ((size_t)pos - (size_t)(ictx)->in_cpkt->data - (ictx)->offset) 37 static int put_time(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, time_t value) in put_time() argument 39 /* CBOR time output format is unspecified but SenML CBOR uses string format. in put_time() 43 char time_str[sizeof("1970-01-01T00:00:00-00:00")] = { 0 }; in put_time() 50 LOG_ERR("unable to convert from secs since Epoch to a date/time construct"); in put_time() 51 return -EINVAL; in put_time() 54 /* Time construct to a string. Time in UTC, offset to local time not known */ in put_time() [all …]
|
/Zephyr-latest/dts/bindings/usb/ |
D | renesas,smartbond-usbd.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "renesas,smartbond-usbd" 8 include: usb-ep.yaml 11 dma-min-transfer-size: 16 ep-out-buf-size: 20 Buffer size for OUT end points 0-3. 22 fifo-read-threshold: 33 bytes stored in USB_RXSx_REG.USB_RXCOUNT takes enough time to 37 reduce overall ISR time to 1/3 of time that would be needed 40 iso-out-mps: [all …]
|
/Zephyr-latest/drivers/counter/ |
D | rtc_mcp7940n.c | 2 * Copyright (c) 2019-2020 Peter Bigot Consulting, LLC 5 * SPDX-License-Identifier: Apache-2.0 24 #include <time.h> 39 /* tm struct uses years since 1900 but unix time uses years since 44 /* Macro used to decode BCD to UNIX time to avoid potential copy and paste 72 /** @brief Convert bcd time in device registers to UNIX time 76 * @retval returns unix time. 80 struct mcp7940n_data *data = dev->data; in decode_rtc() 82 struct tm time = { 0 }; in decode_rtc() local 84 time.tm_sec = RTC_BCD_DECODE(data->registers.rtc_sec.sec); in decode_rtc() [all …]
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_intel_adsp.h | 1 /* SPDX-License-Identifier: Apache-2.0 */ 46 * Second Time Out Reset Enable 49 * When set, it allow the DSP Core reset to take place upon second time out of the 120 * @brief Second Time Out Reset Enable 122 * When set, it allow the DSP Core reset to take place upon second time out of the watchdog timer. 133 * Second Time Out Reset Enable 136 * When set, it allow the DSP Core reset to take place upon second time out of the
|
D | wdt_dw.h | 1 /* SPDX-License-Identifier: Apache-2.0 */ 19 * and programmed based on user-defined options. 57 * by the time a second timeout occurs then generate a system reset 86 #define TORR_USER0_OR_64K 0x0 /* Time out of WDT_USER_TOP_0 or 64K Clocks */ 87 #define TORR_USER1_OR_128K 0x1 /* Time out of WDT_USER_TOP_1 or 128K Clocks */ 88 #define TORR_USER2_OR_256K 0x2 /* Time out of WDT_USER_TOP_2 or 256K Clocks */ 89 #define TORR_USER3_OR_512K 0x3 /* Time out of WDT_USER_TOP_3 or 512K Clocks */ 90 #define TORR_USER4_OR_1M 0x4 /* Time out of WDT_USER_TOP_4 or 1M Clocks */ 91 #define TORR_USER5_OR_2M 0x5 /* Time out of WDT_USER_TOP_5 or 2M Clocks */ 92 #define TORR_USER6_OR_4M 0x6 /* Time out of WDT_USER_TOP_6 or 4M Clocks */ [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/transport/ |
D | Kconfig.shell | 2 # Copyright Nordic Semiconductor ASA 2020-2022. All rights reserved. 3 # SPDX-License-Identifier: Apache-2.0 40 If enabled, will time out a partial or erroneous MCUmgr command 41 received via the shell transport after a given time. This prevents 50 Time (in msec) after receiving a valid MCUmgr header on the serial 51 transport before considering it as timed out and returning the shell
|
/Zephyr-latest/doc/kernel/memory_management/ |
D | demand_paging.rst | 8 conceptually divided in page-sized page frames as regions to hold data. 17 the eviction algorithm is invoked to select a data page to be paged out, 22 paged out and the corresponding page frame is now free. The paging code 28 There are functions where paging in and out can be invoked manually 34 used to page out data pages where they are not going to be accessed for 35 a considerable amount of time. This frees up page frames so that the next 43 A data page is a page-sized region of data. It may exist in a page frame, 44 or be paged out to some backing store. Its location can always be looked 50 A page frame is a page-sized physical memory region in RAM. It is a 61 and should never be paged out. [all …]
|
/Zephyr-latest/drivers/mdio/ |
D | Kconfig.nxp_enet_qos | 2 # SPDX-License-Identifier: Apache-2.0 18 of an MDIO bus transaction before timing out 19 Timeout time is: 23 int "Time between rechecks of transaction status (us)" 26 The amount of time in microseconds that the driver should 28 Timeout time is:
|
D | Kconfig.nxp_enet | 2 # SPDX-License-Identifier: Apache-2.0 16 int "NXP ENET MDIO Timeout time" 19 Time in microseconds before an MDIO transaction that has not 20 finished is considered to have timed out.
|
/Zephyr-latest/dts/bindings/sensor/ |
D | ams,tmd2620.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 include: [sensor-device.yaml, i2c-device.yaml] 11 int-gpios: 12 type: phandle-array 15 The interrupt pin of TMD2620 is open-drain, active low. 17 as pull-up, active low. 19 proximity-gain: 24 - 1 25 - 2 26 - 4 [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/services/ |
D | cts.h | 4 * SPDX-License-Identifier: Apache-2.0 11 * @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 */ [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/sample_test/test_scripts/ |
D | run.sh | 3 # SPDX-License-Identifier: Apache-2.0 5 set -eu 20 # and is useful for figuring out what is happening on the PHYsical layer (e.g. 28 # option), something very wrong can still happen and this additional time-out 31 # It measures wall-clock time, not simulated time. E.g. a test that simulates 5 36 # - Do not set it to a value lower or equal to the default. 37 # - If the test takes over 5 seconds of runtime, set `EXECUTE_TIMEOUT` to at 38 # least 5 times the run-time on your machine. 42 # simulated time, unless both devices exit. 44 # If you are not early-exiting the devices (e.g. using `TEST_PASS_AND_EXIT()`), [all …]
|
/Zephyr-latest/dts/bindings/regulator/ |
D | raspberrypi,core-supply-regulator.yaml | 2 # SPDX-License-Identifier: Apache-2.0 7 compatible: "raspberrypi,core-supply-regulator" 10 - name: base.yaml 11 - name: regulator.yaml 12 property-allowlist: 13 - regulator-always-on 14 - regulator-boot-on 15 - regulator-min-microvolt 16 - regulator-max-microvolt 17 - regulator-allowed-modes [all …]
|
/Zephyr-latest/tests/bluetooth/controller/ctrl_isoal/src/ |
D | isoal_test_common.c | 4 * SPDX-License-Identifier: Apache-2.0 53 buf->pdu_meta.meta = &buf->meta; in isoal_test_init_rx_pdu_buffer() 54 buf->pdu_meta.pdu = (struct pdu_iso *) &buf->pdu[0]; in isoal_test_init_rx_pdu_buffer() 72 * @param[in] timestamp PDU reception Time (Meta Information) 74 * @param[out] pdu_meta PDU buffer including meta structure 85 zassert_not_null(pdu_meta->meta, ""); in isoal_test_create_unframed_pdu() 86 zassert_not_null(pdu_meta->pdu, ""); in isoal_test_create_unframed_pdu() 88 memset(pdu_meta->meta, 0, sizeof(*pdu_meta->meta)); in isoal_test_create_unframed_pdu() 89 memset(pdu_meta->pdu, 0, sizeof(*pdu_meta->pdu)); in isoal_test_create_unframed_pdu() 91 pdu_meta->meta->payload_number = payload_number; in isoal_test_create_unframed_pdu() [all …]
|
/Zephyr-latest/dts/bindings/led_strip/ |
D | worldsemi,ws2812-i2s.yaml | 2 # SPDX-License-Identifier: Apache-2.0 10 compatible: "worldsemi,ws2812-i2s" 12 include: [i2s-device.yaml, ws2812.yaml] 16 out-active-low: 20 nibble-one: 23 description: 4-bit value to shift out for a 1 pulse. 25 nibble-zero: 28 description: 4-bit value to shift out for a 0 pulse. 30 lrck-period: 35 extra-wait-time:
|
/Zephyr-latest/subsys/net/lib/tftp/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 16 module-dep=NET_LOG 17 module-str=Log level for TFTP 18 module-help=Enables tftp debug messages. 22 int "Maximum amount of time the TFTP Client will wait for a response from the server." 25 Maximum amount of time (in msec) that the TFTP Client will wait for 26 data from the TFTP Server. Once this time has elapsed, the TFTP Client 33 Once the TFTP Client sends out a request, it will wait 35 However, if it doesn't arrive within the given time we will re-transmit 37 time to this request. This number dictates the number of times we will [all …]
|
/Zephyr-latest/drivers/rtc/ |
D | rtc_mc146818.c | 4 * SPDX-License-Identifier: Apache-2.0 22 /* Time indices in RTC RAM */ 40 /* Alarm time indices in RTC RAM */ 45 /* Registers A-D indeces in RTC RAM */ 70 /* Update-ended Interrupt Enable bit in REG_B */ 91 /* Update-end Flag bit in REG_C */ 100 /* Maximum and Minimum values of time */ 113 #define MIN_YEAR_DIFF 0 /* YEAR - 1900 */ 114 #define MAX_YEAR_DIFF 99 /* YEAR - 1999 */ 148 if (timeptr->tm_sec < MIN_SEC || timeptr->tm_sec > MAX_SEC) { in rtc_mc146818_validate_time() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | rtc.h | 5 * SPDX-License-Identifier: Apache-2.0 10 * @brief Public real time clock driver API 34 * @brief Mask for alarm time fields to enable when setting alarm time 35 * @name RTC Alarm Time Mask 53 * @brief Structure for storing date and time values with sub-second precision. 55 * @details The structure is 1-1 mapped to the struct tm for the members 56 * \p tm_sec to \p tm_isdst making it compatible with the standard time library. 67 int tm_year; /**< Year - 1900 */ 68 int tm_wday; /**< Day of the week [0, 6] (Sunday = 0) (Unknown = -1) */ 69 int tm_yday; /**< Day of the year [0, 365] (Unknown = -1) */ [all …]
|
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/ |
D | akm09918c_decoder.c | 3 * SPDX-License-Identifier: Apache-2.0 17 /* This sensor lacks a FIFO; there will always only be one frame at a time. */ in akm09918c_decoder_get_frame_count() 34 return -ENOTSUP; in akm09918c_decoder_get_size_info() 39 * +/- 49.12 Gauss. 43 static int akm09918c_convert_raw_to_q31(int16_t reading, q31_t *out) in akm09918c_convert_raw_to_q31() argument 49 *out = CLAMP(intermediate, INT32_MIN, INT32_MAX); in akm09918c_convert_raw_to_q31() 67 struct sensor_three_axis_data *out = data_out; in akm09918c_decoder_decode() local 69 out->header.base_timestamp_ns = edata->header.timestamp; in akm09918c_decoder_decode() 70 out->header.reading_count = 1; in akm09918c_decoder_decode() 71 out->shift = AKM09918C_SHIFT; in akm09918c_decoder_decode() [all …]
|
/Zephyr-latest/tests/kernel/pending/ |
D | README.txt | 8 -------------------------------------------------------------------------------- 17 -------------------------------------------------------------------------------- 21 Problems caused by out-dated project information can be addressed by 28 # and restore pre-defined configuration info 30 -------------------------------------------------------------------------------- 34 ***** BOOTING ZEPHYR OS vxxxx - BUILD: xxxxx ***** 35 tc_start() - Test Preemptible Threads Pending on Kernel Objects 37 Testing fifos time-out in correct order ... 40 Testing lifos time-out in correct order ... 44 PASS - task_monitor.
|
/Zephyr-latest/tests/drivers/rtc/rtc_utils/src/ |
D | test_rtc_utils.c | 4 * SPDX-License-Identifier: Apache-2.0 13 /* Arbitrary out-out-range values. */ in ZTEST() 34 zassert_false(ret, "RTC should reject invalid alarm time in field %zu.", j); in ZTEST()
|
/Zephyr-latest/tests/kernel/pending/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 38 #define OFFLOAD_WORKQUEUE_PRIORITY (-1) 116 k_sem_give(offload->sem); in sync_threads() 117 k_sem_give(offload->sem); in sync_threads() 118 k_sem_give(offload->sem); in sync_threads() 119 k_sem_give(offload->sem); in sync_threads() 132 /* Expect this to time out */ in fifo_tests() 152 if (data->data != *state) { in fifo_tests() 154 data->data, *state, timeout); in fifo_tests() 170 /* Expect this to time out */ in lifo_tests() [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bme280/ |
D | bme280_decoder.c | 3 * SPDX-License-Identifier: Apache-2.0 13 int32_t ret = -ENOTSUP; in bme280_decoder_get_frame_count() 19 /* This sensor lacks a FIFO; there will always only be one frame at a time. */ in bme280_decoder_get_frame_count() 22 *frame_count = edata->has_temp ? 1 : 0; in bme280_decoder_get_frame_count() 25 *frame_count = edata->has_press ? 1 : 0; in bme280_decoder_get_frame_count() 28 *frame_count = edata->has_humidity ? 1 : 0; in bme280_decoder_get_frame_count() 52 return -ENOTSUP; in bme280_decoder_get_size_info() 65 struct sensor_q31_data *out = data_out; in bme280_decoder_decode() local 67 out->header.base_timestamp_ns = edata->header.timestamp; in bme280_decoder_decode() 68 out->header.reading_count = 1; in bme280_decoder_decode() [all …]
|
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/ |
D | core.rst | 21 the LPN API allows the application to trigger the polling at any time through 42 can make flash wear out sooner or later. To mitigate this, 49 RPL entry (or entries) at any time (or sufficiently before power loss) 53 Setting :kconfig:option:`CONFIG_BT_MESH_RPL_STORE_TIMEOUT` to -1 allows to completely 54 switch off the timer, which can help to significantly reduce flash wear out. 56 requires that sufficient power backup is available from the time this API 61 vulnerability and flash wear out. 66 :kconfig:option:`CONFIG_BT_MESH_RPL_STORE_TIMEOUT` to -1 and not storing 109 This means that the system workqueue is blocked for the time it takes to store 111 will make the device non-responsive for a noticeable amount of time.
|
/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 18 module-dep = NET_LOG 19 module-str = Log level for IEEE 802.15.4 20 module-help = Enables IEEE 802.15.4 code to output debug messages. 27 Enable printing out in/out 802.15.4 packets. This is extremely 31 prompt "Which packet do you want to print-out?" 36 bool "Print-out both RX and TX packets" 38 This will print-out both received and transmitted packets. 41 bool "Print-out only RX packets" 43 This will print-out received packets only. [all …]
|