|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include "dev_ism330dhcx.h"#include "fake_regs.h"Go to the source code of this file.
Macros | |
| #define | CHECK(c) |
Functions | |
| static void | healthy (fake_regs_t *f) |
| static void | test_init_writes_the_datasheet_configuration (void) |
| static void | test_wrong_identity_is_refused_before_any_write (void) |
| static void | test_dead_bus_reads_ff_and_is_refused (void) |
| static void | test_reset_that_never_finishes_times_out (void) |
| static void | test_register_that_does_not_read_back_fails (void) |
| static void | test_bus_error_is_reported (void) |
| static void | test_read_decodes_the_burst (void) |
| static void | test_missing_arguments_are_refused (void) |
| int | main (void) |
| #define CHECK | ( | c | ) |
Definition at line 8 of file test_ism330dhcx.c.
Referenced by test_bus_error_is_reported(), test_dead_bus_reads_ff_and_is_refused(), test_init_writes_the_datasheet_configuration(), test_missing_arguments_are_refused(), test_read_decodes_the_burst(), test_register_that_does_not_read_back_fails(), test_reset_that_never_finishes_times_out(), and test_wrong_identity_is_refused_before_any_write().
|
static |
Definition at line 17 of file test_ism330dhcx.c.
References fake_regs_t::clear_after_reads, fake_regs_init(), fake_regs_t::regs, fake_regs_t::self_clear_bits, and fake_regs_t::self_clear_reg.
Referenced by test_bus_error_is_reported(), test_init_writes_the_datasheet_configuration(), test_missing_arguments_are_refused(), test_read_decodes_the_burst(), test_register_that_does_not_read_back_fails(), test_reset_that_never_finishes_times_out(), and test_wrong_identity_is_refused_before_any_write().
| int main | ( | void | ) |
Definition at line 113 of file test_ism330dhcx.c.
References test_bus_error_is_reported(), test_dead_bus_reads_ff_and_is_refused(), test_init_writes_the_datasheet_configuration(), test_missing_arguments_are_refused(), test_read_decodes_the_burst(), test_register_that_does_not_read_back_fails(), test_reset_that_never_finishes_times_out(), and test_wrong_identity_is_refused_before_any_write().
|
static |
Definition at line 76 of file test_ism330dhcx.c.
References CHECK, DEV_ERR_BUS, fake_regs_t::fail_after, fake_regs_bus(), healthy(), and ism330_init().
Referenced by main().
|
static |
Definition at line 50 of file test_ism330dhcx.c.
References CHECK, DEV_ERR_ID, fake_regs_bus(), fake_regs_init(), ism330_init(), and fake_regs_t::regs.
Referenced by main().
|
static |
Definition at line 25 of file test_ism330dhcx.c.
References CHECK, fake_regs_t::delays_ms, DEV_OK, fake_regs_bus(), healthy(), ism330_init(), reg, fake_regs_t::write_reg, fake_regs_t::write_val, and fake_regs_t::writes.
Referenced by main().
|
static |
Definition at line 105 of file test_ism330dhcx.c.
References CHECK, DEV_ERR_PARAM, fake_regs_bus(), healthy(), ism330_init(), ism330_read(), and NULL.
Referenced by main().
|
static |
Definition at line 84 of file test_ism330dhcx.c.
References ism330_sample_t::accel, CHECK, DEV_OK, fake_regs_bus(), ism330_sample_t::gyro, healthy(), ism330_read(), fake_regs_t::regs, ism330_sample_t::temp, and fake_regs_t::transfers.
Referenced by main().
|
static |
Definition at line 67 of file test_ism330dhcx.c.
References CHECK, DEV_ERR_VERIFY, fake_regs_bus(), healthy(), ism330_init(), fake_regs_t::regs, and fake_regs_t::stuck.
Referenced by main().
|
static |
Definition at line 58 of file test_ism330dhcx.c.
References CHECK, fake_regs_t::clear_after_reads, DEV_ERR_TIMEOUT, fake_regs_bus(), healthy(), ism330_init(), and fake_regs_t::writes.
Referenced by main().
|
static |
Definition at line 41 of file test_ism330dhcx.c.
References CHECK, DEV_ERR_ID, fake_regs_bus(), healthy(), ism330_init(), fake_regs_t::regs, and fake_regs_t::writes.
Referenced by main().