ROMBUSDriver/spi.h
Zane Kaminski ef6286d674 idk
2022-12-18 08:46:39 -05:00

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