Lines Matching +full:tx +full:- +full:data +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)
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()
87 int ft8xx_drv_write(uint32_t address, const uint8_t *data, unsigned int length) in ft8xx_drv_write() argument
95 struct spi_buf tx[] = { in ft8xx_drv_write() local
101 /* Discard const, it is implicit for TX buffer */ in ft8xx_drv_write()
102 .buf = (uint8_t *)data, in ft8xx_drv_write()
108 .buffers = tx, in ft8xx_drv_write()
120 int ft8xx_drv_read(uint32_t address, uint8_t *data, unsigned int length) in ft8xx_drv_read() argument
129 struct spi_buf tx = { in ft8xx_drv_read() local
135 .buffers = &tx, in ft8xx_drv_read()
145 .buf = data, in ft8xx_drv_read()
166 /* Most commands include COMMAND_OP bit. ACTIVE power mode command is in ft8xx_drv_command()
171 struct spi_buf tx = { in ft8xx_drv_command() local
177 .buffers = &tx, in ft8xx_drv_command()