Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/DuetNG/DuetEthernet/Ethernet3/utility/WizSpi.h')
-rw-r--r--src/DuetNG/DuetEthernet/Ethernet3/utility/WizSpi.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/DuetNG/DuetEthernet/Ethernet3/utility/WizSpi.h b/src/DuetNG/DuetEthernet/Ethernet3/utility/WizSpi.h
new file mode 100644
index 00000000..214c668f
--- /dev/null
+++ b/src/DuetNG/DuetEthernet/Ethernet3/utility/WizSpi.h
@@ -0,0 +1,24 @@
+/*
+ * Spi.h
+ *
+ * Created on: 16 Dec 2016
+ * Author: David
+ */
+
+#ifndef SRC_DUETNG_DUETETHERNET_ETHERNET3_UTILITY_WIZSPI_H_
+#define SRC_DUETNG_DUETETHERNET_ETHERNET3_UTILITY_WIZSPI_H_
+
+#include "spi.h"
+
+namespace WizSpi
+{
+ void Init();
+ void Stop();
+ void AssertSS();
+ void ReleaseSS();
+ uint8_t ExchangeByte(uint8_t b, bool isLast);
+ spi_status_t ReadBurst(uint8_t* rx_data, size_t len);
+ spi_status_t SendBurst(const uint8_t* tx_data, size_t len);
+}
+
+#endif /* SRC_DUETNG_DUETETHERNET_ETHERNET3_UTILITY_WIZSPI_H_ */