|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include "dev_h3lis100dl.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_read_back_mismatch_fails (void) |
| static void | test_bus_error_is_reported (void) |
| static void | test_read_takes_x_y_z_from_29_2b_2d (void) |
| static void | test_read_without_ms_bit_would_read_x_three_times (void) |
| int | main (void) |
| #define CHECK | ( | c | ) |
Definition at line 8 of file test_h3lis100dl.c.
Referenced by test_bus_error_is_reported(), test_init_writes_the_datasheet_configuration(), test_read_back_mismatch_fails(), test_read_takes_x_y_z_from_29_2b_2d(), test_read_without_ms_bit_would_read_x_three_times(), and test_wrong_identity_is_refused_before_any_write().
|
static |
Definition at line 16 of file test_h3lis100dl.c.
References fake_regs_init(), and fake_regs_t::regs.
Referenced by test_bus_error_is_reported(), test_init_writes_the_datasheet_configuration(), test_read_back_mismatch_fails(), test_read_takes_x_y_z_from_29_2b_2d(), test_read_without_ms_bit_would_read_x_three_times(), and test_wrong_identity_is_refused_before_any_write().
| int main | ( | void | ) |
Definition at line 92 of file test_h3lis100dl.c.
References test_bus_error_is_reported(), test_init_writes_the_datasheet_configuration(), test_read_back_mismatch_fails(), test_read_takes_x_y_z_from_29_2b_2d(), test_read_without_ms_bit_would_read_x_three_times(), and test_wrong_identity_is_refused_before_any_write().
|
static |
Definition at line 53 of file test_h3lis100dl.c.
References CHECK, DEV_ERR_BUS, fake_regs_t::fail_after, fake_regs_bus(), h3lis_init(), and healthy().
Referenced by main().
|
static |
Definition at line 22 of file test_h3lis100dl.c.
References CHECK, DEV_OK, fake_regs_bus(), h3lis_init(), healthy(), reg, fake_regs_t::write_reg, fake_regs_t::write_val, and fake_regs_t::writes.
Referenced by main().
|
static |
Definition at line 45 of file test_h3lis100dl.c.
References CHECK, DEV_ERR_VERIFY, fake_regs_bus(), h3lis_init(), healthy(), and fake_regs_t::stuck.
Referenced by main().
|
static |
Definition at line 61 of file test_h3lis100dl.c.
References h3lis_sample_t::accel, CHECK, DEV_OK, fake_regs_bus(), h3lis_read(), healthy(), fake_regs_t::regs, and fake_regs_t::transfers.
Referenced by main().
|
static |
Definition at line 78 of file test_h3lis100dl.c.
References h3lis_sample_t::accel, CHECK, DEV_OK, fake_regs_bus(), h3lis_read(), healthy(), and fake_regs_t::regs.
Referenced by main().
|
static |
Definition at line 36 of file test_h3lis100dl.c.
References CHECK, DEV_ERR_ID, fake_regs_bus(), h3lis_init(), healthy(), fake_regs_t::regs, and fake_regs_t::writes.
Referenced by main().