/Zephyr-latest/dts/bindings/input/ |
D | xptek,xpt2046.yaml | 2 # SPDX-License-Identifier: Apache-2.0 7 include: spi-device.yaml 10 int-gpios: 11 type: phandle-array 15 touchscreen-size-x: 20 touchscreen-size-y: 25 min-x: 28 description: minimum raw X value reported. 30 min-y: 33 description: minimum raw Y value reported. [all …]
|
D | st,stmpe811.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 include: [i2c-device.yaml, touchscreen-common.yaml] 11 int-gpios: 12 type: phandle-array 17 raw-x-min: 20 Signed raw X axis start for scaling the reported coordinates. 23 raw-y-min: 26 Signed raw Y axis start for scaling the reported coordinates. 29 raw-x-max: 32 Raw X axis end for scaling the reported coordinates. [all …]
|
D | analog-axis.yaml | 2 # SPDX-License-Identifier: Apache-2.0 12 #include <zephyr/dt-bindings/input/input-event-codes.h> 15 compatible = "analog-axis"; 16 poll-period-ms = <15>; 17 axis-x { 18 io-channels = <&adc 0>; 19 in-deadzone = <50>; 20 in-min = <100>; 21 in-max = <800>; 26 compatible: "analog-axis" [all …]
|
/Zephyr-latest/boards/st/st25dv_mb1283_disco/ |
D | st25dv_mb1283_disco.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 9 #include "st/f4/stm32f405vgtx-pinctrl.dtsi" 10 #include <zephyr/dt-bindings/input/input-event-codes.h> 11 #include <zephyr/dt-bindings/display/ili9xxx.h> 19 zephyr,shell-uart = &usart6; 26 compatible = "gpio-leds"; 36 compatible = "gpio-keys"; 69 compatible = "zephyr,mipi-dbi-spi"; 70 reset-gpios = <&gpioc 1 GPIO_ACTIVE_HIGH>; [all …]
|
/Zephyr-latest/drivers/sensor/st/lis2dh/ |
D | lis2dh.c | 4 * SPDX-License-Identifier: Apache-2.0 23 * Use values for low-power mode in DS "Mechanical (Sensor) characteristics", 39 * maximum converted value we can get is: max(raw_val) * max(scale) in lis2dh_convert() 40 * max(raw_val >> 4) = +/- 2^11 in lis2dh_convert() 41 * max(scale) = 114921 in lis2dh_convert() 42 * max(converted_val) = 235358208 which is less than 2^31 in lis2dh_convert() 45 val->val1 = converted_val / 1000000; in lis2dh_convert() 46 val->val2 = converted_val % 1000000; in lis2dh_convert() 51 int ret = -ENOTSUP; in lis2dh_sample_fetch_temp() 54 struct lis2dh_data *lis2dh = dev->data; in lis2dh_sample_fetch_temp() [all …]
|
/Zephyr-latest/boards/st/stm32f429i_disc1/ |
D | stm32f429i_disc1.dts | 5 * SPDX-License-Identifier: Apache-2.0 8 /dts-v1/; 10 #include <st/f4/stm32f429zitx-pinctrl.dtsi> 11 #include <zephyr/dt-bindings/display/ili9xxx.h> 12 #include <zephyr/dt-bindings/input/input-event-codes.h> 20 zephyr,shell-uart = &usart1; 29 compatible = "zephyr,memory-region", "mmio-sram"; 32 zephyr,memory-region = "SDRAM2"; 36 compatible = "gpio-leds"; 48 compatible = "gpio-keys"; [all …]
|
/Zephyr-latest/samples/drivers/jesd216/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 40 [JESD216_MODE_111] = "1-1-1", 41 [JESD216_MODE_112] = "1-1-2", 42 [JESD216_MODE_114] = "1-1-4", 43 [JESD216_MODE_118] = "1-1-8", 44 [JESD216_MODE_122] = "1-2-2", 45 [JESD216_MODE_144] = "1-4-4", 46 [JESD216_MODE_188] = "1-8-8", 47 [JESD216_MODE_222] = "2-2-2", 48 [JESD216_MODE_444] = "4-4-4", [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | blob.h | 4 * SPDX-License-Identifier: Apache-2.0 27 #define BLOB_CHUNK_SIZE_MAX(sdu_max) ((sdu_max) - BLOB_CHUNK_SDU_OVERHEAD) 46 * is configured as a raw number, but encoded as log2. 53 #define _BLOB_LOG_2_CEIL(l, x) ((x) <= (1U << l)) ? l : argument 54 #define _BLOB_LOG_2_FLOOR(l, x) ((x) < (1U << (l + 1))) ? l : argument 56 #define BLOB_BLOCK_SIZE_LOG_CEIL(x) (LISTIFY(20, _BLOB_LOG_2_CEIL, (), x) 20) argument 57 #define BLOB_BLOCK_SIZE_LOG_FLOOR(x) (LISTIFY(20, _BLOB_LOG_2_FLOOR, (), x) 20) argument 66 MAX(sizeof(((struct bt_mesh_blob_block *)0)->missing), \ 69 MAX(sizeof(((struct bt_mesh_blob_block *)0)->missing), \ 72 #define BLOB_BLOCK_REPORT_STATUS_MSG_MAXLEN sizeof(((struct bt_mesh_blob_srv *)0)->block.missing) [all …]
|
/Zephyr-latest/samples/subsys/logging/syst/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 25 /* The length of the message (max. 8) in byte */ 55 LOG_DBG("Debug message example, %d, %d, %d, 0x%x", 1, 2, 3, 4); in log_msgs() 67 LOG_DBG("mixed str %s %s %s %s %s %s %s", vs0, "---", vs0, "---", vs1, "---", vs1); in log_msgs() 84 /* raw string */ in log_msgs() 85 printk("hello sys-t on board %s\n", CONFIG_BOARD); in log_msgs() 116 /* raw string */ in main()
|
/Zephyr-latest/tests/drivers/i2c/i2c_bme688/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 27 zassert_equal(err, 0, "i2c_read(%x)' failed with error: %d\n", register_address, err); in read_sensor_register() 28 TC_PRINT("I2C read reg, addr: 0x%x, val: 0x%x\n", register_address, response); in read_sensor_register() 39 "Too many bytes to read %d, max burst read size is set to: %d", in burst_read_sensor_registers() 43 zassert_equal(err, 0, "i2c_burst_read(%x, %x)' failed with error: %d\n", in burst_read_sensor_registers() 45 TC_PRINT("I2C burst read, start addr: 0x%x, number of bytes: %d\n", in burst_read_sensor_registers() 55 zassert_equal(err, 0, "i2c_reg_write_byte(%x, %x)' failed with error: %d\n", in write_sensor_register() 57 TC_PRINT("I2C reg write, addr: 0x%x, val: 0x%x\n", register_address, value); in write_sensor_register() 82 coeffs->par_h1 = (uint16_t)(((uint16_t)register_data[HUMI_PAR_H1_MSB_BUF_POSITION] << 4) | in read_calibration_coeffs() 85 coeffs->par_h2 = (uint16_t)(((uint16_t)register_data[HUMI_PAR_H2_MSB_BUF_POSITION] << 4) | in read_calibration_coeffs() [all …]
|
/Zephyr-latest/drivers/timer/ |
D | ite_it8xxx2_timer.c | 3 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/interrupt-controller/ite-intc.h> 19 #define COUNT_1US (EC_FREQ / USEC_PER_SEC - 1) 28 /* Event timer max count is 512 sec (base on clock source 32768Hz) */ 40 /* Busy wait high timer max count is 71.58min (base on clock source 1MHz) */ 72 /* Event timer max count is as how much system (kernel) tick */ 135 timer2_reg->ET2PSR = EXT_PSR_32P768K; in timer_5ms_one_shot() 142 timer2_reg->ET2CNTLH2R = (uint8_t)((hw_cnt >> 16) & 0xff); in timer_5ms_one_shot() 143 timer2_reg->ET2CNTLHR = (uint8_t)((hw_cnt >> 8) & 0xff); in timer_5ms_one_shot() 144 timer2_reg->ET2CNTLLR = (uint8_t)(hw_cnt & 0xff); in timer_5ms_one_shot() [all …]
|
/Zephyr-latest/scripts/west_commands/runners/ |
D | canopen_program.py | 3 # SPDX-License-Identifier: Apache-2.0 5 '''Runner for performing program download over CANopen (DSP 302-3).''' 20 # Default Python-CAN context to use, see python-can documentation for details 50 setattr(namespace, self.dest, not option_string.startswith('--no-')) 53 '''Runner front-end for CANopen.''' 89 def dev_id_help(cls) -> str: 95 parser.add_argument('--node-id', dest='dev_id', 98 parser.add_argument('--can-context', default=DEFAULT_CAN_CONTEXT, 99 help=f'Python-CAN context to use (default: {DEFAULT_CAN_CONTEXT})') 100 parser.add_argument('--program-number', type=int, default=DEFAULT_PROGRAM_NUMBER, [all …]
|
/Zephyr-latest/drivers/input/ |
D | input_stmpe811.c | 3 * SPDX-License-Identifier: Apache-2.0 84 * - bits [1-3] X, Y only acquisition mode 89 * Analog-to-digital Converter 91 * - bit [3] selects 12 bit ADC 92 * - bits [4-6] select ADC conversion time = 80 99 * - 00 : 1.625 MHz 100 * - 01 : 3.25 MHz 101 * - 10 : 6.5 MHz 102 * - 11 : 6.5 MHz 109 * - Fractional part : 7 [all …]
|
/Zephyr-latest/drivers/adc/ |
D | adc_cc13xx_cc26xx.c | 4 * SPDX-License-Identifier: Apache-2.0 35 * Channels are based on ADC_COMPB_IN_* hal_ti definitions, max. index is 16 (included). 45 /** Maps standard unit sample times (us) to internal (raw hal_ti register) values */ 85 data->repeat_buffer = data->buffer; in adc_context_start_sampling() 87 AUXADCEnableSync(data->ref_source, data->sample_time, AUXADC_TRIGGER_MANUAL); in adc_context_start_sampling() 98 data->buffer = data->repeat_buffer; in adc_context_update_buffer_pointer() 100 data->buffer++; in adc_context_update_buffer_pointer() 106 struct adc_cc13xx_cc26xx_data *data = dev->data; in adc_cc13xx_cc26xx_init() 107 const struct adc_cc13xx_cc26xx_cfg *config = dev->config; in adc_cc13xx_cc26xx_init() 109 data->dev = dev; in adc_cc13xx_cc26xx_init() [all …]
|
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/ |
D | edtlib.py | 3 # SPDX-License-Identifier: BSD-3-Clause 17 but a binding can also come from a 'child-binding:' key in the binding for the 23 The top-level entry points for the library are the EDT and Binding classes. 31 # -------------------- 47 # - Consider using @property for APIs that don't need parameters. It makes 51 # - Think about the data type of the thing you're exposing. Exposing something 55 # - Avoid get_*() prefixes on functions. Name them after the thing they return 60 # - Don't expose dtlib stuff directly. 62 # - Add documentation for any new APIs you add. 108 The free-form description of the binding, or None. [all …]
|
/Zephyr-latest/include/zephyr/drivers/i3c/ |
D | ccc.h | 5 * SPDX-License-Identifier: Apache-2.0 91 * Set Max Write Length (Broadcast or Direct) 98 * Set Max Read Length (Broadcast or Direct) 117 /** Enter HDR Mode (HDR-DDR) (Broadcast) */ 118 #define I3C_CCC_ENTHDR(x) (0x20U + (x)) argument 120 /** Enter HDR Mode 0 (HDR-DDR) (Broadcast) */ 123 /** Enter HDR Mode 1 (HDR-TSP) (Broadcast) */ 126 /** Enter HDR Mode 2 (HDR-TSL) (Broadcast) */ 129 /** Enter HDR Mode 3 (HDR-BT) (Broadcast) */ 171 /** Multi-Lane Data Transfer Control (Broadcast) */ [all …]
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_nxp_fs26.c | 4 * SPDX-License-Identifier: Apache-2.0 30 #define WD_ERR_LIMIT(x) _CONCAT(WD_ERR_LIMIT_, x) argument 31 #define WD_RFR_LIMIT(x) _CONCAT(WD_RFR_LIMIT_, x) argument 32 #define WDW_PERIOD(x) _CONCAT(_CONCAT(WDW_PERIOD_, x), MS) argument 34 #define BAD_WD_REFRESH_ERROR_STRING(x) \ argument 35 ((((x) & BAD_WD_DATA) ? "error in the data" : \ 36 (((x) & BAD_WD_TIMING) ? "error in the timing (window)" \ 56 uint8_t raw; member 141 for (i = size; i > 0; i--) { in fs26_calcrc() 176 tx_buf = (uint32_t)(FS26_SET_REG_ADDR(tx_frame->addr) in fs26_spi_transceive() [all …]
|
/Zephyr-latest/drivers/can/ |
D | can_shell.c | 5 * SPDX-License-Identifier: Apache-2.0 36 /* zephyr-keep-sorted-start */ 38 CAN_SHELL_MODE_MAPPING("listen-only", CAN_MODE_LISTENONLY), 40 CAN_SHELL_MODE_MAPPING("manual-recovery", CAN_MODE_MANUAL_RECOVERY), 42 CAN_SHELL_MODE_MAPPING("one-shot", CAN_MODE_ONE_SHOT), 43 CAN_SHELL_MODE_MAPPING("triple-sampling", CAN_MODE_3_SAMPLES), 44 /* zephyr-keep-sorted-stop */ 88 uint8_t nbytes = can_dlc_to_bytes(frame->dlc); in can_shell_print_frame() 98 shell_fprintf_normal(sh, "(%05d) ", frame->timestamp); in can_shell_print_frame() 101 shell_fprintf_normal(sh, "%s ", dev->name); in can_shell_print_frame() [all …]
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_litex.c | 4 * SPDX-License-Identifier: Apache-2.0 66 …* https://github.com/Digilent/Zybo-hdmi-out/blob/b991fff6e964420ae3c00c3dbee52f2ad748b3ba/sdk/disp… 213 return litex_clk_filter_table[glob_mul - 1]; in litex_clk_lookup_filter() 219 return litex_clk_lock_table[glob_mul - 1]; in litex_clk_lookup_lock() 234 int assert = (1 << (drp[reg].size * BITS_PER_BYTE)) - 1; in litex_clk_assert_reg() 251 timeout = ldev->timeout.lock; in litex_clk_wait() 253 timeout = ldev->timeout.drdy; in litex_clk_wait() 257 timeout--; in litex_clk_wait() 261 LOG_WRN("Timeout occured when waiting for the register: 0x%x", reg); in litex_clk_wait() 262 return -ETIME; in litex_clk_wait() [all …]
|
/Zephyr-latest/drivers/misc/coresight/ |
D | nrf_etr.c | 4 * SPDX-License-Identifier: Apache-2.0 52 fmt = "D%s\t%02x "; \ 55 fmt = "D%s\t%04x "; \ 58 fmt = "D%s\t%08x "; \ 61 fmt = "D%s\t%016x "; \ 71 static const uint32_t wsize_mask = DT_REG_SIZE(ETR_BUFFER_NODE) / sizeof(int) - 1; 72 static const uint32_t wsize_inc = DT_REG_SIZE(ETR_BUFFER_NODE) / sizeof(int) - 1; 184 uint64_t ts = packet->timestamp; in log_message_process() 185 uint8_t level = packet->hdr.level; in log_message_process() 186 uint16_t plen = packet->hdr.package_len; in log_message_process() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | net_ip.h | 10 * SPDX-License-Identifier: Apache-2.0 50 #define PF_LOCAL 6 /**< Inter-process communication */ 51 #define PF_UNIX PF_LOCAL /**< Inter-process communication */ 60 #define AF_LOCAL PF_LOCAL /**< Inter-process communication */ 61 #define AF_UNIX PF_UNIX /**< Inter-process communication */ 65 IPPROTO_IP = 0, /**< IP protocol (pseudo-val for setsockopt() */ 74 IPPROTO_RAW = 255, /**< RAW IP packets */ 91 SOCK_RAW /**< RAW socket type */ 94 /** @brief Convert 16-bit value from network to host byte order. 96 * @param x The network byte order value to convert. [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | shell.c | 4 * SPDX-License-Identifier: Apache-2.0 20 /* Private includes for raw Network & Transport layer access */ 89 " 0x%04x", cid); in fault_get_reg() 90 return -EINVAL; in fault_get_reg() 105 return -EINVAL; in fault_clear() 117 return -EINVAL; in fault_test() 121 return -EINVAL; in fault_test() 171 shell_print_ctx("Health Test ID 0x%02x Company ID " in show_faults() 172 "0x%04x: no faults", test_id, cid); in show_faults() 176 shell_print_ctx("Health Test ID 0x%02x Company ID 0x%04x Fault " in show_faults() [all …]
|
/Zephyr-latest/drivers/sensor/adi/adxl367/ |
D | adxl367.c | 4 * SPDX-License-Identifier: Apache-2.0 29 * @param dev - The device structure. 30 * @param th - Structure holding the activity threshold information: 39 struct adxl367_data *data = dev->data; in adxl367_setup_activity_detection() 43 ret = data->hw_tf->write_reg_mask(dev, ADXL367_ACT_INACT_CTL, in adxl367_setup_activity_detection() 46 FIELD_PREP(ADXL367_ACT_INACT_CTL_ACT_EN_MSK, th->enable) | in adxl367_setup_activity_detection() 48 th->referenced)); in adxl367_setup_activity_detection() 53 ret = data->hw_tf->write_reg_mask(dev, ADXL367_THRESH_ACT_H, ADXL367_THRESH_H_MSK, in adxl367_setup_activity_detection() 54 FIELD_PREP(ADXL367_THRESH_H_MSK, th->value >> 6)); in adxl367_setup_activity_detection() 59 return data->hw_tf->write_reg_mask(dev, ADXL367_THRESH_ACT_L, ADXL367_THRESH_L_MSK, in adxl367_setup_activity_detection() [all …]
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_cc13xx_cc26xx.c | 5 * SPDX-License-Identifier: Apache-2.0 42 /* Rx: Set LNA bias current offset to +15 to saturate trim to max (default: 0) */ 49 {-20, RF_TxPowerTable_DEFAULT_PA_ENTRY(6, 3, 0, 2)}, 50 {-15, RF_TxPowerTable_DEFAULT_PA_ENTRY(10, 3, 0, 3)}, 51 {-10, RF_TxPowerTable_DEFAULT_PA_ENTRY(15, 3, 0, 5)}, 52 {-5, RF_TxPowerTable_DEFAULT_PA_ENTRY(22, 3, 0, 9)}, 69 *saved = MAX(ch, *saved); in update_saved_cmdhandle() 78 struct ieee802154_cc13xx_cc26xx_data *drv_data = dev->data; in cmd_ieee_csma_callback() 80 update_saved_cmdhandle(ch, (RF_CmdHandle *) &drv_data->saved_cmdhandle); in cmd_ieee_csma_callback() 82 LOG_DBG("e: 0x%" PRIx64, e); in cmd_ieee_csma_callback() [all …]
|
/Zephyr-latest/subsys/bluetooth/services/ots/ |
D | ots_client.c | 4 * Copyright (c) 2020-2022 Nordic Semiconductor ASA 6 * SPDX-License-Identifier: Apache-2.0 39 /* 64-bit value, outside of 48-bit Object ID range */ 156 written = cur_inst->sent_size; in write_obj_tx_done() 164 if ((cur_inst->otc_inst != NULL) && (cur_inst->otc_inst->cb != NULL)) { in write_obj_tx_done() 165 if (cur_inst->otc_inst->cb->obj_data_written) { in write_obj_tx_done() 166 cur_inst->otc_inst->cb->obj_data_written(0, conn, written); in write_obj_tx_done() 176 const uint32_t offset = cur_inst->rcvd_size; in rx_done() 179 &cur_inst->otc_inst->cur_object; in rx_done() 183 (void *)conn, buf->len, offset); in rx_done() [all …]
|