-
-
171 uint8_t tmp[BMP581_DATA_SIZE];
-
172 BMP581_readRegisters(baro, BMP581_PRESSURE_XLSB, BMP581_DATA_SIZE, tmp);
-
-
-
-
+
+
+
+
+
173 uint8_t tmp[BMP581_DATA_SIZE];
+
174 BMP581_readRegisters(baro, BMP581_PRESSURE_XLSB, BMP581_DATA_SIZE, tmp);
+
+
+
+
-
-
-
180void BMP581_writeRegister(
BMP581 *baro, uint8_t address, uint8_t data) {
-
181 SPI spi = baro->base;
-
-
183 spi.
port->ODR &= ~spi.cs;
+
+
+
182void BMP581_writeRegister(
BMP581 *baro, uint8_t address, uint8_t data) {
+
183 SPI spi = baro->base;
-
-
186 uint8_t payload = address & 0x7F;
-
-
-
-
-
-
-
193uint8_t BMP581_readRegister(
BMP581 *baro, uint8_t address) {
-
194 uint8_t response = 0;
-
195 SPI spi = baro->base;
-
-
197 spi.
port->ODR &= ~spi.cs;
+
185 spi.
port->ODR &= ~spi.cs;
+
+
+
188 uint8_t payload = address & 0x7F;
+
+
+
+
+
+
+
195uint8_t BMP581_readRegister(
BMP581 *baro, uint8_t address) {
+
196 uint8_t response = 0;
+
197 SPI spi = baro->base;
-
-
200 uint8_t payload = address | 0x80;
-
201 response = spi.
transmit(&spi, payload);
-
202 response = spi.
transmit(&spi, 0xFF);
-
-
+
199 spi.
port->ODR &= ~spi.cs;
+
+
+
202 uint8_t payload = address | 0x80;
+
203 response = spi.
transmit(&spi, payload);
+
204 response = spi.
transmit(&spi, 0xFF);
-
-
-
-
209void BMP581_readRegisters(
BMP581 *baro, uint8_t address, uint8_t count, uint8_t *out) {
-
210 SPI spi = baro->base;
-
-
212 spi.
port->ODR &= ~spi.cs;
+
+
+
+
+
+
211void BMP581_readRegisters(
BMP581 *baro, uint8_t address, uint8_t count, uint8_t *out) {
+
212 SPI spi = baro->base;
-
-
215 uint8_t payload = address | 0x80;
-
-
-
-
219 for (uint8_t i = 0; i < count; i++) {
-
-
-
-
-
-
-
void BMP581_readRawPress(BMP581 *, uint8_t *)
-
void BMP581_readTemp(BMP581 *, float *)
Read the temperature from the BMP581 sensor.
-
void BMP581_processRawTemp(BMP581 *, uint8_t *, float *)
Processes raw temperature data from BMP581 sensor.
-
void BMP581_readRawTemp(BMP581 *, uint8_t *)
-
void BMP581_processRawPress(BMP581 *, uint8_t *, float *)
-
void BMP581_update(BMP581 *)
Updates the BMP581 barometer readings.
-
void BMP581_readPress(BMP581 *, float *)
-
DeviceHandle_t BMP581_init(BMP581 *baro, char name[DEVICE_NAME_LENGTH], GPIO_TypeDef *port, unsigned long cs, float tempSensitivity, float pressSensitivity)
Initialiser for a BMP581 barometer.
+
214 spi.
port->ODR &= ~spi.cs;
+
+
+
217 uint8_t payload = address | 0x80;
+
+
+
+
221 for (uint8_t i = 0; i < count; i++) {
+
+
+
+
+
+
void BMP581_readRawPress(BMP581 *, uint8_t *)
+
void BMP581_readTemp(BMP581 *, float *)
Read the temperature from the BMP581 sensor.
+
void BMP581_processRawTemp(BMP581 *, uint8_t *, float *)
Processes raw temperature data from BMP581 sensor.
+
void BMP581_readRawTemp(BMP581 *, uint8_t *)
+
void BMP581_processRawPress(BMP581 *, uint8_t *, float *)
+
void BMP581_update(BMP581 *)
Updates the BMP581 barometer readings.
+
void BMP581_readPress(BMP581 *, float *)
+
DeviceHandle_t BMP581_init(BMP581 *baro, char name[DEVICE_NAME_LENGTH], GPIO_TypeDef *port, unsigned long cs, float tempSensitivity, float pressSensitivity)
Initialiser for a BMP581 barometer.
void SPI_init(SPI *, DeviceType, SPI_TypeDef *, DataFormat, GPIO_TypeDef *, unsigned long)
Initialiser for an SPI device interface.
-
+
Struct definition for SPI interface. Provides the interface for API consumers to interact with the SP...
uint16_t(* transmit)(struct SPI *, uint16_t)
SPI transmit method.
@@ -304,7 +305,7 @@
diff --git a/html/BMP581_8h_source.html b/html/bmp581_8h_source.html
similarity index 94%
rename from html/BMP581_8h_source.html
rename to html/bmp581_8h_source.html
index 165d2c9..d2cbd16 100644
--- a/html/BMP581_8h_source.html
+++ b/html/bmp581_8h_source.html
@@ -6,7 +6,7 @@
-
Australis Firmware Reference: Australis-Avionics/Core/Inc/spi/sensors/baro/BMP581.h Source File
+
Australis Firmware Reference: Australis-Avionics/Core/Inc/spi/sensors/baro/bmp581.h Source File
@@ -72,7 +72,7 @@
-
Go to the documentation of this file.
+
@@ -177,15 +177,15 @@
84void BMP581_writeRegister(
BMP581 *, uint8_t, uint8_t);
-
void BMP581_readRawPress(BMP581 *, uint8_t *)
-
void BMP581_readTemp(BMP581 *, float *)
Read the temperature from the BMP581 sensor.
-
void BMP581_processRawTemp(BMP581 *, uint8_t *, float *)
Processes raw temperature data from BMP581 sensor.
-
void BMP581_readRawTemp(BMP581 *, uint8_t *)
-
void BMP581_processRawPress(BMP581 *, uint8_t *, float *)
-
void BMP581_update(BMP581 *)
Updates the BMP581 barometer readings.
-
void BMP581_readPress(BMP581 *, float *)
-
DeviceHandle_t BMP581_init(BMP581 *, char[DEVICE_NAME_LENGTH], GPIO_TypeDef *, unsigned long, const float, const float)
Initialiser for a BMP581 barometer.
-
+
void BMP581_readRawPress(BMP581 *, uint8_t *)
+
void BMP581_readTemp(BMP581 *, float *)
Read the temperature from the BMP581 sensor.
+
void BMP581_processRawTemp(BMP581 *, uint8_t *, float *)
Processes raw temperature data from BMP581 sensor.
+
void BMP581_readRawTemp(BMP581 *, uint8_t *)
+
void BMP581_processRawPress(BMP581 *, uint8_t *, float *)
+
void BMP581_update(BMP581 *)
Updates the BMP581 barometer readings.
+
void BMP581_readPress(BMP581 *, float *)
+
DeviceHandle_t BMP581_init(BMP581 *, char[DEVICE_NAME_LENGTH], GPIO_TypeDef *, unsigned long, const float, const float)
Initialiser for a BMP581 barometer.
+
Struct definition for SPI interface. Provides the interface for API consumers to interact with the SP...
@@ -193,7 +193,7 @@
diff --git a/html/dir_00d0031141176e17b578304fd0bb058e.html b/html/dir_00d0031141176e17b578304fd0bb058e.html
index 11a6226..e0f627c 100644
--- a/html/dir_00d0031141176e17b578304fd0bb058e.html
+++ b/html/dir_00d0031141176e17b578304fd0bb058e.html
@@ -104,7 +104,7 @@
diff --git a/html/dir_00d0031141176e17b578304fd0bb058e.js b/html/dir_00d0031141176e17b578304fd0bb058e.js
index e944064..8c19c58 100644
--- a/html/dir_00d0031141176e17b578304fd0bb058e.js
+++ b/html/dir_00d0031141176e17b578304fd0bb058e.js
@@ -1,4 +1,4 @@
var dir_00d0031141176e17b578304fd0bb058e =
[
- [ "A3G4250D.h", "A3G4250D_8h.html", "A3G4250D_8h" ]
+ [ "a3g4250d.h", "a3g4250d_8h_source.html", null ]
];
\ No newline at end of file
diff --git a/html/dir_0ff0f838ef3c02bab5e7f61d156e552e.html b/html/dir_0ff0f838ef3c02bab5e7f61d156e552e.html
index 7945f5c..f196fbd 100644
--- a/html/dir_0ff0f838ef3c02bab5e7f61d156e552e.html
+++ b/html/dir_0ff0f838ef3c02bab5e7f61d156e552e.html
@@ -104,9 +104,9 @@
|
- | A3G4250D.c |
+ | a3g4250d.c |
|
diff --git a/html/dir_1b7cbde6291f7cb797cb887fb6f5cb2f.js b/html/dir_1b7cbde6291f7cb797cb887fb6f5cb2f.js
index 94d037a..a746c7d 100644
--- a/html/dir_1b7cbde6291f7cb797cb887fb6f5cb2f.js
+++ b/html/dir_1b7cbde6291f7cb797cb887fb6f5cb2f.js
@@ -1,4 +1,4 @@
var dir_1b7cbde6291f7cb797cb887fb6f5cb2f =
[
- [ "A3G4250D.c", "A3G4250D_8c_source.html", null ]
+ [ "a3g4250d.c", "a3g4250d_8c_source.html", null ]
];
\ No newline at end of file
diff --git a/html/dir_1cece0f75040df593a078a565a2aed55.html b/html/dir_1cece0f75040df593a078a565a2aed55.html
index 96becd5..712e407 100644
--- a/html/dir_1cece0f75040df593a078a565a2aed55.html
+++ b/html/dir_1cece0f75040df593a078a565a2aed55.html
@@ -104,11 +104,11 @@
|
- | loraComm.c |
+ | loracomm.c |
|
- | payloadComm.c |
+ | payloadcomm.c |
|
- | usbComm.c |
+ | usbcomm.c |
|
diff --git a/html/dir_1cece0f75040df593a078a565a2aed55.js b/html/dir_1cece0f75040df593a078a565a2aed55.js
index 4a9d6d6..7a715a2 100644
--- a/html/dir_1cece0f75040df593a078a565a2aed55.js
+++ b/html/dir_1cece0f75040df593a078a565a2aed55.js
@@ -1,6 +1,6 @@
var dir_1cece0f75040df593a078a565a2aed55 =
[
- [ "loraComm.c", "loraComm_8c_source.html", null ],
- [ "payloadComm.c", "payloadComm_8c_source.html", null ],
- [ "usbComm.c", "usbComm_8c_source.html", null ]
+ [ "loracomm.c", "loracomm_8c_source.html", null ],
+ [ "payloadcomm.c", "payloadcomm_8c_source.html", null ],
+ [ "usbcomm.c", "usbcomm_8c_source.html", null ]
];
\ No newline at end of file
diff --git a/html/dir_22dc605086b4989ac626954ebb63543e.html b/html/dir_22dc605086b4989ac626954ebb63543e.html
index cd61e4b..8fcd46b 100644
--- a/html/dir_22dc605086b4989ac626954ebb63543e.html
+++ b/html/dir_22dc605086b4989ac626954ebb63543e.html
@@ -104,7 +104,7 @@
|
- | KX134_1211.c |
+ | kx134_1211.c |
|
diff --git a/html/dir_22dc605086b4989ac626954ebb63543e.js b/html/dir_22dc605086b4989ac626954ebb63543e.js
index 054459e..2275644 100644
--- a/html/dir_22dc605086b4989ac626954ebb63543e.js
+++ b/html/dir_22dc605086b4989ac626954ebb63543e.js
@@ -1,4 +1,4 @@
var dir_22dc605086b4989ac626954ebb63543e =
[
- [ "KX134_1211.c", "KX134__1211_8c_source.html", null ]
+ [ "kx134_1211.c", "kx134__1211_8c_source.html", null ]
];
\ No newline at end of file
diff --git a/html/dir_454bad1810d45ef205f36285493a4259.html b/html/dir_454bad1810d45ef205f36285493a4259.html
index ca4da70..63b3a70 100644
--- a/html/dir_454bad1810d45ef205f36285493a4259.html
+++ b/html/dir_454bad1810d45ef205f36285493a4259.html
@@ -104,11 +104,11 @@
|
- | loraComm.h |
+ | loracomm.h |
|
- | payloadComm.h |
+ | payloadcomm.h |
|
- | usbComm.h |
+ | usbcomm.h |
|
diff --git a/html/dir_454bad1810d45ef205f36285493a4259.js b/html/dir_454bad1810d45ef205f36285493a4259.js
index 219ecfe..ef9c2f2 100644
--- a/html/dir_454bad1810d45ef205f36285493a4259.js
+++ b/html/dir_454bad1810d45ef205f36285493a4259.js
@@ -1,6 +1,6 @@
var dir_454bad1810d45ef205f36285493a4259 =
[
- [ "loraComm.h", "loraComm_8h_source.html", null ],
- [ "payloadComm.h", "payloadComm_8h_source.html", null ],
- [ "usbComm.h", "usbComm_8h_source.html", null ]
+ [ "loracomm.h", "loracomm_8h_source.html", null ],
+ [ "payloadcomm.h", "payloadcomm_8h_source.html", null ],
+ [ "usbcomm.h", "usbcomm_8h_source.html", null ]
];
\ No newline at end of file
diff --git a/html/dir_5002134934530f64bf14c3c357e99f44.html b/html/dir_5002134934530f64bf14c3c357e99f44.html
index c6a145c..c8cb45d 100644
--- a/html/dir_5002134934530f64bf14c3c357e99f44.html
+++ b/html/dir_5002134934530f64bf14c3c357e99f44.html
@@ -111,7 +111,7 @@
|
|
- | stateUpdate.c |
+ | stateupdate.c |
|
diff --git a/html/dir_5002134934530f64bf14c3c357e99f44.js b/html/dir_5002134934530f64bf14c3c357e99f44.js
index 57f2caa..fcb83d4 100644
--- a/html/dir_5002134934530f64bf14c3c357e99f44.js
+++ b/html/dir_5002134934530f64bf14c3c357e99f44.js
@@ -2,5 +2,5 @@ var dir_5002134934530f64bf14c3c357e99f44 =
[
[ "comms", "dir_1cece0f75040df593a078a565a2aed55.html", "dir_1cece0f75040df593a078a565a2aed55" ],
[ "data", "dir_6ba04829bafb2b4d2b73148d4157485a.html", "dir_6ba04829bafb2b4d2b73148d4157485a" ],
- [ "stateUpdate.c", "stateUpdate_8c_source.html", null ]
+ [ "stateupdate.c", "stateupdate_8c_source.html", null ]
];
\ No newline at end of file
diff --git a/html/dir_666fbf14515ba845dc19cad73d3b2e03.html b/html/dir_666fbf14515ba845dc19cad73d3b2e03.html
index 734ead2..bf3b1ef 100644
--- a/html/dir_666fbf14515ba845dc19cad73d3b2e03.html
+++ b/html/dir_666fbf14515ba845dc19cad73d3b2e03.html
@@ -111,7 +111,7 @@
|