ADS124S08 Example C Code  1.0.0
Functions | Variables
unit_tests.h File Reference

Header definition for implementations of unit tests. More...

#include "ads124s08.h"
#include <stdbool.h>
#include <stdint.h>
#include "hal.h"
Include dependency graph for unit_tests.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool run_unit_tests (void)
 
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...
 

Variables

SPI_Handle spiHdl
 

Detailed Description

Header definition for implementations 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.

Function Documentation

bool run_unit_tests ( void  )
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:

Variable Documentation

SPI_Handle spiHdl