IRPyro TO API demo
Specific demo for the IRPyro TO with IRPyro API
main_for_TO.c File Reference

Example for the IRPyro TO. Single and multiple sensor configuration to enable to operator to collect samples. Example to show how to change configuration parameter of a single sensor. More...

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

Go to the source code of this file.

Macros

#define IRPyro_FRAME_COUNT_LOCATION   5
 
#define IRPyro_MAXINT   2147483647
 
#define NUMBER_OF_FRAMES_TO_COUNT   3
 
#define NUMBER_OF_SAMPLES_TO_COUNT   6000000
 
#define TIME_TO_WAIT   600000
 

Functions

static void demo_board_sensor_control (int state)
 Changes the state of all the CS lines as used on the IRPyro backplane board. More...
 
static void IOCTL_TO_example (void)
 Shows how to change sensor parameters on the run. More...
 
static void IRPyro_sensor_population (IRPyro_devices this_list, uint8_t *list_size)
 Detect IRPyro sensors present in the demo board. More...
 
int main (void)
 Call point to the example functions. More...
 
static void read_a_TO_sample (IRPyro_sensor_device_type *this_device)
 Collects the number of data samples indicated by NUMBER_OF_FRAMES_TO_COUNT. More...
 
static void read_sample_multiple_TO_devices (void)
 Example to initialize multiple IRPyros and stream data. More...
 
static void read_sample_single_TO_device (void)
 Example to initialize one IRPyro TO and stream data Creates an IRPyro TO sensor with one channel active and the minimal Required configuration: location of the CS port and pin and a I2C address. See Read_Me.txt. More...
 
static void rx_function (void)
 USART RX function. More...
 
static void sensor_power_stabilize ()
 power cycles the sensors on the board to assure stability More...
 
static void tx_function (void)
 USART TX function. More...
 
static void usart_callback_setup (void)
 configures USART irq functions More...
 
static void wake_up_TO_event_detection (void)
 Wake up event detection This function configures the IRPyro sensor to sleep mode. More...
 
static void wakeup_event_callback (void)
 callback function More...
 

Detailed Description

Example for the IRPyro TO. Single and multiple sensor configuration to enable to operator to collect samples. Example to show how to change configuration parameter of a single sensor.

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

Macro Definition Documentation

◆ IRPyro_FRAME_COUNT_LOCATION

#define IRPyro_FRAME_COUNT_LOCATION   5

◆ IRPyro_MAXINT

#define IRPyro_MAXINT   2147483647

◆ NUMBER_OF_FRAMES_TO_COUNT

#define NUMBER_OF_FRAMES_TO_COUNT   3

◆ NUMBER_OF_SAMPLES_TO_COUNT

#define NUMBER_OF_SAMPLES_TO_COUNT   6000000

◆ TIME_TO_WAIT

#define TIME_TO_WAIT   600000