35 #include <sys/types.h> 58 unsigned int chip_select;
59 unsigned int frequency;
113 #ifdef CONFIG_SPI_EXCHANGE 125 int iotbus_spi_transfer_buf(
iotbus_spi_context_h hnd, uint8_t *txbuf, uint8_t *rxbuf,
size_t length);
iotbus_spi_context_h iotbus_spi_open(unsigned int bus, const struct iotbus_spi_config_s *config)
initializes spi_context.
Structure of SPI configuration.
struct _iotbus_spi_wrapper_s * iotbus_spi_context_h
Pointer definition to the internal struct _iotbus_spi_wrapper_s.
int iotbus_spi_write(iotbus_spi_context_h hnd, uint8_t *txbuf, size_t length)
writes data over spi bus.
iotbus_spi_mode_e
Enumeration of SPI mode.
int iotbus_spi_close(iotbus_spi_context_h hnd)
closes spi_context.
int iotbus_spi_recv(iotbus_spi_context_h hnd, uint8_t *rxbuf, size_t length)
reads data over spi bus.