|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include "dev_ms5611.h"#include "fake_baro.h"Go to the source code of this file.
Macros | |
| #define | CHECK(c) |
| #define | kProm fake_baro_datasheet_prom |
Functions | |
| static void | test_prom_read_and_crc (void) |
| static void | test_prom_crc_mismatch_and_blank_are_rejected (void) |
| static void | test_conversion_commands_and_adc (void) |
| static void | compensate (uint32_t d1, uint32_t d2, int32_t *t, int32_t *p) |
| static void | test_datasheet_worked_example (void) |
| static void | test_second_order_below_20c (void) |
| int | main (void) |
| #define CHECK | ( | c | ) |
Definition at line 8 of file test_ms5611.c.
Referenced by test_conversion_commands_and_adc(), test_datasheet_worked_example(), test_prom_crc_mismatch_and_blank_are_rejected(), test_prom_read_and_crc(), and test_second_order_below_20c().
| #define kProm fake_baro_datasheet_prom |
Definition at line 16 of file test_ms5611.c.
Referenced by compensate(), test_prom_crc_mismatch_and_blank_are_rejected(), and test_prom_read_and_crc().
|
static |
Definition at line 61 of file test_ms5611.c.
References d1, d2, kProm, ms5611_compensate(), p, and ms5611_prom_t::word.
Referenced by test_datasheet_worked_example(), and test_second_order_below_20c().
| int main | ( | void | ) |
Definition at line 87 of file test_ms5611.c.
References test_conversion_commands_and_adc(), test_datasheet_worked_example(), test_prom_crc_mismatch_and_blank_are_rejected(), test_prom_read_and_crc(), and test_second_order_below_20c().
|
static |
Definition at line 42 of file test_ms5611.c.
References CHECK, fake_baro_t::d1, fake_baro_t::d2, DEV_ERR_BUS, DEV_ERR_DATA, DEV_ERR_PARAM, DEV_OK, fake_baro_t::fail, fake_baro_bus(), fake_baro_t::last_cmd, MS5611_D1_PRESSURE, MS5611_D2_TEMPERATURE, ms5611_read_adc(), and ms5611_start().
Referenced by main().
|
static |
Definition at line 67 of file test_ms5611.c.
References CHECK, compensate(), and p.
Referenced by main().
|
static |
Definition at line 29 of file test_ms5611.c.
References CHECK, DEV_ERR_DATA, fake_baro_bus(), kProm, ms5611_read_prom(), p, and fake_baro_t::prom.
Referenced by main().
|
static |
Definition at line 18 of file test_ms5611.c.
References CHECK, DEV_OK, fake_baro_bus(), kProm, ms5611_crc4(), ms5611_read_prom(), p, fake_baro_t::prom, and fake_baro_t::transfers.
Referenced by main().
|
static |
Definition at line 75 of file test_ms5611.c.
References CHECK, compensate(), and p.
Referenced by main().