Classes | |
struct | BarometerTempData |
Input temperature data to DSP. More... | |
struct | BarometerPressData |
Input pressure data to DSP. More... | |
class | BarometerClass |
Macros | |
#define | BAROMETER_PRESSURE_SAMPLING_FREQUENCY 8 |
#define | BAROMETER_PRESSURE_WATERMARK_NUM 40 |
#define | BAROMETER_TEMPERATURE_SAMPLING_FREQUENCY 8 |
#define | BAROMETER_TEMPERATURE_WATERMARK_NUM 40 |
#define | PRESSURE_SAMPLING_FREQUENCY BAROMETER_PRESSURE_SAMPLING_FREQUENCY |
#define | PRESSURE_WATERMARK_NUM BAROMETER_PRESSURE_WATERMARK_NUM |
#define | TEMPERATURE_SAMPLING_FREQUENCY BAROMETER_TEMPERATURE_SAMPLING_FREQUENCY |
#define | TEMPERATURE_WATERMARK_NUM BAROMETER_TEMPERATURE_WATERMARK_NUM |
Functions | |
BarometerClass * | BarometerCreate (void) |
Create BarometerClass instance. More... | |
int | BarometerOpen (BarometerClass *ins) |
Open BarometerClass. More... | |
int | BarometerClose (BarometerClass *ins) |
Close BarometerClass. More... | |
int | BarometerStart (BarometerClass *ins) |
Start Barometer. More... | |
int | BarometerStop (BarometerClass *ins) |
Stop Barometer. More... | |
int | BarometerWrite (BarometerClass *ins, sensor_command_data_mh_t *command) |
Send data to BarometerClass. More... | |
void | BarometerSetPressureAdjustParam (struct bmp280_press_adj_s *param) |
Set sensor predefined adjustment values for pressure. More... | |
void | BarometerSetTemperatureAdjustParam (struct bmp280_temp_adj_s *param) |
Set sensor predefined adjustment values for temperature. More... | |
#define BAROMETER_PRESSURE_SAMPLING_FREQUENCY 8 |
Pressure sensor sampling frequency[Hz]
#define BAROMETER_PRESSURE_WATERMARK_NUM 40 |
Pressure sample data watermark
#define BAROMETER_TEMPERATURE_SAMPLING_FREQUENCY 8 |
Temperature sensor sampling frequency[Hz]
#define BAROMETER_TEMPERATURE_WATERMARK_NUM 40 |
Temperature sample data watermark
BarometerClass * BarometerCreate | ( | void | ) |
Create BarometerClass instance.
int BarometerOpen | ( | BarometerClass * | ins | ) |
Open BarometerClass.
[in] | ins | : instance address of BarometerClass |
int BarometerClose | ( | BarometerClass * | ins | ) |
Close BarometerClass.
[in] | ins | : instance address of BarometerClass |
int BarometerStart | ( | BarometerClass * | ins | ) |
int BarometerStop | ( | BarometerClass * | ins | ) |
int BarometerWrite | ( | BarometerClass * | ins, |
sensor_command_data_mh_t * | command | ||
) |
Send data to BarometerClass.
[in] | ins | : instance address of BarometerClass |
[in] | command | : command including data to send |
void BarometerSetPressureAdjustParam | ( | struct bmp280_press_adj_s * | param | ) |
Set sensor predefined adjustment values for pressure.
[in] | param | : adjustment values |
void BarometerSetTemperatureAdjustParam | ( | struct bmp280_temp_adj_s * | param | ) |
Set sensor predefined adjustment values for temperature.
[in] | param | : adjustment values |