IRPyro TO unit test console using the IRPyro API
Functions for single and multiple sensor configurations in a Unit test format
IRPyro_UT_for_TO.c File Reference

Low level Unit Testing module. More...

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

Go to the source code of this file.

Macros

#define IOCTL01_TEST_NUMBER   5
 
#define IOCTL_TEST_NUMBER   12
 
#define WAKE_UP_EVENT_TEST_NUMBER   3
 

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...
 
uint8_t ut01_single_sensor_init (IRPyro_sensor_device_type *IRPyro_test_Sensor)
 
uint8_t ut02_multiple_sensor_init (IRPyro_devices this_list, uint8_t list_size)
 
uint8_t ut03_single_sensor_read (IRPyro_sensor_device_type *IRPyro_test_Sensor)
 
uint8_t ut04_multiple_sensor_read (IRPyro_devices this_list, uint8_t list_size)
 
uint8_t ut06_IOCTL01 (IRPyro_sensor_device_type *IRPyro_test_Sensor)
 Test of IOCTL functions. More...
 
uint8_t ut06_IOCTL02 (IRPyro_sensor_device_type *IRPyro_test_Sensor)
 
void ut_TO_CAN_read (void)
 Single TO-CAN read. More...
 
void ut_TO_CAN_read2 (void)
 
uint8_t ut_wake_up_event (IRPyro_sensor_device_type *IRPyro_test_Sensor)
 Wake up event. 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

Low level Unit Testing module.

Author
_KEMET, Ltd
Date
March 2018
Version
Release 1.0.0
Attention

© COPYRIGHT 2018 _KEMET, Ltd

  Copyright (c) 2018, _KEMET, Ltd
  All rights reserved.

  THIS SOFTWARE IS PROVIDED BY _KEMET, Ltd ''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 _KEMET, Ltd 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.

Definition in file IRPyro_UT_for_TO.c.

Macro Definition Documentation

◆ IOCTL01_TEST_NUMBER

#define IOCTL01_TEST_NUMBER   5

◆ IOCTL_TEST_NUMBER

#define IOCTL_TEST_NUMBER   12

◆ WAKE_UP_EVENT_TEST_NUMBER

#define WAKE_UP_EVENT_TEST_NUMBER   3