TizenRT Public API  v2.0 M2
iotbus_spi.h File Reference

Iotbus APIs for SPI. More...

#include <stdint.h>
#include <sys/types.h>
Include dependency graph for iotbus_spi.h:

Go to the source code of this file.

Data Structures

struct  iotbus_spi_config_s
 Structure of SPI configuration. More...
 

Typedefs

typedef struct _iotbus_spi_wrapper_s * iotbus_spi_context_h
 Pointer definition to the internal struct _iotbus_spi_wrapper_s. More...
 

Enumerations

Functions

iotbus_spi_context_h iotbus_spi_open (unsigned int bus, const struct iotbus_spi_config_s *config)
 initializes spi_context. More...
 
int iotbus_spi_write (iotbus_spi_context_h hnd, uint8_t *txbuf, size_t length)
 writes data over spi bus. More...
 
int iotbus_spi_recv (iotbus_spi_context_h hnd, uint8_t *rxbuf, size_t length)
 reads data over spi bus. More...
 
int iotbus_spi_close (iotbus_spi_context_h hnd)
 closes spi_context. More...
 

Detailed Description

Iotbus APIs for SPI.

Definition in file iotbus_spi.h.