IRPyro API demo
Shows the basic functionality of the IRPyro API
main.c File Reference

Examples of single sensor and multiple sensor streaming. Also IOCTL of a single sensor. More...

#include "main.h"
Include dependency graph for main.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_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_sample (IRPyro_sensor_device_type *this_device)
 IRPyro data collection for a number samples. More...
 
static void read_sample_multiple_devices (void)
 Example to initialize multiple IRPyros and stream data. More...
 
static void read_sample_single_device (void)
 Example to initialize one IRPyro and stream data. More...
 
static void rx_function (void)
 USART RX function Code to catch data on the USART interface. More...
 
static void tx_function (void)
 USART transmission function Code can be added here for the firmware to respond when the transmission software interrupt is enabled. More...
 
static void usart_callback_setup (void)
 configures USART irq functions More...
 
static void wake_up_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

Examples of single sensor and multiple sensor streaming. Also IOCTL of a single sensor.

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 main.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