Lines Matching +full:tx +full:- +full:buffer +full:- +full:size

5  * SPDX-License-Identifier: Apache-2.0
65 MODE(TX),
111 const struct spi_buf_set tx = { in sx126x_spi_transceive() local
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()
149 void SX126xReadRegisters(uint16_t address, uint8_t *buffer, uint16_t size) in SX126xReadRegisters() argument
158 LOG_DBG("Reading %" PRIu16 " registers @ 0x%" PRIx16, size, address); in SX126xReadRegisters()
159 sx126x_spi_transceive(req, NULL, sizeof(req), NULL, buffer, size); in SX126xReadRegisters()
160 LOG_HEXDUMP_DBG(buffer, size, "register_value"); in SX126xReadRegisters()
168 void SX126xWriteRegisters(uint16_t address, uint8_t *buffer, uint16_t size) in SX126xWriteRegisters() argument
178 size, address, buffer[0]); in SX126xWriteRegisters()
179 sx126x_spi_transceive(req, NULL, sizeof(req), buffer, NULL, size); in SX126xWriteRegisters()
183 uint8_t *buffer, uint16_t size) in SX126xReadCommand() argument
192 LOG_DBG("Issuing opcode 0x%x (data size: %" PRIx16 ")", in SX126xReadCommand()
193 opcode, size); in SX126xReadCommand()
195 NULL, buffer, size); in SX126xReadCommand()
196 LOG_DBG("-> status: 0x%" PRIx8, rx_req[1]); in SX126xReadCommand()
200 void SX126xWriteCommand(RadioCommands_t opcode, uint8_t *buffer, uint16_t size) in SX126xWriteCommand() argument
207 opcode, size); in SX126xWriteCommand()
208 sx126x_spi_transceive(req, NULL, sizeof(req), buffer, NULL, size); in SX126xWriteCommand()
211 void SX126xReadBuffer(uint8_t offset, uint8_t *buffer, uint8_t size) in SX126xReadBuffer() argument
220 offset, size); in SX126xReadBuffer()
221 sx126x_spi_transceive(req, NULL, sizeof(req), NULL, buffer, size); in SX126xReadBuffer()
224 void SX126xWriteBuffer(uint8_t offset, uint8_t *buffer, uint8_t size) in SX126xWriteBuffer() argument
232 offset, size); in SX126xWriteBuffer()
233 sx126x_spi_transceive(req, NULL, sizeof(req), buffer, NULL, size); in SX126xWriteBuffer()
385 const struct spi_buf_set tx = { in SX126xWakeup() local
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()