32 #include "ReadWriteBits.h"
35 typedef uint8_t
volatile *
const spi_reg;
36 typedef uint8_t
const spi_bit;
55 extern spi_bit Spi_DataReady;
56 extern spi_bit Spi_Ss;
57 extern spi_bit Spi_Mosi;
58 extern spi_bit Spi_Miso;
59 extern spi_bit Spi_Sck;
62 extern spi_bit Spi_MasterSlaveSelect;
63 extern spi_bit Spi_ClockBit0;
64 extern spi_bit Spi_ClockBit1;
65 extern spi_bit Spi_DoubleClock;
66 extern spi_bit Spi_Enable;
67 extern spi_bit Spi_InterruptEnable;
68 extern spi_bit Spi_InterruptFlag;
71 #include "Spi_faked.h"
94 return BitIsSet(
Spi_SPSR, Spi_InterruptFlag);
104 inline uint8_t ReadSpiStatusRegister(
void)
110 inline uint8_t ReadSpiDataRegister(
void)
124 ReadSpiStatusRegister();
125 ReadSpiDataRegister();
void _EnableSpiModule(void)
spi_reg Spi_PortOutput
Atmel PORT.
spi_reg Spi_SPDR
SPI Data Register.
spi_reg Spi_SPCR
SPI Control Register.
spi_reg Spi_PortPullup
Atmel PORT alias.
spi_reg Spi_PortDirection
Atmel DDR.
bool _SpiTransferIsDone(void)
spi_reg Spi_PortInput
Atmel PIN.
spi_reg Spi_SPSR
SPI Status Register.
void ClearSpiInterruptFlag(void)