Developer World
Spresense SDK Library v3.2.0-ebc0364
Barometer API

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

BarometerClassBarometerCreate (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...
 

Detailed Description

Macro Definition Documentation

◆ BAROMETER_PRESSURE_SAMPLING_FREQUENCY

#define BAROMETER_PRESSURE_SAMPLING_FREQUENCY   8

Pressure sensor sampling frequency[Hz]

◆ BAROMETER_PRESSURE_WATERMARK_NUM

#define BAROMETER_PRESSURE_WATERMARK_NUM   40

Pressure sample data watermark

◆ BAROMETER_TEMPERATURE_SAMPLING_FREQUENCY

#define BAROMETER_TEMPERATURE_SAMPLING_FREQUENCY   8

Temperature sensor sampling frequency[Hz]

◆ BAROMETER_TEMPERATURE_WATERMARK_NUM

#define BAROMETER_TEMPERATURE_WATERMARK_NUM   40

Temperature sample data watermark

Function Documentation

◆ BarometerCreate()

BarometerClass * BarometerCreate ( void  )

Create BarometerClass instance.

Returns
Address for instance of BarometerClass

◆ BarometerOpen()

int BarometerOpen ( BarometerClass ins)

Open BarometerClass.

Parameters
[in]ins: instance address of BarometerClass
Returns
result of process.

◆ BarometerClose()

int BarometerClose ( BarometerClass ins)

Close BarometerClass.

Parameters
[in]ins: instance address of BarometerClass
Returns
result of process.

◆ BarometerStart()

int BarometerStart ( BarometerClass ins)

Start Barometer.

Parameters
[in]ins: instance address of BarometerClass
Returns
result of process.

◆ BarometerStop()

int BarometerStop ( BarometerClass ins)

Stop Barometer.

Parameters
[in]ins: instance address of BarometerClass
Returns
result of process.

◆ BarometerWrite()

int BarometerWrite ( BarometerClass ins,
sensor_command_data_mh_t command 
)

Send data to BarometerClass.

Parameters
[in]ins: instance address of BarometerClass
[in]command: command including data to send
Returns
result of process

◆ BarometerSetPressureAdjustParam()

void BarometerSetPressureAdjustParam ( struct bmp280_press_adj_s *  param)

Set sensor predefined adjustment values for pressure.

Parameters
[in]param: adjustment values
Returns

◆ BarometerSetTemperatureAdjustParam()

void BarometerSetTemperatureAdjustParam ( struct bmp280_temp_adj_s *  param)

Set sensor predefined adjustment values for temperature.

Parameters
[in]param: adjustment values
Returns