summaryrefslogtreecommitdiff
path: root/src/drivers/SpiMaster.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/SpiMaster.h')
-rw-r--r--src/drivers/SpiMaster.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/SpiMaster.h b/src/drivers/SpiMaster.h
index 9f2208e0..4f39dc39 100644
--- a/src/drivers/SpiMaster.h
+++ b/src/drivers/SpiMaster.h
@@ -23,9 +23,15 @@ namespace Pinetime {
bool Init(const SpiModule spi, const Parameters& params);
bool Write(const uint8_t* data, size_t size);
+ void Sleep();
+ void Wakeup();
+
private:
NRF_SPI_Type * spiBaseAddress;
uint8_t pinCsn;
+
+ SpiMaster::SpiModule configSpiModule;
+ SpiMaster::Parameters configParams;
};
}
}