NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
baro_bmp280_unittest.cc File Reference
#include <stdint.h>
#include <platform.h>
#include "unittest_macros.h"
#include "gtest/gtest.h"
Include dependency graph for baro_bmp280_unittest.cc:

Data Structures

struct  bmp280_calib_param_s
 

Typedefs

typedef struct bmp280_calib_param_s bmp280_calib_param_t
 

Functions

void bmp280_calculate (int32_t *pressure, int32_t *temperature)
 
 TEST (baroBmp280Test, TestBmp280Calculate)
 
 TEST (baroBmp280Test, TestBmp280CalculateHighP)
 
 TEST (baroBmp280Test, TestBmp280CalculateZeroP)
 
bool i2cWrite (uint8_t, uint8_t, uint8_t)
 
bool i2cRead (uint8_t, uint8_t, uint8_t, uint8_t)
 

Variables

uint32_t bmp280_up
 
uint32_t bmp280_ut
 
bmp280_calib_param_t bmp280_cal
 

Typedef Documentation

Function Documentation

void bmp280_calculate ( int32_t *  pressure,
int32_t *  temperature 
)
bool i2cRead ( uint8_t  ,
uint8_t  ,
uint8_t  ,
uint8_t   
)
bool i2cWrite ( uint8_t  ,
uint8_t  ,
uint8_t   
)
TEST ( baroBmp280Test  ,
TestBmp280Calculate   
)

Here is the call graph for this function:

TEST ( baroBmp280Test  ,
TestBmp280CalculateHighP   
)

Here is the call graph for this function:

TEST ( baroBmp280Test  ,
TestBmp280CalculateZeroP   
)

Here is the call graph for this function:

Variable Documentation

uint32_t bmp280_up
uint32_t bmp280_ut