IRPyro messaging application
Communications program between IRPyro and IRPyro evaluation tool
message_interface_common.c File Reference

Common functions for the message generator and the message interpreter. More...

Include dependency graph for message_interface_common.c:

Go to the source code of this file.

Data Structures

struct  channel_configuration_map
 assign a unique consecutive number to each channel on a maximum of four sensors More...
 

Functions

static uint8_t channel_collect (uint8_t *channel_id)
 check for channels. returns an array with the channels and count More...
 
void channel_id_next (void)
 increments the channel index More...
 
uint8_t channel_id_to_channel (void)
 maps the GUI scope channel_id to physical channel on the sensor More...
 
uint8_t channel_id_to_sensor (void)
 maps the GUI scope channel_id to physical sensor More...
 
static uint8_t channel_locate (const uint8_t *channels)
 looks for a given channel id on the list of active channels More...
 
uint8_t channel_processing (uint8_t *channel_count)
 prepares for channel_id requests More...
 
static uint8_t channel_validate (uint8_t *idx, uint8_t *channel_count, uint8_t sensor_selected, uint8_t channel_location)
 validation logic for available channels, sensor selected and channel location More...
 
void process_parms_load (uint8_t *idx, uint8_t *num_sensors_to_process)
 configures for loop for single or multiple sensor operations More...
 

Variables

static uint8_t channel_processing_index = 0
 
static uint8_t channels [NUMBER_OF_SCOPES_IN_THE_GUI] = {0}
 
const struct channel_configuration_map on_board []
 

Detailed Description

Common functions for the message generator and the message interpreter.

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