aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/fx2/src/usrp1/spi.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/fx2/src/usrp1/spi.h')
-rw-r--r--firmware/fx2/src/usrp1/spi.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/fx2/src/usrp1/spi.h b/firmware/fx2/src/usrp1/spi.h
index 12bc5e544..5342b82b8 100644
--- a/firmware/fx2/src/usrp1/spi.h
+++ b/firmware/fx2/src/usrp1/spi.h
@@ -39,5 +39,12 @@ spi_write (unsigned char header_hi, unsigned char header_lo,
unsigned char enables, unsigned char format,
const xdata unsigned char *buf, unsigned char len);
+// returns non-zero if successful, else 0
+unsigned char
+spi_transact (unsigned char data0, unsigned char data1,
+ unsigned char data2, unsigned char data3,
+ unsigned char enables, xdata unsigned char *buf,
+ unsigned char len);
+
#endif /* INCLUDED_SPI_H */