SPI bit-bashing interface.
Definition in file spi_bit.h.
Initialise SPI bit-bashing interface.
- Parameters
-
spibit | SPI bit-bashing interface |
Definition at line 235 of file spi_bit.c.
struct bit_basher basher
Bit-bashing interface.
static int spi_bit_rw(struct spi_bus *bus, struct spi_device *device, unsigned int command, int address, const void *data_out, void *data_in, size_t len)
Read/write data via SPI bit-bashing bus.
int(* rw)(struct spi_bus *bus, struct spi_device *device, unsigned int command, int address, const void *data_out, void *data_in, size_t len)
Read/write data via SPI bus.
struct bit_basher_operations * op
Bit-bashing operations.
assert((readw(&hdr->flags) &(GTF_reading|GTF_writing))==0)
int(* read)(struct bit_basher *basher, unsigned int bit_id)
Read input bit.
struct spi_bus bus
SPI bus.
void(* write)(struct bit_basher *basher, unsigned int bit_id, unsigned long data)
Set/clear output bit.
#define NULL
NULL pointer (VOID *)
References assert(), spi_bit_basher::basher, spi_bit_basher::bus, NULL, bit_basher::op, bit_basher_operations::read, spi_bus::rw, spi_bit_rw(), and bit_basher_operations::write.
Referenced by ifec_init_eeprom(), natsemi_init_eeprom(), realtek_init_eeprom(), and rtl818x_probe().