firmware  v0.1.2
Chromation Spectrometer Dev-Kit
Variables
SpiMaster-Hardware.h File Reference

This file is not used anymore. More...

#include <stdint.h>
#include <avr/io.h>
#include "SpiMaster.h"

Go to the source code of this file.

Variables

spi_reg Spi_ddr = &DDRB
 
spi_reg Spi_pin = &PINB
 
spi_reg Spi_port = &PORTB
 
spi_reg Spi_SPCR = &SPCR
 SPI Control Register.
 
spi_reg Spi_SPSR = &SPSR
 SPI Status Register.
 
spi_reg Spi_SPDR = &SPDR
 SPI Data Register. More...
 
spi_bit Spi_DataReady = PORTB1
 
spi_bit Spi_Ss = PORTB2
 
spi_bit Spi_Mosi = PORTB3
 
spi_bit Spi_Miso = PORTB4
 
spi_bit Spi_Sck = PORTB5
 
spi_bit Spi_MasterSlaveSelect = MSTR
 
spi_bit Spi_ClockBit0 = SPR0
 
spi_bit Spi_ClockBit1 = SPR1
 
spi_bit Spi_DoubleClock = SPI2X
 
spi_bit Spi_SpiEnable = SPE
 

Detailed Description

This file is not used anymore.


There used to be separate Spi hardware files for master and slave. Now there is one Spi.h file and Spi-Hardware and Spi-HardwareFake. There are still SpiMaster.h and SpiSlave.h files, but these are for the functions unique to master and slave.

Definition in file SpiMaster-Hardware.h.

Variable Documentation

◆ Spi_SPDR

spi_reg Spi_SPDR = &SPDR

SPI Data Register.

SPI Data Register.

Definition at line 21 of file SpiMaster-Hardware.h.