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

Functions

int8_t ms5611_crc (uint16_t *prom)
 
void ms5611_calculate (int32_t *pressure, int32_t *temperature)
 
 TEST (baroMS5611Test, TestValidMs5611Crc)
 
 TEST (baroMS5611Test, TestInvalidMs5611Crc)
 
 TEST (baroMS5611Test, TestMs5611AllZeroProm)
 
 TEST (baroMS5611Test, TestMs5611AllOnesProm)
 
 TEST (baroMS5611Test, TestMs5611CalculatePressureGT20Deg)
 
 TEST (baroMS5611Test, TestMs5611CalculatePressureLT20Deg)
 
 TEST (baroMS5611Test, TestMs5611CalculatePressureLTMinus15Deg)
 
bool i2cWrite (uint8_t, uint8_t, uint8_t)
 
bool i2cRead (uint8_t, uint8_t, uint8_t, uint8_t)
 

Variables

uint16_t ms5611_c [8]
 
uint32_t ms5611_up
 
uint32_t ms5611_ut
 

Function Documentation

bool i2cRead ( uint8_t  ,
uint8_t  ,
uint8_t  ,
uint8_t   
)
bool i2cWrite ( uint8_t  ,
uint8_t  ,
uint8_t   
)
void ms5611_calculate ( int32_t *  pressure,
int32_t *  temperature 
)
int8_t ms5611_crc ( uint16_t *  prom)
TEST ( baroMS5611Test  ,
TestValidMs5611Crc   
)

Here is the call graph for this function:

TEST ( baroMS5611Test  ,
TestInvalidMs5611Crc   
)

Here is the call graph for this function:

TEST ( baroMS5611Test  ,
TestMs5611AllZeroProm   
)

Here is the call graph for this function:

TEST ( baroMS5611Test  ,
TestMs5611AllOnesProm   
)

Here is the call graph for this function:

TEST ( baroMS5611Test  ,
TestMs5611CalculatePressureGT20Deg   
)

Here is the call graph for this function:

TEST ( baroMS5611Test  ,
TestMs5611CalculatePressureLT20Deg   
)

Here is the call graph for this function:

TEST ( baroMS5611Test  ,
TestMs5611CalculatePressureLTMinus15Deg   
)

Here is the call graph for this function:

Variable Documentation

uint16_t ms5611_c[8]
uint32_t ms5611_up
uint32_t ms5611_ut