Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
sol_spi_config Struct Reference

SPI configuration struct. More...

#include <sol-spi.h>

Data Fields

uint16_t api_version
 The API version. More...
 
uint8_t bits_per_word
 Number of bits per word. More...
 
unsigned int chip_select
 Also know as slave select. More...
 
uint32_t frequency
 Clock frequency in Hz. More...
 
enum sol_spi_mode mode
 The SPI operation mode. More...
 

Detailed Description

SPI configuration struct.

This struct is used to configure an SPI bus during its creation.

See Also
sol_spi_open()

Field Documentation

uint16_t sol_spi_config::api_version

The API version.

uint8_t sol_spi_config::bits_per_word

Number of bits per word.

unsigned int sol_spi_config::chip_select

Also know as slave select.

uint32_t sol_spi_config::frequency

Clock frequency in Hz.

enum sol_spi_mode sol_spi_config::mode

The SPI operation mode.


The documentation for this struct was generated from the following file: