/Zephyr-latest/subsys/input/ |
D | input_keymap.c | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/input/keymap.h> 27 uint32_t row; member 35 const struct keymap_config *cfg = dev->config; in keymap_cb() 36 struct keymap_data *data = dev->data; in keymap_cb() 37 const uint16_t *codes = cfg->codes; in keymap_cb() 38 uint32_t offset; in keymap_cb() local 40 switch (evt->code) { in keymap_cb() 42 data->col = evt->value; in keymap_cb() 45 data->row = evt->value; in keymap_cb() [all …]
|
/Zephyr-latest/dts/bindings/display/ |
D | istech,ist3931.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 include: [i2c-device.yaml, display-controller.yaml] 11 reset-gpios: 12 type: phandle-array 21 x-offset: 24 description: The column offset in pixels of the LCD to the controller memory 26 y-offset: 29 description: The row offset in pixels of the LCD to the controller memory 31 voltage-converter: 35 voltage-follower: [all …]
|
D | solomon,ssd1322.yaml | 5 include: [mipi-dbi-spi-device.yaml, display-controller.yaml] 8 column-offset: 13 row-offset: 17 COM pin used as first row, mapped to the line set by start-line. 20 start-line: 24 Starting line address of display ram (0-127). 27 mux-ratio: 31 COM Pin Multiplex ratio from 16-128. 34 remap-row-first: 38 remap-columns: [all …]
|
D | sitronix,st7735r.yaml | 1 # Copyright (c) 2020, Kim Bøndergaard <kim@fam-boendergaard.dk> 2 # SPDX-License-Identifier: Apache-2.0 8 include: [mipi-dbi-spi-device.yaml, display-controller.yaml] 11 x-offset: 14 description: The column offset in pixels of the LCD to the controller memory 16 y-offset: 19 description: The row offset in pixels of the LCD to the controller memory 32 type: uint8-array 37 type: uint8-array 42 type: uint8-array [all …]
|
D | sitronix,st7789v.yaml | 3 # SPDX-License-Identifier: Apache-2.0 9 include: [mipi-dbi-spi-device.yaml, display-controller.yaml] 12 x-offset: 15 description: The column offset in pixels of the LCD to the controller memory 17 y-offset: 20 description: The row offset in pixels of the LCD to the controller memory 60 inversion-off: 64 porch-param: 65 type: uint8-array 69 cmd2en-param: [all …]
|
/Zephyr-latest/samples/tfm_integration/psa_crypto/src/ |
D | util_sformat.c | 4 * SPDX-License-Identifier: Apache-2.0 20 len--; in sf_hex_ascii() 37 ea = fmt->addr + len; in sf_hex_tabulate_16() 40 if (fmt->addr_label) { in sf_hex_tabulate_16() 46 printf("%08X ", fmt->addr - (fmt->addr % 16)); in sf_hex_tabulate_16() 49 /* Insert offset padding for first row if necessary. */ in sf_hex_tabulate_16() 50 cpos = fmt->addr % 16; in sf_hex_tabulate_16() 57 /* Print data row by row. */ in sf_hex_tabulate_16() 59 ca = fmt->addr; in sf_hex_tabulate_16() 68 /* Render ASCII equiv at end of row if requested. */ in sf_hex_tabulate_16() [all …]
|
/Zephyr-latest/boards/snps/em_starterkit/ |
D | pmodmux.c | 4 * SPDX-License-Identifier: Apache-2.0 12 * 32-bits, offset 0x0, This register controls mapping of the peripheral device 16 /* 32-bits, offset 0x4 */ 20 * 32-bits, offset 0x8, SPI_MAP_CTRL[0] selects the mode of operation of the SPI 22 * at connector J1. Loop-back mode, SPI_MAP_CTRL[0]=1: SPI Slave is connected to 27 * 32-bits, offset 0x8, This register controls the mapping of the UART signals 135 * information -> Appendix: A Hardware Functional Description -> in pmod_mux_init() 137 * + Set up pin-multiplexer of all PMOD connections in pmod_mux_init() 138 * - PM1 J1: Upper row as UART 0, lower row as SPI Slave in pmod_mux_init() 139 * - PM2 J2: IIC 0 and run/halt signals in pmod_mux_init() [all …]
|
/Zephyr-latest/include/zephyr/input/ |
D | input_kbd_matrix.h | 4 * SPDX-License-Identifier: Apache-2.0 26 #define INPUT_KBD_MATRIX_COLUMN_DRIVE_NONE -1 29 #define INPUT_KBD_MATRIX_COLUMN_DRIVE_ALL -2 34 /** Row entry data type */ 46 * @brief Enables or disables a specific row, column combination in the actual 49 * This allows enabling or disabling specific row, column combination in the 56 * @param row The matrix row to enable or disable. 58 * @param enabled Whether the specified row, col has to be enabled or disabled. 61 * @retval -errno Negative errno if row or col are out of range for the device. 64 uint8_t row, uint8_t col, bool enabled); [all …]
|
/Zephyr-latest/scripts/footprint/ |
D | size_report | 3 # Copyright (c) 2016, 2020-2024 Intel Corporation 5 # SPDX-License-Identifier: Apache-2.0 49 DT_LOCATION = re.compile(r"\(DW_OP_addr: ([0-9a-f]+)\)") 189 sec_end = sec_start + (sec_size - 1 if sec_size else 0) 191 f"0x{sec_start:08x}-0x{sec_end:08x} " 213 sec_end = sec_start + (size - 1 if size else 0) 268 file_entry = lineprog['file_entry'][file_index - 1] 274 directory = lineprog.header['include_directory'][dir_index - 1] 288 # built-ins can't be resolved, so it's not an issue 289 if '<built-in>' not in str(path): [all …]
|
/Zephyr-latest/scripts/build/ |
D | gen_cfb_font_header.py | 5 # SPDX-License-Identifier: Apache-2.0 35 for row in range(0, height): 41 if pixels[col, row]: 53 row = octet * 8 + bit 54 if pixels[col, row]: 66 value = value[::-1] 83 fw = size[2] - size[0] # right - left 84 fh = size[3] - size[1] # bottom - top 101 raise Exception('text width {} mismatch with -x {}'.format(width, args.width)) 103 raise Exception('text height {} mismatch with -y {}'.format(height, args.height)) [all …]
|
/Zephyr-latest/drivers/flash/ |
D | flash_cadence_nand_ll.c | 4 * SPDX-License-Identifier: Apache-2.0 14 * @retval 0 on success or -ETIMEDOUT error value on failure. 22 return -ETIMEDOUT; in cdns_nand_wait_idle() 28 * Set the row address for a NAND flash memory device using the Cadence NAND controller. 31 * @param local_row_address The row address. 39 block_number = ((page_set) / (params->npages_per_block)); in row_address_set() 41 *local_row_address |= ROW_VAL_SET((params->page_size_bit) - 1, 0, in row_address_set() 42 ((page_set) % (params->npages_per_block))); in row_address_set() 44 ROW_VAL_SET((params->block_size_bit) - 1, (params->page_size_bit), block_number); in row_address_set() 45 *local_row_address |= ROW_VAL_SET((params->lun_size_bit) - 1, (params->block_size_bit), in row_address_set() [all …]
|
D | flash_sam0.c | 4 * SPDX-License-Identifier: Apache-2.0 22 BUILD_ASSERT((FLASH_WRITE_BLK_SZ % sizeof(uint32_t)) == 0, "unsupported write-block-size"); 28 * The erase unit is a row, which is a 'page' in Zephyr terms. 84 struct flash_sam0_data *ctx = dev->data; in flash_sam0_sem_take() 86 k_sem_take(&ctx->sem, K_FOREVER); in flash_sam0_sem_take() 93 struct flash_sam0_data *ctx = dev->data; in flash_sam0_sem_give() 95 k_sem_give(&ctx->sem); in flash_sam0_sem_give() 99 static int flash_sam0_valid_range(off_t offset, size_t len) in flash_sam0_valid_range() argument 101 if (offset < 0) { in flash_sam0_valid_range() 102 LOG_WRN("0x%lx: before start of flash", (long)offset); in flash_sam0_valid_range() [all …]
|
D | flash_stm32wb0x.c | 4 * SPDX-License-Identifier: Apache-2.0 61 * Fetch word using sys_get_le32, which performs byte-sized in read_mem_u32() 62 * reads instead of word-sized. This is important as ptr may in read_mem_u32() 64 * stored in little-endian inside the flash. in read_mem_u32() 76 READ_BIT(FLASH->SIZE, FLASH_FLASH_SIZE_FLASH_SIZE) + 1; in get_flash_size_in_bytes() 90 * - illegal command in error_from_irq_flags() 91 * - command error in error_from_irq_flags() 94 return -EINVAL; in error_from_irq_flags() 98 return -EIO; in error_from_irq_flags() 102 * Unexpected error flag -> "out of domain" in error_from_irq_flags() [all …]
|
D | flash_cadence_nand_ll.h | 4 * SPDX-License-Identifier: Apache-2.0 16 (k_sem_take(&(param_ptr->interrupt_sem_t), K_FOREVER)), ()) 208 /* DMA maximum burst size (0-127)*/ 297 #define DECR_CNT_ONE(x) (--x) 309 /* Flash address is a 32-bit address comprising of ROW ADDR. */ 333 /* Row Address */ 368 int cdns_nand_read(struct cadence_nand_params *params, const void *buffer, uint32_t offset, 370 int cdns_nand_write(struct cadence_nand_params *params, const void *buffer, uint32_t offset, 372 int cdns_nand_erase(struct cadence_nand_params *params, uint32_t offset, uint32_t size);
|
/Zephyr-latest/drivers/counter/ |
D | counter_cmos.c | 3 * SPDX-License-Identifier: Apache-2.0 5 * This barebones driver enables the use of the PC AT-style RTC 6 * (the so-called "CMOS" clock) as a primitive, 1Hz monotonic counter. 33 * type-punning to compare states will break. 49 * values in 'struct state' are BCD-encoded. 65 #define STATUS_B_24HR 0x02 /* 24-hour (vs 12-hour) mode */ 101 /* Convert 8-bit (2-digit) BCD to binary equivalent. */ 109 * Hinnant's algorithm to calculate the number of days offset from the epoch. 119 y -= (m <= 2); in hinnant() 120 era = ((y >= 0) ? y : (y - 399)) / 400; in hinnant() [all …]
|
/Zephyr-latest/scripts/kconfig/ |
D | menuconfig.py | 3 # Copyright (c) 2018-2019, Nordic Semiconductor ASA and Ulf Magnusson 4 # SPDX-License-Identifier: ISC 10 A curses-based Python 2/3 menuconfig implementation. The interface should feel 19 Ctrl-D/U: Page Down/Page Up 27 character in it in the current menu isn't supported. A jump-to feature for 33 F: Toggle show-help mode, which shows the help text of the currently selected 37 C: Toggle show-name mode, which shows the symbol name before each symbol menu 40 A: Toggle show-all mode, which shows all items, including currently invisible 52 When run in standalone mode, the top-level Kconfig file to load can be passed 53 as a command-line argument. With no argument, it defaults to "Kconfig". [all …]
|
/Zephyr-latest/include/zephyr/mgmt/ |
D | osdp.h | 4 * SPDX-License-Identifier: Apache-2.0 41 * - 0 - NOP – do not alter this output 42 * - 1 - set the permanent state to OFF, abort timed operation (if any) 43 * - 2 - set the permanent state to ON, abort timed operation (if any) 44 * - 3 - set the permanent state to OFF, allow timed operation to complete 45 * - 4 - set the permanent state to ON, allow timed operation to complete 46 * - 5 - set the temporary state to ON, resume perm state on timeout 47 * - 6 - set the temporary state to OFF, resume permanent state on timeout 69 * @brief LED params sub-structure. Part of LED command. See @ref osdp_cmd_led. 75 * - 0 - NOP - do not alter this LED's temporary settings. [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | video.h | 10 * SPDX-License-Identifier: Apache-2.0 38 #define LINE_COUNT_HEIGHT (-1) 57 * first pixel of a row in order to go to the address of the first pixel of 58 * the next row (>=width). 137 /** Line offset within frame this buffer represents, from the 138 * beginning of the frame. This offset is given in pixels, 139 * so `line_offset` * `pitch` provides offset from the start of 212 VIDEO_EP_NONE = -1, 214 VIDEO_EP_ALL = -2, 216 VIDEO_EP_IN = -3, [all …]
|
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/ |
D | dtlib.py | 2 # SPDX-License-Identifier: BSD-3-Clause 10 The top-level entry point of the library is the DT class. DT.__init__() takes a 30 "Exception raised for devicetree-related errors" 34 Represents a node in the devicetree ('node-name { ... };'). 62 stored in big-endian format. 113 def name(self) -> str: 117 # Converted to a property to discourage renaming -- that has to be done 122 def unit_addr(self) -> str: 129 def path(self) -> str: 144 def node_iter(self) -> Iterable['Node']: [all …]
|
/Zephyr-latest/subsys/net/ip/ |
D | utils.c | 9 * SPDX-License-Identifier: Apache-2.0 86 *ptr++ = (high < 10) ? (char) (high + '0') : (char) (high - 10 + base); in net_byte_to_hex() 89 *ptr++ = (low < 10) ? (char) (low + '0') : (char) (low - 10 + base); in net_byte_to_hex() 124 blen -= 3U; in net_sprint_ll_addr_buf() 127 if (!(ptr - buf)) { in net_sprint_ll_addr_buf() 131 *(ptr - 1) = '\0'; in net_sprint_ll_addr_buf() 147 for (i = 9; i >= 0; i--, divisor /= 10U) { in net_value_to_udec() 157 return buf - start; in net_value_to_udec() 168 int pos = -1; in z_impl_net_addr_ntop() 172 int len = -1; in z_impl_net_addr_ntop() [all …]
|
/Zephyr-latest/drivers/video/ |
D | gc2145.c | 4 * SPDX-License-Identifier: Apache-2.0 12 #include <zephyr/drivers/video-controls.h> 732 } while (tries--); in gc2145_write_reg() 757 } while (tries--); in gc2145_read_reg() 766 const struct gc2145_config *cfg = dev->config; in gc2145_write_all() 771 ret = gc2145_write_reg(&cfg->i2c, regs[i].addr, regs[i].value); in gc2145_write_all() 783 const struct gc2145_config *cfg = dev->config; in gc2145_soft_reset() 786 ret = gc2145_write_reg(&cfg->i2c, GC2145_REG_RESET, GC2145_REG_SW_RESET); in gc2145_soft_reset() 796 const struct gc2145_config *cfg = dev->config; in gc2145_set_ctrl_vflip() 799 ret = gc2145_read_reg(&cfg->i2c, GC2145_REG_AMODE1, &old_value); in gc2145_set_ctrl_vflip() [all …]
|
/Zephyr-latest/drivers/sdhc/ |
D | rcar_mmc.c | 4 * SPDX-License-Identifier: Apache-2.0 109 struct mmc_rcar_data *data = dev->data; in rcar_mmc_reset_and_mask_irqs() 124 k_sem_reset(&data->irq_xref_fin); in rcar_mmc_reset_and_mask_irqs() 138 * @retval -EINVAL: the dev pointer is NULL 145 return -EINVAL; in rcar_mmc_card_busy() 160 * @retval -ETIMEDOUT: timed out while tx/rx 161 * @retval -EIO: I/O error 162 * @retval -EILSEQ: communication out of sync 170 return -ETIMEDOUT; in rcar_mmc_check_errors() 175 return -EILSEQ; in rcar_mmc_check_errors() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | dfd_srv.c | 4 * SPDX-License-Identifier: Apache-2.0 53 off_t offset; member 61 srv->phase = new_phase; in dfd_phase_set() 63 if (srv->cb && srv->cb->phase) { in dfd_phase_set() 64 srv->cb->phase(srv, srv->phase); in dfd_phase_set() 71 for (int i = 0; i < srv->target_cnt; ++i) { in target_get() 72 if (addr == srv->targets[i].blob.addr) { in target_get() 73 return &srv->targets[i]; in target_get() 82 return srv->phase == BT_MESH_DFD_PHASE_TRANSFER_ACTIVE || in is_busy() 83 srv->phase == BT_MESH_DFD_PHASE_TRANSFER_SUCCESS || in is_busy() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_provision.c | 4 * SPDX-License-Identifier: Apache-2.0 165 mod->keys[0] = BT_MESH_KEY_DEV_LOCAL; in mock_model_init() 166 mod->rt->flags |= BT_MESH_MOD_DEVKEY_ONLY; in mock_model_init() 397 if (cap->oob_type & BT_MESH_STATIC_OOB_AVAILABLE) { in capabilities() 400 } else if (cap->output_actions) { in capabilities() 403 } else if (cap->input_actions) { in capabilities() 533 bt_mesh_cdb_node_del(bt_mesh_cdb_node_get(prov_addr - 1), true); in oob_provisioner() 607 /** @brief Verify that this device pb-adv provision. 646 /** @brief Verify that this provisioner pb-adv provision. 707 /** @brief Verify that the provisioner can provision multiple devices in a row [all …]
|