mirror of
https://github.com/garrettsworkshop/ROMBUSDriver.git
synced 2025-01-12 16:29:46 +00:00
20 lines
317 B
C
20 lines
317 B
C
|
#ifndef _SPI_H
|
||
|
#define _SPI_H
|
||
|
|
||
|
#include <stddef.h>
|
||
|
|
||
|
int spi_init();
|
||
|
|
||
|
void spi_cs(int cs);
|
||
|
|
||
|
char spi_txrx8_slow(char txd);
|
||
|
char spi_txrx8(char txd);
|
||
|
char spi_rxtx8(char txd);
|
||
|
|
||
|
void spi_tx(char *txb, unsigned int length);
|
||
|
void spi_rx(char txd, char *rxb, unsigned int length);
|
||
|
|
||
|
char spi_rd8();
|
||
|
short spi_rd16();
|
||
|
|
||
|
#endif
|