Lines Matching +full:rx +full:- +full:addr +full:- +full:mode
4 * SPDX-License-Identifier: Apache-2.0
40 #define MAX_READ_LEN (UINT16_MAX - ADDR_SIZE - DUMMY_READ_SIZE)
41 #define MAX_WRITE_LEN (UINT16_MAX - ADDR_SIZE)
47 static void insert_addr(uint32_t addr, uint8_t *buff) in insert_addr() argument
49 buff[0] = (addr >> 16) & 0x3f; in insert_addr()
50 buff[1] = (addr >> 8) & 0xff; in insert_addr()
51 buff[2] = (addr) & 0xff; in insert_addr()
59 LOG_ERR("SPI bus %s not ready", spi.bus->name); in ft8xx_drv_init()
60 return -ENODEV; in ft8xx_drv_init()
64 * If not, use polling mode. in ft8xx_drv_init()
67 LOG_ERR("GPIO device %s is not ready", irq_gpio.port->name); in ft8xx_drv_init()
68 return -ENODEV; in ft8xx_drv_init()
139 struct spi_buf rx[] = { in ft8xx_drv_read() local
151 .buffers = rx, in ft8xx_drv_read()
166 /* Most commands include COMMAND_OP bit. ACTIVE power mode command is in ft8xx_drv_command()