Searched +full:concat +full:- +full:buf +full:- +full:size (Results 1 – 8 of 8) sorted by relevance
/Zephyr-latest/dts/bindings/i2c/ |
D | nordic,nrf-twim.yaml | 2 # SPDX-License-Identifier: Apache-2.0 10 TWIM by setting the node's "compatible" to "nordic,nrf-twim" 13 /* This is for TWIM0 -- change to "i2c1" for TWIM1, etc. */ 15 compatible = "nordic,nrf-twim"; 22 Note: on nRF51 SoCs, use the "nordic,nrf-twi" binding instead. 24 compatible: "nordic,nrf-twim" 26 include: ["nordic,nrf-twi-common.yaml", "memory-region.yaml"] 29 zephyr,concat-buf-size: 33 Size of a concatenation buffer that the driver is to use for merging 43 zephyr,flash-buf-max-size: [all …]
|
/Zephyr-latest/tests/drivers/i2c/i2c_target_api/boards/ |
D | nrf5340dk_nrf5340_cpuapp.overlay | 4 * SPDX-License-Identifier: Apache-2.0 12 bias-pull-up; 20 low-power-enable; 26 compatible = "nordic,nrf-twis"; 27 pinctrl-0 = <&i2c2_default>; 28 pinctrl-1 = <&i2c2_sleep>; 29 pinctrl-names = "default", "sleep"; 33 compatible = "zephyr,i2c-target-eeprom"; 35 address-width = <8>; 36 size = <256>; [all …]
|
/Zephyr-latest/include/zephyr/rtio/ |
D | rtio.h | 4 * SPDX-License-Identifier: Apache-2.0 9 * @brief Real-Time IO device API for moving bytes with low effort 126 * -ECANCELED as the result. 311 const uint8_t *buf; /**< Buffer to write from */ member 317 uint8_t *buf; /**< Buffer to read into */ member 323 uint8_t buf[7]; /**< Tiny buffer */ member 356 /* Ensure the rtio_sqe never grows beyond a common cacheline size of 64 bytes */ 444 * @brief Get the mempool block size of the RTIO context 447 * @return The size of each block in the context's mempool 456 if (r == NULL || r->block_pool == NULL) { in rtio_mempool_block_size() [all …]
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_nrfx_twim_rtio.c | 6 * SPDX-License-Identifier: Apache-2.0 11 #include <zephyr/dt-bindings/i2c/i2c.h> 28 static bool i2c_nrfx_twim_rtio_msg_start(const struct device *dev, uint8_t flags, uint8_t *buf, in i2c_nrfx_twim_rtio_msg_start() argument 31 const struct i2c_nrfx_twim_rtio_config *config = dev->config; in i2c_nrfx_twim_rtio_msg_start() 32 struct i2c_rtio *ctx = config->ctx; in i2c_nrfx_twim_rtio_msg_start() 35 ret = i2c_nrfx_twim_msg_transfer(dev, flags, buf, buf_len, i2c_addr); in i2c_nrfx_twim_rtio_msg_start() 45 const struct i2c_nrfx_twim_rtio_config *config = dev->config; in i2c_nrfx_twim_rtio_start() 46 struct i2c_rtio *ctx = config->ctx; in i2c_nrfx_twim_rtio_start() 47 struct rtio_sqe *sqe = &ctx->txn_curr->sqe; in i2c_nrfx_twim_rtio_start() 48 struct i2c_dt_spec *dt_spec = sqe->iodev->data; in i2c_nrfx_twim_rtio_start() [all …]
|
D | i2c_nrfx_twim.c | 4 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/dt-bindings/i2c/i2c.h> 40 struct i2c_nrfx_twim_data *dev_data = dev->data; in i2c_nrfx_twim_transfer() 41 const struct i2c_nrfx_twim_common_config *dev_config = dev->config; in i2c_nrfx_twim_transfer() 43 uint8_t *msg_buf = dev_config->msg_buf; in i2c_nrfx_twim_transfer() 45 uint16_t msg_buf_size = dev_config->msg_buf_size; in i2c_nrfx_twim_transfer() 46 uint8_t *buf; in i2c_nrfx_twim_transfer() local 49 k_sem_take(&dev_data->transfer_sync, K_FOREVER); in i2c_nrfx_twim_transfer() 52 k_sem_take(&dev_data->completion_sync, K_NO_WAIT); in i2c_nrfx_twim_transfer() 58 ret = -ENOTSUP; in i2c_nrfx_twim_transfer() [all …]
|
/Zephyr-latest/tests/unit/util/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 48 "Value=123 is not converted to \"12\" using 2-byte buffer"); in ZTEST() 55 "Value=123 is not converted to \"1\" using 1-byte buffer"); in ZTEST() 69 zassert_equal(sign_extend(u8, 3), -1); in ZTEST() 73 zassert_equal(sign_extend(u16, 11), -1); in ZTEST() 77 zassert_equal(sign_extend(u32, 27), -1); in ZTEST() 88 zassert_equal(sign_extend_64(u8, 3), -1); in ZTEST() 92 zassert_equal(sign_extend_64(u16, 11), -1); in ZTEST() 96 zassert_equal(sign_extend_64(u32, 27), -1); in ZTEST() 100 zassert_equal(sign_extend_64(u64, 59), -1); in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | util.h | 2 * Copyright (c) 2011-2014, Wind River Systems, Inc. 4 * SPDX-License-Identifier: Apache-2.0 40 * @defgroup sys-util Utility Functions 80 (((~0UL) - (1UL << (l)) + 1) & (~0UL >> (BITS_PER_LONG - 1 - (h)))) 83 * @brief Create a contiguous 64-bit bitmask starting at bit position @p l 87 (((~0ULL) - (1ULL << (l)) + 1) & (~0ULL >> (BITS_PER_LONG_LONG - 1 - (h)))) 89 /** @brief 0 if @p cond is true-ish; causes a compile error otherwise. */ 90 #define ZERO_OR_COMPILE_ERROR(cond) ((int) sizeof(char[1 - 2 * !(cond)]) - 1) 94 /* The built-in function used below for type checking in C is not 152 * in that it also ensures that @p ptr is aligned to an array-element boundary [all …]
|
/Zephyr-latest/drivers/ethernet/ |
D | dsa_ksz8xxx.c | 4 * SPDX-License-Identifier: Apache-2.0 45 #define PRV_DATA(ctx) ((struct ksz8xxx_data *const)(ctx)->prv_data) 51 uint8_t buf[3]; in dsa_ksz8xxx_write_reg() local 54 .buf = buf, in dsa_ksz8xxx_write_reg() 62 buf[0] = KSZ8XXX_SPI_CMD_WR | ((reg_addr >> 7) & 0x1F); in dsa_ksz8xxx_write_reg() 63 buf[1] = (reg_addr << 1) & 0xFE; in dsa_ksz8xxx_write_reg() 64 buf[2] = value; in dsa_ksz8xxx_write_reg() 66 spi_write_dt(&pdev->spi, &tx); in dsa_ksz8xxx_write_reg() 74 uint8_t buf[3]; in dsa_ksz8xxx_read_reg() local 77 .buf = buf, in dsa_ksz8xxx_read_reg() [all …]
|