aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/include/wirish/HardwareSPI.h
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/include/wirish/HardwareSPI.h')
-rw-r--r--wirish/include/wirish/HardwareSPI.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/wirish/include/wirish/HardwareSPI.h b/wirish/include/wirish/HardwareSPI.h
index 89cf166..a1a4a73 100644
--- a/wirish/include/wirish/HardwareSPI.h
+++ b/wirish/include/wirish/HardwareSPI.h
@@ -184,6 +184,14 @@ public:
*/
uint8 nssPin(void);
+ /* Escape hatch */
+
+ /**
+ * @brief Get a pointer to the underlying libmaple spi_dev for
+ * this HardwareSPI instance.
+ */
+ spi_dev* c_dev(void) { return this->spi_d; }
+
/* -- The following methods are deprecated --------------------------- */
/**