ADS124S08 Example C Code
1.0.0
|
Examples for implementation of unit tests. More...
#include "unit_tests.h"
Macros | |
#define | NUM_SAMPLES_NOISE (20) |
Functions | |
static void | readSingleChannelPPNoise (int32_t *dataArray, uint8_t channelNum) |
readSingleChannelPPNoise() Reads channel data for noise analysis More... | |
bool | run_self_tests (void) |
run_self_tests() Run all test cases More... | |
bool | test_RESET_pin (void) |
test_RESET_pin() Performs test of the RESET pin More... | |
bool | test_START_SYNC_pin (void) |
test_START_SYNC_pin() Performs test of the START/SYNC pin More... | |
bool | test_CS_pin (void) |
test_CS_pin() Performs test of the CS pin More... | |
bool | test_DRDY_interrupt (void) |
test_DRDY_interrupt() Performs test of the DRDY pin More... | |
bool | test_read_register (void) |
test_read_register() Performs test of the communication for reading registers More... | |
bool | test_write_register (void) |
test_write_register() Performs test of the communications for writing registers More... | |
bool | test_reset_command (void) |
test_reset_command() Performs test of the RESET command More... | |
bool | test_noise (void) |
test_noise() Performs test of the ADC functionality and performance More... | |
bool | test_CRC (void) |
test_CRC() Performs test of the CRC functionality More... | |
Examples for implementation of unit tests.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define NUM_SAMPLES_NOISE (20) |
|
static |
readSingleChannelPPNoise() Reads channel data for noise analysis
[in] | *dataArray | pointer to the data array |
[in] | channelNum | channel number to be converted |
bool run_self_tests | ( | void | ) |
run_self_tests() Run all test cases
bool test_CRC | ( | void | ) |
test_CRC() Performs test of the CRC functionality
bool test_CS_pin | ( | void | ) |
test_CS_pin() Performs test of the CS pin
bool test_DRDY_interrupt | ( | void | ) |
test_DRDY_interrupt() Performs test of the DRDY pin
bool test_noise | ( | void | ) |
test_noise() Performs test of the ADC functionality and performance
bool test_read_register | ( | void | ) |
test_read_register() Performs test of the communication for reading registers
bool test_reset_command | ( | void | ) |
test_reset_command() Performs test of the RESET command
bool test_RESET_pin | ( | void | ) |
test_RESET_pin() Performs test of the RESET pin
bool test_START_SYNC_pin | ( | void | ) |
test_START_SYNC_pin() Performs test of the START/SYNC pin
bool test_write_register | ( | void | ) |
test_write_register() Performs test of the communications for writing registers