Lines Matching +full:m +full:- +full:bus
5 * SPDX-License-Identifier: Apache-2.0
43 .bus = SPI_DT_SPEC_INST_GET(0, SPI_WORD_SET(8) | SPI_TRANSFER_MSB, 0),
59 #define MODE(m) [MODE_##m] = #m argument
72 static const char *sx126x_mode_name(RadioOperatingModes_t m) in sx126x_mode_name() argument
76 if (m < ARRAY_SIZE(mode_names) && mode_names[m]) { in sx126x_mode_name()
77 return mode_names[m]; in sx126x_mode_name()
125 ret = spi_write_dt(&dev_config.bus, &tx); in sx126x_spi_transceive()
127 ret = spi_transceive_dt(&dev_config.bus, &tx, &rx); in sx126x_spi_transceive()
196 LOG_DBG("-> status: 0x%" PRIx8, rx_req[1]); in SX126xReadCommand()
391 ret = spi_write_dt(&dev_config.bus, &tx); in SX126xWakeup()
425 /* Re-enable the interrupt if we are not in sleep mode */ in sx126x_dio1_irq_work_handler()
433 const struct sx126x_config *config = dev->config; in sx126x_lora_init()
441 return -EIO; in sx126x_lora_init()
452 if (!spi_is_ready_dt(&config->bus)) { in sx126x_lora_init()
454 return -ENODEV; in sx126x_lora_init()