-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbmp280_low_level.c
35 lines (24 loc) · 1.01 KB
/
bmp280_low_level.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*BMP280 barometric pressure and temperature sensor C Driver*/
/*Reza Ebrahimi - https://github.com/ebrezadev */
/*Version 1.0*/
#include "bmp280.h"
/*writes an array (data[]) of arbitrary size (dataLength) to I2C address (deviceAddress), starting from an internal register address (startRegisterAddress)*/
void bmp280_write_array(uint8_t deviceAddress, uint8_t startRegisterAddress, uint8_t *data, uint8_t dataLength)
{
}
/*reads an array (data[]) of arbitrary size (dataLength) from I2C address (deviceAddress), starting from an internal register address (startRegisterAddress)*/
void bmp280_read_array (uint8_t deviceAddress, uint8_t startRegisterAddress, uint8_t *data, uint8_t dataLength)
{
}
/*initiates the I2C peripheral and sets its speed*/
void bmp280_i2c_init()
{
}
/*a delay function for milliseconds delay*/
void delay_function (uint32_t delayMS)
{
}
/*implements a power function (used in altitude calculation)*/
float power_function (float x, float y)
{
}