Home
last modified time | relevance | path

Searched refs:cmd_data (Results 1 – 10 of 10) sorted by relevance

/Zephyr-latest/drivers/sensor/fcx_mldx5/
Dfcx_mldx5.c227 const char *cmd_data) in fcx_mldx5_uart_send() argument
230 size_t cmd_data_len = cmd_data != NULL ? strlen(cmd_data) : 0; in fcx_mldx5_uart_send()
239 memcpy(&buf[FCX_MLDX5_DATA_INDEX], cmd_data, strlen(cmd_data)); in fcx_mldx5_uart_send()
332 const char *cmd_data) in fcx_mldx5_buffer_process() argument
344 return cmd_data != NULL && data->frame[FCX_MLDX5_DATA_INDEX] == cmd_data[0]; in fcx_mldx5_buffer_process()
354 const char *cmd_data) in fcx_mldx5_uart_transceive() argument
362 fcx_mldx5_uart_send(dev, cmd, cmd_data); in fcx_mldx5_uart_transceive()
368 rc = fcx_mldx5_buffer_process(data, cmd, cmd_data); in fcx_mldx5_uart_transceive()
/Zephyr-latest/drivers/mipi_dbi/
Dmipi_dbi_bitbang.c42 const struct gpio_dt_spec cmd_data; member
106 gpio_pin_set_dt(&config->cmd_data, 0); in mipi_dbi_bitbang_write_helper()
111 gpio_pin_set_dt(&config->cmd_data, 1); in mipi_dbi_bitbang_write_helper()
131 gpio_pin_set_dt(&config->cmd_data, 0); in mipi_dbi_bitbang_write_helper()
136 gpio_pin_set_dt(&config->cmd_data, 1); in mipi_dbi_bitbang_write_helper()
199 if (gpio_is_ready_dt(&config->cmd_data)) { in mipi_dbi_bitbang_init()
200 ret = gpio_pin_configure_dt(&config->cmd_data, GPIO_OUTPUT_ACTIVE); in mipi_dbi_bitbang_init()
205 gpio_pin_set_dt(&config->cmd_data, 0); in mipi_dbi_bitbang_init()
336 .cmd_data = GPIO_DT_SPEC_INST_GET_OR(n, dc_gpios, {}), \
Dmipi_dbi_spi.c22 const struct gpio_dt_spec cmd_data; member
139 gpio_pin_set_dt(&config->cmd_data, 0); in mipi_dbi_spi_write_helper_4wire_8bit()
151 gpio_pin_set_dt(&config->cmd_data, 1); in mipi_dbi_spi_write_helper_4wire_8bit()
192 gpio_pin_set_dt(&config->cmd_data, 0); in mipi_dbi_spi_write_helper_4wire_16bit()
201 gpio_pin_set_dt(&config->cmd_data, 1); in mipi_dbi_spi_write_helper_4wire_16bit()
219 gpio_pin_set_dt(&config->cmd_data, 1); in mipi_dbi_spi_write_helper_4wire_16bit()
414 gpio_pin_set_dt(&config->cmd_data, 0); in mipi_dbi_spi_read_helper_4wire()
427 gpio_pin_set_dt(&config->cmd_data, 1); in mipi_dbi_spi_read_helper_4wire()
519 if (mipi_dbi_has_pin(&config->cmd_data)) { in mipi_dbi_spi_init()
520 if (!gpio_is_ready_dt(&config->cmd_data)) { in mipi_dbi_spi_init()
[all …]
Dmipi_dbi_nxp_lcdic.c69 uint32_t cmd_data: 1; member
397 cmd.bits.cmd_data = dc; in mipi_dbi_lcdic_set_cmd()
/Zephyr-latest/drivers/display/
Dssd1322.c165 uint8_t cmd_data[2]; in ssd1322_write() local
187 cmd_data[0] = config->column_offset + (x >> 2) * config->segments_per_pixel; in ssd1322_write()
188 cmd_data[1] = in ssd1322_write()
190 ret = ssd1322_write_command(dev, SSD1322_SET_COLUMN_ADDR, cmd_data, 2); in ssd1322_write()
195 cmd_data[0] = y; in ssd1322_write()
196 cmd_data[1] = y + desc->height - 1; in ssd1322_write()
197 ret = ssd1322_write_command(dev, SSD1322_SET_ROW_ADDR, cmd_data, 2); in ssd1322_write()
/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/uart/src/
Dmain.c57 const struct hello_cmd_data *cmd_data = args->input_buf; in ec_host_cmd_hello() local
70 if (memcmp(hello_magic, cmd_data->magic, sizeof(hello_magic))) { in ec_host_cmd_hello()
84 struct hello_cmd_data *cmd_data = (struct hello_cmd_data *)(buf + CMD_HEADER_SIZE); in prepare_hello_cmd() local
90 cmd->data_len = sizeof(*cmd_data); in prepare_hello_cmd()
91 memcpy(cmd_data->magic, hello_magic, sizeof(hello_magic)); in prepare_hello_cmd()
92 cmd->checksum = cal_checksum((uint8_t *)cmd, CMD_HEADER_SIZE + sizeof(*cmd_data)); in prepare_hello_cmd()
/Zephyr-latest/drivers/bluetooth/hci/
Dhci_spi_st.c329 uint8_t *cmd_data; in bt_spi_send_aci_config() local
345 cmd_data = net_buf_add(buf, data_len); in bt_spi_send_aci_config()
346 cmd_data[0] = offset; in bt_spi_send_aci_config()
347 cmd_data[1] = value_len; in bt_spi_send_aci_config()
348 memcpy(&cmd_data[2], value, value_len); in bt_spi_send_aci_config()
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_gatt.c498 struct add_characteristic cmd_data; in add_characteristic() local
507 cmd_data.char_id = 0U; in add_characteristic()
508 cmd_data.permissions = cp->permissions; in add_characteristic()
509 cmd_data.properties = cp->properties; in add_characteristic()
510 cmd_data.uuid = &uuid.uuid; in add_characteristic()
521 if (alloc_characteristic(&cmd_data)) { in add_characteristic()
527 rp->char_id = sys_cpu_to_le16(cmd_data.char_id); in add_characteristic()
687 struct add_descriptor cmd_data; in add_descriptor() local
702 cmd_data.desc_id = 0U; in add_descriptor()
703 cmd_data.permissions = cp->permissions; in add_descriptor()
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_dw_registers.h170 DEFINE_MM_REG_WRITE(cmd_data, DW_IC_REG_DATA_CMD, 32)
171 DEFINE_MM_REG_READ(cmd_data, DW_IC_REG_DATA_CMD, 32)
/Zephyr-latest/subsys/bluetooth/host/
Dhci_core.c116 struct cmd_data { struct
130 static struct cmd_data cmd_data[CONFIG_BT_BUF_CMD_TX_COUNT]; argument
132 #define cmd(buf) (&cmd_data[net_buf_id(buf)])