eBoard ①⑧⑨
Written for SIA 2017/2018
eagle_SPI.h File Reference

this file contains the SPI class More...

#include <stdio.h>
+ Include dependency graph for eagle_SPI.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  eagle_impl::SPIClass
 [SPI] This is used to avoid path resolving issues and defines the common known Arduino SPI interface
        Don't use manually More...
 

Namespaces

 eagle_impl
 this namespace contains all the don't use manually classes ;)
 

Macros

#define SPI_CLOCK_DIV4   0x00
 
#define SPI_CLOCK_DIV16   0x01
 
#define SPI_CLOCK_DIV64   0x02
 
#define SPI_CLOCK_DIV128   0x03
 
#define SPI_CLOCK_DIV2   0x04
 
#define SPI_CLOCK_DIV8   0x05
 
#define SPI_CLOCK_DIV32   0x06
 
#define SPI_MODE0   0x00
 
#define SPI_MODE1   0x04
 
#define SPI_MODE2   0x08
 
#define SPI_MODE3   0x0C
 
#define SPI_MODE_MASK   0x0C
 
#define SPI_CLOCK_MASK   0x03
 
#define SPI_2XCLOCK_MASK   0x01
 

Detailed Description

this file contains the SPI class

Last Updated:

Version
3.2.0a

Definition in file eagle_SPI.h.

Macro Definition Documentation

◆ SPI_2XCLOCK_MASK

#define SPI_2XCLOCK_MASK   0x01
Macro or Constant:
the scaled clock mask to apply the correct devider

Definition at line 46 of file eagle_SPI.h.

◆ SPI_CLOCK_DIV128

#define SPI_CLOCK_DIV128   0x03
Macro or Constant:
this will set the clock devider to 128

Definition at line 24 of file eagle_SPI.h.

◆ SPI_CLOCK_DIV16

#define SPI_CLOCK_DIV16   0x01
Macro or Constant:
this will set the clock devider to 16

Definition at line 20 of file eagle_SPI.h.

◆ SPI_CLOCK_DIV2

#define SPI_CLOCK_DIV2   0x04
Macro or Constant:
this will set the clock devider to 2

Definition at line 26 of file eagle_SPI.h.

◆ SPI_CLOCK_DIV32

#define SPI_CLOCK_DIV32   0x06
Macro or Constant:
this will set the clock devider to 32

Definition at line 30 of file eagle_SPI.h.

◆ SPI_CLOCK_DIV4

#define SPI_CLOCK_DIV4   0x00
Macro or Constant:
this will set the clock devider to 4

Definition at line 18 of file eagle_SPI.h.

◆ SPI_CLOCK_DIV64

#define SPI_CLOCK_DIV64   0x02
Macro or Constant:
this will set the clock devider to 64

Definition at line 22 of file eagle_SPI.h.

◆ SPI_CLOCK_DIV8

#define SPI_CLOCK_DIV8   0x05
Macro or Constant:
this will set the clock devider to 8

Definition at line 28 of file eagle_SPI.h.

◆ SPI_CLOCK_MASK

#define SPI_CLOCK_MASK   0x03
Macro or Constant:
the clock mask to apply the correct devider

Definition at line 44 of file eagle_SPI.h.

◆ SPI_MODE0

#define SPI_MODE0   0x00
Macro or Constant:
this will set the mode to 0

Definition at line 33 of file eagle_SPI.h.

◆ SPI_MODE1

#define SPI_MODE1   0x04
Macro or Constant:
this will set the mode to 1

Definition at line 35 of file eagle_SPI.h.

◆ SPI_MODE2

#define SPI_MODE2   0x08
Macro or Constant:
this will set the mode to 2

Definition at line 37 of file eagle_SPI.h.

◆ SPI_MODE3

#define SPI_MODE3   0x0C
Macro or Constant:
this will set the mode to 3

Definition at line 39 of file eagle_SPI.h.

◆ SPI_MODE_MASK

#define SPI_MODE_MASK   0x0C
Macro or Constant:
the mode mask to apply correct mode

Definition at line 42 of file eagle_SPI.h.