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

High Level Unit Testing module. More...

#include "IRPyro_UT.h"
Include dependency graph for IRPyro_UT_HL.c:

Go to the source code of this file.

Functions

int main ()
 unit testing main program. More...
 
void test01 (void)
 Data structure for single device with INTERRUPT enabled is defined, sent to the IRPyro sensor and then read back again. More...
 
void test02 (void)
 Data structure for single device with POLLED CONFIGURATION enabled is defined, sent to the IRPyro sensor and then read back again. More...
 
void test03 (void)
 Data structure for single device with DAISY CHAIN CONFIGURATION enabled is defined, sent to the IRPyro sensor and then read back again. More...
 
void test04 (void)
 A list of IRPyro devices is declared, all the devices interrupt enabled. The data structure is sent to the physical sensors, and then read back again. More...
 
void test05 (void)
 A list of IRPyro devices is declared, all the devices with the interrupt disabled. The data structure is sent to the physical sensors, and then read back again. More...
 
void test06 (void)
 A list of IRPyro devices is declared, all the devices are defined with the SYNC bit enabled. The data structure is sent to the physical sensors, and then read back again. More...
 
void test07 (void)
 With the data structure defined in 9.1.1.1 an IRPyro sensor is configured. One hour of data is read from the sensor. Each frame counter received is compared with the previous. A missing frame is detected when both numbers are NOT CONSECUTIVE. This event is counted. More...
 
void test08 (void)
 With the data structure defined in 9.1.1.2 an IRPyro sensor is configured. One hour of data is read from the sensor. Each frame counter received is compared with the previous. A missing frame is detected when both numbers are NOT CONSECUTIVE. This event is counted. More...
 
void test09 (void)
 With the data structure defined in 9.1.1.3 an IRPyro sensor is configured. One hour of data is read from the sensor. Each frame counter received is compared with the previous. A missing frame is detected when both numbers are NOT CONSECUTIVE. This event is counted. More...
 
void test10 (void)
 With the data structure defined in 9.1.2.1 a four IRPyro sensors are configured. One hour of data is read from the sensors. Each frame counter received is compared with the previous. A missing frame is detected when both numbers are NOT CONSECUTIVE. This event is counted. More...
 
void test11 (void)
 With the data structure defined in 9.1.2.2 a four IRPyro sensors are configured. One hour of data is read from the sensors. Each frame counter received is compared with the previous. A missing frame is detected when both numbers are NOT CONSECUTIVE. This event is counted. More...
 
void test12 (void)
 With the data structure defined in 9.1.2.3 a four IRPyro sensors are configured. One hour of data is read from the sensors. Each frame counter received is compared with the previous. A missing frame is detected when both numbers are NOT CONSECUTIVE. This event is counted. More...
 
void test13 (void)
 
void test14 (void)
 With the data structure defined in 9.1.1.1 an IRPyro sensor is configured. The following API commands are issued: sampling_rate_set, sampling_rate_get, high_pass_set, high_pass_get, low_pass_set, low_pass_get, gain_set, and gain_get, power_off. A sample of readings is taken and the behaviour of the sensor is observed. More...
 
void test15 (void)
 With the data structure defined in 9.1.1.1 an IRPyro sensor is configured. The following API commands are issued: power_sleep, and power_wakeup. A sample of readings is taken and the behavior of the sensor is observed. More...
 
void test16 (void)
 With the data structure defined in 9.1.1.1 an IRPyro sensor is configured. The following API commands are issued: power_off, power_normal, and power_low. A sample of readings is taken and the behavior of the sensor is observed. More...
 

Detailed Description

High Level Unit Testing module.

Author
_KEMET, Ltd
Date
March 2018
Version
Release 1.0.6
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_HL.c.

Function Documentation

void test13 ( void  )