2024-03-21 20:55:41 +01:00
|
|
|
#ifndef _SPI_H_
|
|
|
|
#define _SPI_H_
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
2024-04-19 11:38:32 +02:00
|
|
|
typedef enum { e_SPI_CANVAS, e_SPI_DISPLAY, e_SPI_SOUND, e_SPI_EEPROM } t_SpiDeviceSelector;
|
2024-03-21 20:55:41 +01:00
|
|
|
|
|
|
|
void spiInit();
|
|
|
|
void spiSendBegin(t_SpiDeviceSelector d);
|
|
|
|
void spiSendEnd(t_SpiDeviceSelector d);
|
|
|
|
void spiSendOctet(uint8_t v);
|
2024-04-19 11:38:32 +02:00
|
|
|
uint8_t spiReceiveOctet();
|
2024-03-21 20:55:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _SPI_H_
|