5 #include "ReadWriteBits.h"
10 #include "SpiSlave_faked.h"
63 ClearBit(
Spi_SPCR, Spi_InterruptEnable);
75 #define ClearSpiInterruptFlag ClearSpiInterruptFlag_fake
99 SetBit(
Spi_SPCR, Spi_InterruptEnable);
111 #undef ClearSpiInterruptFlag
116 #define EnableSpiInterrupt EnableSpiInterrupt_fake
142 #undef EnableSpiInterrupt
146 #define _SpiTransferIsDone _SpiTransferIsDone_fake
147 #define _SignalDataReady _SignalDataReady_fake
148 #define DisableSpiInterrupt DisableSpiInterrupt_fake
194 #undef _SpiTransferIsDone
195 #undef _SignalDataReady
196 #undef DisableSpiInterrupt
200 #define SpiSlaveTxByte SpiSlaveTxByte_fake
202 inline void SpiSlaveTx(uint8_t
const *input_buffer, uint16_t nbytes)
208 for (byte_index = 0; byte_index < nbytes; byte_index++)
214 #undef SpiSlaveTxByte
spi_ptr Spi_SPCR
SPI Control Register.
spi_ptr Spi_SPDR
SPI Data Register.
void _SignalDataNotReady(void)
void EnableSpiInterrupt(void)
void DisableSpiInterrupt(void)
void SpiSlaveTx(uint8_t const *input_buffer, uint16_t nbytes)
void SpiSlaveTxByte(uint8_t input_byte)
void _SignalDataReady(void)
Spi.h declares SPI hardware types and variables common to the SPI Master and SPI Slave.
void _EnableSpiModule(void)
spi_reg Spi_PortOutput
Atmel PORT.
spi_reg Spi_PortDirection
Atmel DDR.
bool _SpiTransferIsDone(void)
void ClearSpiInterruptFlag(void)