ADS124S08 Example C Code  1.0.0
unit_tests.h
Go to the documentation of this file.
1 
39 #ifndef EVM_UNIT_TESTS_H_
40 #define EVM_UNIT_TESTS_H_
41 
42 
43 // Includes
44 #include "ads124s08.h"
45 #include <stdbool.h>
46 #include <stdint.h>
47 #include "hal.h"
48 
49 extern SPI_Handle spiHdl;
50 
51 // Run all tests
52 bool run_unit_tests(void);
53 
54 
55 // Run individual unit tests
56 bool test_RESET_pin(void);
57 bool test_START_SYNC_pin(void);
58 bool test_CS_pin(void);
59 bool test_DRDY_interrupt(void);
60 bool test_read_register(void);
61 bool test_write_register(void);
62 bool test_reset_command(void);
63 bool test_noise(void);
64 bool test_CRC(void);
65 
66 
67 #endif /* EVM_UNIT_TESTS_H_ */
bool test_DRDY_interrupt(void)
test_DRDY_interrupt() Performs test of the DRDY pin
Definition: unit_tests.c:210
This header file contains all register map definitions for the ADS124S08 device family.
bool run_unit_tests(void)
bool test_RESET_pin(void)
test_RESET_pin() Performs test of the RESET pin
Definition: unit_tests.c:123
Example of a hardware abstraction layer.
bool test_noise(void)
test_noise() Performs test of the ADC functionality and performance
Definition: unit_tests.c:323
bool test_write_register(void)
test_write_register() Performs test of the communications for writing registers
Definition: unit_tests.c:265
bool test_read_register(void)
test_read_register() Performs test of the communication for reading registers
Definition: unit_tests.c:237
bool test_CS_pin(void)
test_CS_pin() Performs test of the CS pin
Definition: unit_tests.c:183
bool test_START_SYNC_pin(void)
test_START_SYNC_pin() Performs test of the START/SYNC pin
Definition: unit_tests.c:156
bool test_CRC(void)
test_CRC() Performs test of the CRC functionality
Definition: unit_tests.c:389
bool test_reset_command(void)
test_reset_command() Performs test of the RESET command
Definition: unit_tests.c:288
SPI_Handle spiHdl