KM3NeT CLB  2.0
KM3NeT CLB v2 Embedded Software
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SpiInit Struct Reference

SPI initialization structure. More...

#include <spi.h>

Data Fields

uint32_t bitrate
 Bit-rate.
 
uint8_t mode
 SPI mode (0 - 3, see Wikipedia, 0 - default).
 
bool lsbFirst
 Transfer LSB first.
 
bool intEnable
 Interrupts enabled (not implemented yet).
 
bool autoSlaveSelect
 Auto slave select.
 

Detailed Description

SPI initialization structure.

See OpenCores SPI device documentation for more information. Note that only byte-sized transfers are supported by this driver.

Attention
SPI modes 2 and 3 are not well supported!

Definition at line 91 of file spi.h.


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