eBoard ๐Ÿ‰  โ‘ โ‘งโ‘จ
Written for SIA 2017/2018
eagle_SPI.h File Reference
#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
 

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 34 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 12 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 8 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 14 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 18 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 6 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 10 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 16 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 32 of file eagle_SPI.h.

◆ SPI_MODE0

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

Definition at line 21 of file eagle_SPI.h.

◆ SPI_MODE1

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

Definition at line 23 of file eagle_SPI.h.

◆ SPI_MODE2

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

Definition at line 25 of file eagle_SPI.h.

◆ SPI_MODE3

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

Definition at line 27 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 30 of file eagle_SPI.h.