IRPyro messaging application
Communications program between IRPyro and IRPyro evaluation tool
|
Common functions for the message generator and the message interpreter. More...
#include "message_interface_common.h"
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 [] |
Common functions for the message generator and the message interpreter.
=============================================================================== ##### Description ##### =============================================================================== [..] Routines to access channel_id mapping into physical sensors populated on the board given +-----+-----+-----+-----+-----+ which assigns a unique Id to each channel | ch | u1 | u2 | u3 | u4 | a logic is implemented to manage the mapping +-----+-----+-----+-----+-----+ into the IRPyro API | 0 |0x01 |0x06 |0x0b |0x10 | +-----+-----+-----+-----+-----+ | 1 |0x02 |0x07 |0x0c |0x11 | +-----+-----+-----+-----+-----+ | 2 |0x03 |0x08 |0x0d |0x12 | +-----+-----+-----+-----+-----+ | 3 |0x04 |0x09 |0x0e |0x13 | +-----+-----+-----+-----+-----+ | 4 |0x05 |0x0a |0x0f |0x14 | +-----+-----+-----+-----+-----+ [..]
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.