Lines Matching +full:conf +full:- +full:tx
4 * SPDX-License-Identifier: Apache-2.0
21 #define MAX_SPI_BYTES MIN((CONFIG_SHELL_ARGC_MAX - TXRX_ARGV_BYTES), 32)
31 entry->syntax = (dev != NULL) ? dev->name : NULL; in device_name_get()
32 entry->handler = NULL; in device_name_get()
33 entry->help = NULL; in device_name_get()
34 entry->subcmd = NULL; in device_name_get()
45 shell_error(ctx, "SPI device isn't configured. Use `spi conf`"); in cmd_spi_transceive()
46 return -ENODEV; in cmd_spi_transceive()
49 int bytes_to_send = argc - TXRX_ARGV_BYTES; in cmd_spi_transceive()
68 shell_print(ctx, "TX:"); in cmd_spi_transceive()
87 return -ENODEV; in cmd_spi_conf()
94 return -EINVAL; in cmd_spi_conf()
127 return -EINVAL; in cmd_spi_conf()
139 SHELL_CMD_ARG(conf, &dsub_device_name,
141 "Usage: spi conf <device> <frequency> [<settings>]\n"
142 "<settings> - any sequence of letters:\n"
143 "o - SPI_MODE_CPOL\n"
144 "h - SPI_MODE_CPHA\n"
145 "l - SPI_TRANSFER_LSB\n"
146 "T - SPI_FRAME_FORMAT_TI\n"
147 "example: spi conf spi1 1000000 ol",
151 "Usage: spi transceive <TX byte 1> [<TX byte 2> ...]",
152 cmd_spi_transceive, 2, MAX_SPI_BYTES - 1),