ADS124S08 Example C Code  1.0.0
Macros | Functions
unit_tests.c File Reference

Examples for implementation of unit tests. More...

#include "unit_tests.h"
Include dependency graph for unit_tests.c:

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...
 

Detailed Description

Examples for implementation of unit tests.

Warning
This software utilizes TI Drivers

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.

Macro Definition Documentation

#define NUM_SAMPLES_NOISE   (20)

Function Documentation

static void readSingleChannelPPNoise ( int32_t *  dataArray,
uint8_t  channelNum 
)
static

readSingleChannelPPNoise() Reads channel data for noise analysis

Parameters
[in]*dataArraypointer to the data array
[in]channelNumchannel number to be converted
Returns
None

Here is the call graph for this function:

bool run_self_tests ( void  )

run_self_tests() Run all test cases

Returns
true for successful tests false for unsuccessful tests

Here is the call graph for this function:

bool test_CRC ( void  )

test_CRC() Performs test of the CRC functionality

Returns
true for successful tests false for unsuccessful tests

Here is the call graph for this function:

bool test_CS_pin ( void  )

test_CS_pin() Performs test of the CS pin

Returns
true for successful tests false for unsuccessful tests

Here is the call graph for this function:

bool test_DRDY_interrupt ( void  )

test_DRDY_interrupt() Performs test of the DRDY pin

Returns
true for successful tests false for unsuccessful tests

Here is the call graph for this function:

bool test_noise ( void  )

test_noise() Performs test of the ADC functionality and performance

Returns
true for successful tests false for unsuccessful tests

Here is the call graph for this function:

bool test_read_register ( void  )

test_read_register() Performs test of the communication for reading registers

Returns
true for successful tests false for unsuccessful tests

Here is the call graph for this function:

bool test_reset_command ( void  )

test_reset_command() Performs test of the RESET command

Returns
true for successful tests false for unsuccessful tests

Here is the call graph for this function:

bool test_RESET_pin ( void  )

test_RESET_pin() Performs test of the RESET pin

Returns
true for successful tests false for unsuccessful tests

Here is the call graph for this function:

bool test_START_SYNC_pin ( void  )

test_START_SYNC_pin() Performs test of the START/SYNC pin

Returns
true for successful tests false for unsuccessful tests

Here is the call graph for this function:

bool test_write_register ( void  )

test_write_register() Performs test of the communications for writing registers

Returns
true for successful tests false for unsuccessful tests

Here is the call graph for this function: