IRPyro API  (sKEMLIB1)
Collection of routines and data structures covering the functionality of the IRPyro sensor

Data structures manipulation functions. More...

Collaboration diagram for Support functions:

Data Structures

struct  notice
 Checksum string for the IRPyro API. More...
 

Functions

static uint8_t AFE_register_empty (AFE_reg_type first)
 Checks if the AFE register is empty. More...
 
static uint8_t CCP_register_empty (CCP_reg_type first)
 Checks if the CCP register is empty. More...
 
static uint8_t channel_value_decode (IRPyro_sensor_device_type *this_device)
 Decodes the channel values on a given frame. More...
 
static uint8_t WUP_register_empty (WUP_reg_type first)
 Checks if the AFE register is empty. More...
 

Detailed Description

Data structures manipulation functions.

 ===============================================================================
           #####  Support functions  #####
 ===============================================================================
    [..] This section provides a set of auxiliary functions

Function Documentation

static uint8_t AFE_register_empty ( AFE_reg_type  first)
static

Checks if the AFE register is empty.

Parameters
firstAFE register
Return values
result_empty1 empty / 0 not empty

Definition at line 1152 of file IRPyro_API_single_device_layer.c.

Here is the caller graph for this function:

static uint8_t CCP_register_empty ( CCP_reg_type  first)
static

Checks if the CCP register is empty.

Parameters
firstCCP register
Return values
result_empty1 empty / 0 not empty

Definition at line 1170 of file IRPyro_API_single_device_layer.c.

Here is the caller graph for this function:

static uint8_t channel_value_decode ( IRPyro_sensor_device_type this_device)
static

Decodes the channel values on a given frame.

Parameters
this_devicepointer to IRPyro device
Return values
ch_valuepointer to IRPyro decoded channel data
* Up to 17 Bytes containing the top frame available in the FIFO which has only
* the active channel data as well as a frame counter (the example below shows
* channel 0 and 4 active):
*
* FIFO_DPA    Data
* Byte 0  channel 0 bits 23-16
* Byte 1  channel 0 bits 15-8
* Byte 2  channel 0 bits 7-0
* Byte 3  channel 4 bits 23-16
* Byte 4  channel 4 bits 15-8
* Byte 5  channel 4 bits 7-0
* Byte 6  frame count MSB
* Byte 7  frame count LSB
*
* Channel Data : 24 bits unsigned value
* Frame count : 16 bits unsigned value
* In this mode, the number of Bytes sent will depend on number of active channels e.g.
* 2 channels (ch0 and ch4) active = 2 * (3 Bytes) + (2 Bytes frame counter) = 8 Bytes
*
* 

Definition at line 1104 of file IRPyro_API_single_device_layer.c.

Here is the caller graph for this function:

static uint8_t WUP_register_empty ( WUP_reg_type  first)
static

Checks if the AFE register is empty.

Parameters
firstFirst AFE
Return values
result_empty1 empty / 0 not empty

Definition at line 1188 of file IRPyro_API_single_device_layer.c.

Here is the caller graph for this function: