Home
last modified time | relevance | path

Searched +full:write +full:- +full:command (Results 1 – 25 of 554) sorted by relevance

12345678910>>...23

/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
45 quick :SMBus Quick command
[all …]
/Zephyr-latest/include/zephyr/sd/
Dmmc.h4 * SPDX-License-Identifier: Apache-2.0
24 * @brief Write blocks to MMC card from buffer
28 * @param card MMC card to write from
29 * @param wbuf write buffer
30 * @param start_block first block to write to
31 * @param num_blocks number of blocks to write
32 * @retval 0 write succeeded
33 * @retval -EBUSY: card is busy with another request
34 * @retval -ETIMEDOUT: card write timed out
35 * @retval -EIO: I/O error
[all …]
Dsdmmc.h4 * SPDX-License-Identifier: Apache-2.0
24 * @brief Write blocks to SD card from buffer
28 * @param card SD card to write from
29 * @param wbuf write buffer
30 * @param start_block first block to write to
31 * @param num_blocks number of blocks to write
32 * @retval 0 write succeeded
33 * @retval -EBUSY: card is busy with another request
34 * @retval -ETIMEDOUT: card write timed out
35 * @retval -EIO: I/O error
[all …]
/Zephyr-latest/dts/bindings/mtd/
Djedec,spi-nor-common.yaml3 # SPDX-License-Identifier: Apache-2.0
5 # Common properties used by nodes describing M25P80-compatible SPI NOR
8 # This extends JESD216-defined features with additional functionality
9 # that may be specific to the vendor of a M25P80-compatible device and
17 requires-ulbpr:
20 Indicates the device requires the ULBPR (0x98) command.
23 protection register that initializes to write-protected. Use this
24 property to indicate that the BPR must be unlocked before write
27 has-dpd:
30 Indicates the device supports the DPD (0xB9) command.
[all …]
/Zephyr-latest/drivers/smbus/
Dsmbus_shell.c5 * SPDX-License-Identifier: Apache-2.0
24 * smbus <shell command> <device> <peripheral address> <command byte>
35 * WARNING: As there is no standard SMBUS detection command, this code
36 * uses arbitrary SMBus commands (namely SMBus quick write to probe for
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()
117 return -ENODEV; in cmd_smbus_byte_read()
126 return -EIO; in cmd_smbus_byte_read()
[all …]
Dintel_pch_smbus.c7 * PCH provides SMBus 2.0 - compliant Host Controller.
9 * SPDX-License-Identifier: Apache-2.0
29 * * periph_addr - Peripheral address (Slave address mentioned in the Specs)
30 * * command - First byte to send in the SMBus protocol operations except for
92 struct pch_data *data = dev->data; in pch_reg_read()
94 return sys_in8(data->sba + reg); in pch_reg_read()
99 struct pch_data *data = dev->data; in pch_reg_write()
101 sys_out8(val, data->sba + reg); in pch_reg_write()
112 const struct device *dev = data->dev; in host_notify_work()
113 uint8_t addr = data->notify_addr; in host_notify_work()
[all …]
/Zephyr-latest/tests/subsys/fs/common/
Dtest_fs_util.h4 * SPDX-License-Identifier: Apache-2.0
13 * * Functions to write known content into files, and to verify that
17 * content against the build command description.
92 size_t len = sp->eos - sp->path; in testfs_path_copy()
94 memcpy(dp->path, sp->path, len + 1); in testfs_path_copy()
95 dp->eos = dp->path + len; in testfs_path_copy()
100 /** Write a sequence of constant data to the file.
104 * @param fp pointer to the file to write
106 * @param value value of the bytes to write
108 * @param len number of octets to write
[all …]
/Zephyr-latest/tests/drivers/mspi/flash/boards/
Dnative_sim.overlay4 * SPDX-License-Identifier: Apache-2.0
15 ce-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>,
17 dqs-support;
18 software-multiperipheral;
22 compatible = "zephyr,mspi-emul-flash";
25 mspi-max-frequency = <48000000>;
26 mspi-io-mode = "MSPI_IO_MODE_QUAD";
27 mspi-data-rate = "MSPI_DATA_RATE_SINGLE";
28 mspi-hardware-ce-num = <0>;
29 read-command = <0x0B>;
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_sifive.c4 * SPDX-License-Identifier: Apache-2.0
18 #include "i2c-priv.h"
22 #define I2C_REG(config, reg) ((mem_addr_t) ((config)->base + reg))
32 /* Transmit on write, receive on read */
36 /* Command on write, status on read */
73 const struct i2c_sifive_cfg *config = dev->config; in i2c_sifive_busy()
82 const struct i2c_sifive_cfg *config = dev->config; in i2c_sifive_send_addr()
83 uint8_t command = 0U; in i2c_sifive_send_addr() local
89 /* Set transmit register to address with read/write flag */ in i2c_sifive_send_addr()
93 command = SF_CMD_WRITE | SF_CMD_START; in i2c_sifive_send_addr()
[all …]
/Zephyr-latest/tests/drivers/smbus/smbus_emul/src/
Demul.c4 * SPDX-License-Identifier: Apache-2.0
51 sys_slist_prepend(&peripherals, &peripheral->node); in emul_register_smbus_peripheral()
59 if (peripheral->addr == addr) { in emul_get_smbus_peripheral()
72 if (peripheral->smbalert && !peripheral->smbalert_handled) { in peripheral_handle_smbalert()
82 LOG_DBG("Return own address: 0x%02x", found->addr); in peripheral_handle_smbalert()
84 io_area[PCH_SMBUS_HD0] = found->addr; in peripheral_handle_smbalert()
85 found->smbalert_handled = true; in peripheral_handle_smbalert()
95 if (peripheral->host_notify) { in peripheral_handle_host_notify()
97 io_area[PCH_SMBUS_NDA] = peripheral->addr << 1; in peripheral_handle_host_notify()
113 peripheral->raw_data[reg] = value; in peripheral_write()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dmipi_dbi.h4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Public APIs for MIPI-DBI drivers
11 * MIPI-DBI defines the following 3 interfaces:
15 * 1. 9 write clocks per byte, final bit is command/data selection bit
16 * 2. Same as above, but 16 write clocks per byte
17 * 3. 8 write clocks per byte. Command/data selected via GPIO pin
18 * The current driver interface does not support type C with 16 write clocks (option 2).
25 * @brief MIPI-DBI driver APIs
26 * @defgroup mipi_dbi_interface MIPI-DBI driver APIs
37 #include <zephyr/dt-bindings/mipi_dbi/mipi_dbi.h>
[all …]
/Zephyr-latest/include/zephyr/drivers/i3c/
Dhdr_ddr.h4 * SPDX-License-Identifier: Apache-2.0
28 * @brief Write a set amount of data to an I3C target device with HDR DDR.
33 * @param cmd 7-bit command code
35 * @param num_bytes Number of bytes to write.
38 * @retval -EBUSY Bus is busy.
39 * @retval -EIO General input / output error.
61 * @param cmd 7-bit command code
66 * @retval -EBUSY Bus is busy.
67 * @retval -EIO General input / output error.
84 * @brief Write then read data from an I3C target device with HDR DDR.
[all …]
/Zephyr-latest/drivers/sensor/sensirion/scd4x/
Dscd4x.c4 * SPDX-License-Identifier: Apache-2.0
33 const struct scd4x_config *cfg = dev->config; in scd4x_write_command()
39 ret = i2c_write_dt(&cfg->bus, tx_buf, sizeof(tx_buf)); in scd4x_write_command()
50 const struct scd4x_config *cfg = dev->config; in scd4x_read_reg()
53 ret = i2c_read_dt(&cfg->bus, rx_buf, rx_buf_size); in scd4x_read_reg()
63 return -EIO; in scd4x_read_reg()
72 const struct scd4x_config *cfg = dev->config; in scd4x_write_reg()
86 ret = i2c_write_dt(&cfg->bus, tx_buf, sizeof(tx_buf)); in scd4x_write_reg()
88 LOG_ERR("Failed to write i2c data."); in scd4x_write_reg()
106 LOG_ERR("Failed to write get_data_ready_status command."); in scd4x_data_ready()
[all …]
/Zephyr-latest/soc/nuvoton/npcx/common/ecst/
Decst.py5 # SPDX-License-Identifier: Apache-2.0
10 # -i in_file.bin -o out_file.bin
11 # [-chip <name>] [-v|-vv]
12 # [-nohcrc] [-nofcrc] [-ph <offset>]
13 # [-flashsize <1|2|4|8|16>]
14 # [-spimaxclk <20|25|33|40|50>]
15 # [-spireadmode <normal|fast|dual|quad>]
112 INVALID_INPUT = -1
115 BYTES_TO_PAD = HDR_FW_HEADER_SIG_OFFSET - RESERVED_BYTES_OFFSET
129 :param ecst_args: the object representing the command line arguments.
[all …]
/Zephyr-latest/drivers/flash/
Dflash_ite_it8xxx2.c4 * SPDX-License-Identifier: Apache-2.0
19 #include <zephyr/linker/linker-defs.h>
50 * ILM(ILM -> CPU)instead of flash(flash -> I-Cache -> CPU) if enabled.
54 /* page program command */
56 /* sector erase command (erase size is 4KB) */
58 /* command for flash write */
60 /* Write status register */
62 /* Write disable */
64 /* Write enable */
76 /* Internal write operation is in progress */
[all …]
Dflash_ifx_cat1_qspi.c5 * SPDX-License-Identifier: Apache-2.0
67 /* The 8-bit command. 1 x I/O read command. */
68 .command = 0x5AU,
69 /* The width of the command transfer. */
73 /* The 8-bit mode byte. This value is 0xFFFFFFFF when there is no mode present. */
75 /* The width of the mode command transfer. */
92 * https://iot-webserver.aus.cypress.com/projects/iot_release/
93 * ASSETS/repo/mtb-pdl-cat1/develop/Latest/deploy/docs/
111 /* Specifies the Read command. */
113 /* Specifies the Write Enable command. */
[all …]
DKconfig.at452 # SPDX-License-Identifier: Apache-2.0
26 bool "Use Read-Modify-Write command in flash_write()"
29 Use the Read-Modify-Write command (opcode 0x58) instead of the default
30 Main Memory Program without Built-In Erase (opcode 0x02). This allows
/Zephyr-latest/soc/intel/intel_adsp/ace/
Dpmc_interface.h2 * SPDX-License-Identifier: Apache-2.0
18 * The requesting agent will write the PMC command op-code into this field.
23 * When the PMC has completed the API command, the PMC will write a completion code (CC) back into
49 * busy - The run/busy bit can only be set by the requesting agent and can only be cleared by the
50 * responding agent. When this bit is set it will prompt the PMC to execute the command placed in
51 * the mailbox. The PMC will clear this flag after the command has been processed and a completion
52 * code has been written back into the COMMAND field and any data requested has been written into
61 * No operation - PMC FW will clear the run / busy bit and return a success response
66 * Version - The IPC command to obtain information about current HAL version.
67 * param_1 - Pass back the PMC ACE protocol version - the initial version is 0.
[all …]
/Zephyr-latest/dts/bindings/mipi-dbi/
Dnxp,lcdic.yaml2 # SPDX-License-Identifier: Apache-2.0
5 NXP LCDIC Controller. This controller implements 8080 and SPI mode MIPI-DBI
9 include: ["mipi-dbi-controller.yaml", "pinctrl-device.yaml"]
21 nxp,swap-bytes:
27 reset-gpios:
28 type: phandle-array
34 nxp,write-inactive-cycles:
38 Set minimum count of write inactive cycles, as a multiple of the module
42 nxp,write-active-cycles:
46 Set minimum count of write active cycles, as a multiple of the module
[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:
50 Time in microseconds (us) the memory device can accept the next command following a SW reset.
52 read-cs-idle-min-ns:
[all …]
/Zephyr-latest/soc/nuvoton/npcm/common/esiost/
Desiost.py5 # SPDX-License-Identifier: Apache-2.0
10 # -i in_file.bin -o out_file.bin
11 # [-chip <name>] [-v]
61 INVALID_INPUT = -1
75 :param esiost_args: the object representing the command line arguments.
101 :param esiost_args: the object representing the command line arguments.
103 :returns: output file path object, or -1 if fails
110 exit_with_failure("Define input file, using -i flag")
148 :param esiost_args: the object representing the command line arguments.
160 :param esiost_args: the object representing the command line arguments.
[all …]
/Zephyr-latest/dts/bindings/auxdisplay/
Dhit,hd44780.yaml4 # SPDX-License-Identifier: Apache-2.0
11 include: [auxdisplay-device.yaml]
17 description: Operating mode of display, 8-bit or 4 for 4-bit mode
19 - 4
20 - 8
22 register-select-gpios:
23 type: phandle-array
27 read-write-gpios:
28 type: phandle-array
29 description: Optional GPIO used for selecting read or write mode
[all …]
/Zephyr-latest/samples/subsys/modbus/tcp_server/
DREADME.rst1 .. zephyr:code-sample:: modbus-tcp-server
3 :relevant-api: modbus bsd_sockets
16 This sample has been tested with FRDM-K64F board,
34 .. zephyr-app-commands::
35 :zephyr-app: samples/subsys/modbus/tcp_server
40 On the client side, PC or laptop, the following command connects PyModbus
43 .. code-block:: console
45 # pymodbus.console tcp --host 192.0.2.1 --port 502
48 For example, to set LED0 on use FC01 command (write_coil).
50 .. code-block:: console
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/
Dsmp_test_util.h4 * SPDX-License-Identifier: Apache-2.0
15 /* Function for creating an settings_mgmt read command */
19 /* Function for creating an settings_mgmt write command */
24 /* Function for creating an settings_mgmt delete command */
28 /* Function for creating an settings_mgmt commit command */
32 /* Function for creating an settings_mgmt load command */
36 /* Function for creating an settings_mgmt save command */
/Zephyr-latest/scripts/west_commands/
Dsign.py3 # SPDX-License-Identifier: Apache-2.0
28 sys.path.insert(0, str(ZEPHYR_SCRIPTS / 'dts' / 'python-devicetree' / 'src'))
31 This command automates some of the drudgery of creating signed Zephyr
32 binaries for chain-loading by a bootloader.
36 west sign -t your_tool -- ARGS_FOR_YOUR_TOOL
40 which sort of ARGS_FOR_YOUR_TOOLS you use, the `--` separator/sentinel may
42 understand POSIX 12.2 Guideline 10, always use `--`.
44 See tool-specific help below for details.'''
48 -------
53 west sign -t imgtool -- --key YOUR_SIGNING_KEY.pem
[all …]

12345678910>>...23