Home
last modified time | relevance | path

Searched +full:read +full:- +full:cmd (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dmedia_controller_test.c4 * SPDX-License-Identifier: Apache-2.0
99 FAIL("Player Name read failed (%d)\n", err); in player_name_cb()
114 FAIL("Icon Object ID read failed (%d)", err); in icon_id_cb()
130 FAIL("Icon URL read failed (%d)", err); in icon_url_cb()
144 FAIL("Track title read failed (%d)", err); in track_title_cb()
159 FAIL("Track duration read failed (%d)", err); in track_duration_cb()
174 FAIL("Track position read failed (%d)", err); in track_position_recv_cb()
206 FAIL("Playback speed read failed (%d)", err); in playback_speed_recv_cb()
238 FAIL("Seeking speed read failed (%d)", err); in seeking_speed_cb()
253 FAIL("Track Segments ID read failed (%d)\n", err); in track_segments_id_cb()
[all …]
Dmcc_test.c2 * Copyright (c) 2019 - 2021 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
97 FAIL("Player Name read failed (%d)\n", err); in mcc_read_player_name_cb()
107 FAIL("Icon Object ID read failed (%d)", err); in mcc_read_icon_obj_id_cb()
118 FAIL("Icon URL read failed (%d)", err); in mcc_read_icon_url_cb()
138 FAIL("Track title read failed (%d)", err); in mcc_read_track_title_cb()
148 FAIL("Track duration read failed (%d)", err); in mcc_read_track_duration_cb()
158 FAIL("Track position read failed (%d)", err); in mcc_read_track_position_cb()
181 FAIL("Playback speed read failed (%d)", err); in mcc_read_playback_speed_cb()
204 FAIL("Seeking speed read failed (%d)", err); in mcc_read_seeking_speed_cb()
[all …]
/Zephyr-latest/drivers/mdio/
Dmdio_adin2111.c4 * SPDX-License-Identifier: Apache-2.0
39 const struct mdio_adin2111_config *const cfg = dev->config; in mdio_adin2111_wait_ready()
44 ret = eth_adin2111_reg_read(cfg->adin, reg, out); in mdio_adin2111_wait_ready()
49 ret = -ETIMEDOUT; in mdio_adin2111_wait_ready()
62 const struct mdio_adin2111_config *const cfg = dev->config; in mdio_adin2111_read_c45()
64 uint32_t cmd; in mdio_adin2111_read_c45() local
68 cmd = (prtad & 0x1FU) << 21; in mdio_adin2111_read_c45()
69 cmd |= (devad & 0x1FU) << 16; in mdio_adin2111_read_c45()
70 cmd |= regad; in mdio_adin2111_read_c45()
72 ret = eth_adin2111_reg_write(cfg->adin, ADIN2111_MDIOACC0, cmd); in mdio_adin2111_read_c45()
[all …]
/Zephyr-latest/drivers/eeprom/
Deeprom_lpc11u6x.c4 * SPDX-License-Identifier: Apache-2.0
13 * This driver supports the on-chip EEPROM found on NXP LPC11U6x MCUs.
15 * @note This driver is only a wrapper for the IAP (In-Application Programming)
34 const struct eeprom_lpc11u6x_config *config = dev->config; in eeprom_lpc11u6x_read()
35 uint32_t cmd[5]; in eeprom_lpc11u6x_read() local
42 if ((offset + len) > config->size) { in eeprom_lpc11u6x_read()
43 LOG_WRN("attempt to read past device boundary"); in eeprom_lpc11u6x_read()
44 return -EINVAL; in eeprom_lpc11u6x_read()
47 cmd[0] = IAP_CMD_EEPROM_READ; in eeprom_lpc11u6x_read()
48 cmd[1] = offset; in eeprom_lpc11u6x_read()
[all …]
Deeprom_mb85rsxx.c4 * SPDX-License-Identifier: Apache-2.0
26 #define EEPROM_MB85RSXX_RDSR 0x05U /* Read Status Register */
28 #define EEPROM_MB85RSXX_READ 0x03U /* Read Memory Code */
30 #define EEPROM_MB85RSXX_RDID 0x9FU /* Read Device ID */
31 #define EEPROM_MB85RSXX_FSTRD 0x0BU /* Fast Read Memory Code */
64 const struct eeprom_mb85rsxx_config *config = dev->config; in eeprom_mb85rsxx_read()
65 struct eeprom_mb85rsxx_data *data = dev->data; in eeprom_mb85rsxx_read()
66 uint8_t cmd[4] = {EEPROM_MB85RSXX_READ, 0, 0, 0}; in eeprom_mb85rsxx_read() local
67 uint8_t *paddr = &cmd[1]; in eeprom_mb85rsxx_read()
70 if (offset + len > config->size) { in eeprom_mb85rsxx_read()
[all …]
/Zephyr-latest/include/zephyr/drivers/i3c/
Dhdr_ddr.h4 * SPDX-License-Identifier: Apache-2.0
33 * @param cmd 7-bit command code
38 * @retval -EBUSY Bus is busy.
39 * @retval -EIO General input / output error.
41 static inline int i3c_hdr_ddr_write(struct i3c_device_desc *target, uint8_t cmd, in i3c_hdr_ddr_write() argument
50 msg.hdr_cmd_code = cmd; in i3c_hdr_ddr_write()
56 * @brief Read a set amount of data from an I3C target device with HDR DDR.
61 * @param cmd 7-bit command code
63 * @param num_bytes Number of bytes to read.
66 * @retval -EBUSY Bus is busy.
[all …]
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_bap_broadcast.h1 /* btp_bap_broadcast.h - Bluetooth BAP Tester */
6 * SPDX-License-Identifier: Apache-2.0
34 /* BIS Index bitfield read from Base */
36 /* BIS Index bitfield read from sync request */
60 uint8_t btp_bap_broadcast_source_setup(const void *cmd, uint16_t cmd_len,
62 uint8_t btp_bap_broadcast_source_release(const void *cmd, uint16_t cmd_len,
64 uint8_t btp_bap_broadcast_adv_start(const void *cmd, uint16_t cmd_len,
66 uint8_t btp_bap_broadcast_adv_stop(const void *cmd, uint16_t cmd_len,
68 uint8_t btp_bap_broadcast_source_start(const void *cmd, uint16_t cmd_len,
70 uint8_t btp_bap_broadcast_source_stop(const void *cmd, uint16_t cmd_len,
[all …]
Dbtp_mcp.c1 /* btp_mcp.c - Bluetooth MCP Tester */
6 * SPDX-License-Identifier: Apache-2.0
334 const struct mpl_cmd *cmd) in btp_send_media_cp_ev() argument
341 ev.opcode = cmd->opcode; in btp_send_media_cp_ev()
342 ev.use_param = cmd->use_param; in btp_send_media_cp_ev()
343 ev.param = sys_cpu_to_le32(cmd->param); in btp_send_media_cp_ev()
358 bt_addr_le_copy(&ev->address, bt_conn_get_dst(conn)); in btp_send_search_cp_ev()
360 ev->status = status; in btp_send_search_cp_ev()
361 ev->param_len = (uint8_t)search->search[0]; in btp_send_search_cp_ev()
363 if (ev->param_len > (SEARCH_LEN_MAX - sizeof(ev->param_len))) { in btp_send_search_cp_ev()
[all …]
/Zephyr-latest/samples/drivers/smbus/
DREADME.rst1 .. zephyr:code-sample:: smbus-shell
3 :relevant-api: smbus_interface
20 .. zephyr-app-commands::
21 :zephyr-app: samples/drivers/smbus
22 :host-os: unix
32 .. code-block:: console
34 *** Booting Zephyr OS build zephyr-v3.2.0-804-gfedd72615e82 ***
40 .. code-block:: console
43 smbus - smbus commands
49 byte_read :SMBus: byte read command
[all …]
/Zephyr-latest/subsys/sd/
Dsdio.c2 * Copyright 2022-2023 NXP
4 * SPDX-License-Identifier: Apache-2.0
30 struct sdhc_command cmd = {0}; in sdio_send_ocr() local
34 cmd.opcode = SDIO_SEND_OP_COND; in sdio_send_ocr()
35 cmd.arg = ocr; in sdio_send_ocr()
36 cmd.response_type = (SD_RSP_TYPE_R4 | SD_SPI_RSP_TYPE_R4); in sdio_send_ocr()
37 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdio_send_ocr()
40 ret = sdhc_request(card->sdhc, &cmd, NULL); in sdio_send_ocr()
50 card->num_io = (cmd.response[0] & SDIO_OCR_IO_NUMBER) in sdio_send_ocr()
52 if ((card->num_io == 0) || in sdio_send_ocr()
[all …]
Dsd_ops.c4 * SPDX-License-Identifier: Apache-2.0
19 /* Read card status. Return 0 if card is inactive */
22 struct sdhc_command cmd; in sdmmc_read_status() local
25 cmd.opcode = SD_SEND_STATUS; in sdmmc_read_status()
26 cmd.arg = 0; in sdmmc_read_status()
27 if (!card->host_props.is_spi) { in sdmmc_read_status()
28 cmd.arg = (card->relative_addr << 16U); in sdmmc_read_status()
30 cmd.response_type = (SD_RSP_TYPE_R1 | SD_SPI_RSP_TYPE_R2); in sdmmc_read_status()
31 cmd.retries = CONFIG_SD_CMD_RETRIES; in sdmmc_read_status()
32 cmd.timeout_ms = CONFIG_SD_CMD_TIMEOUT; in sdmmc_read_status()
[all …]
Dsdmmc.c4 * SPDX-License-Identifier: Apache-2.0
25 scr->flags = 0U; in sdmmc_decode_scr()
26 scr->scr_structure = (uint8_t)((raw_scr[0U] & 0xF0000000U) >> 28U); in sdmmc_decode_scr()
27 scr->sd_spec = (uint8_t)((raw_scr[0U] & 0xF000000U) >> 24U); in sdmmc_decode_scr()
29 scr->flags |= SD_SCR_DATA_STATUS_AFTER_ERASE; in sdmmc_decode_scr()
31 scr->sd_sec = (uint8_t)((raw_scr[0U] & 0x700000U) >> 20U); in sdmmc_decode_scr()
32 scr->sd_width = (uint8_t)((raw_scr[0U] & 0xF0000U) >> 16U); in sdmmc_decode_scr()
34 scr->flags |= SD_SCR_SPEC3; in sdmmc_decode_scr()
36 scr->sd_ext_sec = (uint8_t)((raw_scr[0U] & 0x7800U) >> 10U); in sdmmc_decode_scr()
37 scr->cmd_support = (uint8_t)(raw_scr[0U] & 0x3U); in sdmmc_decode_scr()
[all …]
/Zephyr-latest/dts/bindings/memory-controllers/
Drenesas,smartbond-nor-psram.yaml2 # SPDX-License-Identifier: Apache-2.0
8 compatible: "renesas,smartbond-nor-psram"
14 is-ram:
19 dev-size:
25 dev-type:
31 dev-density:
40 dev-id:
46 reset-delay-us:
52 read-cs-idle-min-ns:
59 erase-cs-idle-min-ns:
[all …]
/Zephyr-latest/samples/drivers/spi_fujitsu_fram/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
27 uint8_t cmd, uint16_t addr, void *data, size_t len) in mb85rs64v_access() argument
43 access[0] = cmd; in mb85rs64v_access()
45 if (cmd == MB85RS64V_WRITE_CMD || cmd == MB85RS64V_READ_CMD) { in mb85rs64v_access()
52 if (cmd == MB85RS64V_READ_CMD) { in mb85rs64v_access()
77 printk("Error during ID read\n"); in mb85rs64v_read_id()
78 return -EIO; in mb85rs64v_read_id()
82 return -EIO; in mb85rs64v_read_id()
86 return -EIO; in mb85rs64v_read_id()
90 return -EIO; in mb85rs64v_read_id()
[all …]
/Zephyr-latest/boards/renesas/da1469x_dk_pro/dts/
Dda1469x_dk_pro_psram.overlay4 * SPDX-License-Identifier: Apache-2.0
9 sram-ext = &memc;
17 /* QSPIC settings for the APS6404L-3SQR QSPI PSRAM memory in QPI mode. */
20 is-ram;
21 dev-size = <DT_SIZE_M(64)>;
22 dev-type = <0x5D>;
23 dev-id = <0x0D>;
24 dev-density = <0xE040>;
25 reset-delay-us = <50>;
26 read-cs-idle-min-ns = <18>;
[all …]
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dmcc.c7 * Copyright (c) 2020 - 2021 Nordic Semiconductor ASA
9 * SPDX-License-Identifier: Apache-2.0
66 shell_error(ctx_shell, "Player Name read failed (%d)", err); in mcc_read_player_name_cb()
79 shell_error(ctx_shell, "Icon Object ID read failed (%d)", err); in mcc_read_icon_obj_id_cb()
94 shell_error(ctx_shell, "Icon URL read failed (%d)", err); in mcc_read_icon_url_cb()
106 shell_error(ctx_shell, "Track title read failed (%d)", err); in mcc_read_track_title_cb()
128 shell_error(ctx_shell, "Track duration read failed (%d)", err); in mcc_read_track_duration_cb()
140 shell_error(ctx_shell, "Track position read failed (%d)", err); in mcc_read_track_position_cb()
165 shell_error(ctx_shell, "Playback speed read failed (%d)", err); in mcc_read_playback_speed_cb()
190 shell_error(ctx_shell, "Seeking speed read failed (%d)", err); in mcc_read_seeking_speed_cb()
[all …]
Dmedia_controller.c9 * SPDX-License-Identifier: Apache-2.0
29 #include "../media_proxy_internal.h" /* For MPL_NO_TRACK_ID - TODO: Fix */
37 /* Media player instances - the local player, the remote player and
304 static void command_send_cb(struct media_player *plr, int err, const struct mpl_cmd *cmd) in command_send_cb() argument
311 shell_print(ctx_shell, "Player: %p, Command opcode sent: %u", plr, cmd->opcode); in command_send_cb()
322 plr, cmd_ntf->requested_opcode, cmd_ntf->result_code); in command_recv_cb()
344 shell_print(ctx_shell, "Player: %p, Search sent with len %u", plr, search->len); in search_send_cb()
454 return -EOPNOTSUPP; in cmd_media_set_player()
465 return -EOPNOTSUPP; in cmd_media_set_player()
469 return -EINVAL; in cmd_media_set_player()
[all …]
/Zephyr-latest/drivers/flash/
Dflash_stm32_qspi.c6 * SPDX-License-Identifier: Apache-2.0
58 /* In dual-flash mode, total size is twice the size of one flash component */
125 * If set addressed operations should use 32-bit rather than
126 * 24-bit addresses.
138 struct flash_stm32_qspi_data *dev_data = dev->data; in qspi_lock_thread()
140 k_sem_take(&dev_data->sem, K_FOREVER); in qspi_lock_thread()
145 struct flash_stm32_qspi_data *dev_data = dev->data; in qspi_unlock_thread()
147 k_sem_give(&dev_data->sem); in qspi_unlock_thread()
151 QSPI_CommandTypeDef *cmd) in qspi_set_address_size() argument
153 struct flash_stm32_qspi_data *dev_data = dev->data; in qspi_set_address_size()
[all …]
Dflash_stm32_ospi.c5 * SPDX-License-Identifier: Apache-2.0
20 #include <zephyr/dt-bindings/flash_controller/ospi.h>
169 /* Read operation dummy cycles */
176 /* Table to hold the jedec Read ID given by the octoFlash or the DTS */
187 struct flash_stm32_ospi_data *dev_data = dev->data; in ospi_lock_thread()
189 k_sem_take(&dev_data->sem, K_FOREVER); in ospi_lock_thread()
194 struct flash_stm32_ospi_data *dev_data = dev->data; in ospi_unlock_thread()
196 k_sem_give(&dev_data->sem); in ospi_unlock_thread()
199 static int ospi_send_cmd(const struct device *dev, OSPI_RegularCmdTypeDef *cmd) in ospi_send_cmd() argument
201 const struct flash_stm32_ospi_config *dev_cfg = dev->config; in ospi_send_cmd()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dsmbus.h4 * SPDX-License-Identifier: Apache-2.0
50 * +-+-+-+-+-+-+-+-+-+-+-+
52 * +-+-+-+-+-+-+-+-+-+-+-+
65 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
67 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
69 * Byte Read
73 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
75 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
82 * by read or write one byte.
89 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
[all …]
/Zephyr-latest/include/zephyr/sd/
Dmmc.h4 * SPDX-License-Identifier: Apache-2.0
33 * @retval -EBUSY: card is busy with another request
34 * @retval -ETIMEDOUT: card write timed out
35 * @retval -EIO: I/O error
41 * @brief Read block from MMC card to buffer
45 * @param card MMC card to read from
46 * @param rbuf read buffer
47 * @param start_block first block to read from
48 * @param num_blocks number of blocks to read
49 * @retval 0 read succeeded
[all …]
Dsdmmc.h4 * SPDX-License-Identifier: Apache-2.0
33 * @retval -EBUSY: card is busy with another request
34 * @retval -ETIMEDOUT: card write timed out
35 * @retval -EIO: I/O error
41 * @brief Read block from SD card to buffer
45 * @param card SD card to read from
46 * @param rbuf read buffer
47 * @param start_block first block to read from
48 * @param num_blocks number of blocks to read
49 * @retval 0 read succeeded
[all …]
/Zephyr-latest/drivers/smbus/
Dsmbus_shell.c5 * SPDX-License-Identifier: Apache-2.0
42 * https://manpages.debian.org/buster/i2c-tools/i2cdetect.8.en.html
54 return -ENODEV; in cmd_smbus_scan()
71 shell_fprintf(sh, SHELL_NORMAL, "-- "); in cmd_smbus_scan()
93 return -ENODEV; in cmd_smbus_quick()
100 shell_error(sh, "SMBus: Failed quick cmd, perip: 0x%02x", addr); in cmd_smbus_quick()
117 return -ENODEV; in cmd_smbus_byte_read()
124 shell_error(sh, "SMBus: Failed to read from periph: 0x%02x", in cmd_smbus_byte_read()
126 return -EIO; in cmd_smbus_byte_read()
146 return -ENODEV; in cmd_smbus_byte_write()
[all …]
/Zephyr-latest/drivers/sensor/tdk/icm42670/
Dicm42670_spi.c6 * SPDX-License-Identifier: Apache-2.0
10 * Bus-specific functionality for ICM42670 accessed via SPI.
22 return spi_is_ready_dt(&bus->spi) ? 0 : -ENODEV; in icm42670_bus_check_spi()
29 uint8_t cmd[] = {(start | 0x80)}; in icm42670_reg_read_spi() local
30 const struct spi_buf tx_buf = {.buf = cmd, .len = sizeof(cmd)}; in icm42670_reg_read_spi()
42 ret = spi_transceive_dt(&bus->spi, &tx, &rx); in icm42670_reg_read_spi()
53 uint8_t cmd[] = {reg & 0x7F}; in icm42670_reg_write_spi() local
54 const struct spi_buf tx_buf[2] = {{.buf = cmd, .len = sizeof(cmd)}, in icm42670_reg_write_spi()
57 int ret = spi_write_dt(&bus->spi, &tx); in icm42670_reg_write_spi()
68 .read = icm42670_reg_read_spi,
/Zephyr-latest/drivers/sdhc/
Dsdhc_spi.c4 * SPDX-License-Identifier: Apache-2.0
32 * that can be read in a single transaction.
149 const struct sdhc_spi_config *config = dev->config; in sdhc_spi_init_card()
150 struct sdhc_spi_data *data = dev->data; in sdhc_spi_init_card()
151 struct spi_config *spi_cfg = data->spi_cfg; in sdhc_spi_init_card()
154 if (spi_cfg->frequency == 0) { in sdhc_spi_init_card()
156 spi_cfg->frequency = SDMMC_CLOCK_400KHZ; in sdhc_spi_init_card()
160 if (pm_device_runtime_get(config->spi_dev) < 0) { in sdhc_spi_init_card()
161 return -EIO; in sdhc_spi_init_card()
165 spi_cfg->operation |= SPI_CS_ACTIVE_HIGH; in sdhc_spi_init_card()
[all …]

12345678910>>...12