IRPyro TO unit test console using the IRPyro API
Functions for single and multiple sensor configurations in a Unit test format
Unit testing support functions

assorted board manipulation and comparison functions More...

Collaboration diagram for Unit testing support functions:

Functions

static uint8_t AFE_compare (AFE_reg_type first, AFE_reg_type second)
 Compares AFE registers for equality. More...
 
static uint8_t CCP_compare (CCP_reg_type first, CCP_reg_type second)
 Compares CCP registers for equality. More...
 
static uint8_t check_results (uint8_t *test_results, uint8_t number_of_tests)
 Checks the results of a test for pass or fail by adding individual results. More...
 
static uint8_t FIFO_reset (IRPyro_sensor_device_type *this_device)
 Clear the entire FIFO (Rd/Wr pointer reset with the Empty) More...
 
void IRPyro_demo_board (uint8_t value)
 Changes the state of all the CS lines as used on the IRPyro backplane board. More...
 
static uint8_t IRPyro_test_multiple_sensor_read_sample (IRPyro_devices this_list, uint8_t list_size)
 Given a list of devices collects a number of samples and determines lost frames. More...
 
static uint8_t IRPyro_test_single_sensor_read_sample (IRPyro_sensor_device_type *this_device)
 IRPyro data collection for a number samples. More...
 
static void wakeup_event_callback (void)
 callback function More...
 
static uint8_t WUP_compare (WUP_reg_type first, WUP_reg_type second)
 Compares WUP registers for equality. More...
 

Detailed Description

assorted board manipulation and comparison functions

Function Documentation

◆ AFE_compare()

static uint8_t AFE_compare ( AFE_reg_type  first,
AFE_reg_type  second 
)
static

Compares AFE registers for equality.

Parameters
firstFirst AFE
secondSecond AFE
Return values
comparison0 not equal / 1 equal

Definition at line 819 of file IRPyro_UT_for_TO.c.

Here is the caller graph for this function:

◆ CCP_compare()

static uint8_t CCP_compare ( CCP_reg_type  first,
CCP_reg_type  second 
)
static

Compares CCP registers for equality.

Parameters
firstFirst CCP
secondSecond CCP
Return values
comparison0 not equal / 1 equal

Definition at line 841 of file IRPyro_UT_for_TO.c.

Here is the caller graph for this function:

◆ check_results()

static uint8_t check_results ( uint8_t *  test_results,
uint8_t  number_of_tests 
)
static

Checks the results of a test for pass or fail by adding individual results.

Parameters
test_resultsindividual test result (0 fail / 1 success)
number_of_testssuccess result
Return values
op_result1 PASS/0 FAIL

Definition at line 632 of file IRPyro_UT_for_TO.c.

Here is the caller graph for this function:

◆ FIFO_reset()

static uint8_t FIFO_reset ( IRPyro_sensor_device_type *  this_device)
static

Clear the entire FIFO (Rd/Wr pointer reset with the Empty)

Parameters
this_devicepointer to the IRPyro data structure
Return values
op_result1 success / 0 error

Definition at line 884 of file IRPyro_UT_for_TO.c.

Here is the caller graph for this function:

◆ IRPyro_demo_board()

void IRPyro_demo_board ( uint8_t  value)

Changes the state of all the CS lines as used on the IRPyro backplane board.

Definition at line 619 of file IRPyro_UT_for_TO.c.

Here is the caller graph for this function:

◆ IRPyro_test_multiple_sensor_read_sample()

static uint8_t IRPyro_test_multiple_sensor_read_sample ( IRPyro_devices  this_list,
uint8_t  list_size 
)
static

Given a list of devices collects a number of samples and determines lost frames.

Parameters
this_listgroup of IRPyro configuration data
list_sizenumber of devices on the list
Return values
number_of_frames_lost

Definition at line 659 of file IRPyro_UT_for_TO.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IRPyro_test_single_sensor_read_sample()

static uint8_t IRPyro_test_single_sensor_read_sample ( IRPyro_sensor_device_type *  this_device)
static

IRPyro data collection for a number samples.

Parameters
this_deviceIRPyro configuration data
Return values
number_of_frames_lost

Definition at line 749 of file IRPyro_UT_for_TO.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wakeup_event_callback()

static void wakeup_event_callback ( void  )
static

callback function

Attention
This function is called from an interrupt service request function and should be minimal.

Definition at line 903 of file IRPyro_UT_for_TO.c.

Here is the caller graph for this function:

◆ WUP_compare()

static uint8_t WUP_compare ( WUP_reg_type  first,
WUP_reg_type  second 
)
static

Compares WUP registers for equality.

Parameters
firstFirst WUP
secondSecond WUP
Return values
comparison0 not equal / 1 equal

Definition at line 863 of file IRPyro_UT_for_TO.c.

Here is the caller graph for this function: