ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ri_spi_init_config_t Struct Reference

#include <ruuvi_interface_spi.h>

Data Fields

ri_gpio_id_t mosi
 pin number of MOSI More...
 
ri_gpio_id_t miso
 pin number of MISO More...
 
ri_gpio_id_t sclk
 pin number of SCLK More...
 
ri_gpio_id_tss_pins
 array of SPI pins, can be freed after function exits More...
 
size_t ss_pins_number
 sizeof ss_pins More...
 
ri_spi_frequency_t frequency
 Frequency of SPI Bus, see ri_spi_frequency_t. More...
 
ri_spi_mode_t mode
 Mode of SPI Bus, see ri_spi_mode_t. More...
 

Detailed Description

Configuration for initializing SPI

Definition at line 54 of file ruuvi_interface_spi.h.

Field Documentation

◆ frequency

ri_spi_frequency_t frequency

Frequency of SPI Bus, see ri_spi_frequency_t.

Definition at line 61 of file ruuvi_interface_spi.h.

◆ miso

pin number of MISO

Definition at line 57 of file ruuvi_interface_spi.h.

◆ mode

Mode of SPI Bus, see ri_spi_mode_t.

Definition at line 62 of file ruuvi_interface_spi.h.

◆ mosi

pin number of MOSI

Definition at line 56 of file ruuvi_interface_spi.h.

◆ sclk

pin number of SCLK

Definition at line 58 of file ruuvi_interface_spi.h.

◆ ss_pins

ri_gpio_id_t* ss_pins

array of SPI pins, can be freed after function exits

Definition at line 59 of file ruuvi_interface_spi.h.

◆ ss_pins_number

size_t ss_pins_number

sizeof ss_pins

Definition at line 60 of file ruuvi_interface_spi.h.


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