IRPyro messaging application
Communications program between IRPyro and IRPyro evaluation tool

Functions common to Message Generator and Message Interpreter. More...

Collaboration diagram for Message Interface Common:

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

Functions common to Message Generator and Message Interpreter.

*
* 
Note

Function Documentation

◆ channel_collect()

static uint8_t channel_collect ( uint8_t *  channel_id)
static

check for channels. returns an array with the channels and count

Definition at line 66 of file message_interface_common.c.

Here is the caller graph for this function:

◆ channel_id_next()

void channel_id_next ( void  )

increments the channel index

Definition at line 210 of file message_interface_common.c.

Here is the caller graph for this function:

◆ channel_id_to_channel()

uint8_t channel_id_to_channel ( void  )

maps the GUI scope channel_id to physical channel on the sensor

Definition at line 202 of file message_interface_common.c.

Here is the caller graph for this function:

◆ channel_id_to_sensor()

uint8_t channel_id_to_sensor ( void  )

maps the GUI scope channel_id to physical sensor

Definition at line 194 of file message_interface_common.c.

Here is the caller graph for this function:

◆ channel_locate()

static uint8_t channel_locate ( const uint8_t *  channels)
static

looks for a given channel id on the list of active channels

Note
returns the channel ordinal not the array index: 1st, 2nd, etc

Definition at line 84 of file message_interface_common.c.

Here is the caller graph for this function:

◆ channel_processing()

uint8_t channel_processing ( uint8_t *  channel_count)

prepares for channel_id requests

Definition at line 178 of file message_interface_common.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ channel_validate()

static uint8_t channel_validate ( uint8_t *  idx,
uint8_t *  channel_count,
uint8_t  sensor_selected,
uint8_t  channel_location 
)
static

validation logic for available channels, sensor selected and channel location

Definition at line 105 of file message_interface_common.c.

Here is the caller graph for this function:

◆ process_parms_load()

void process_parms_load ( uint8_t *  idx,
uint8_t *  num_sensors_to_process 
)

configures for loop for single or multiple sensor operations

Definition at line 139 of file message_interface_common.c.

Here is the caller graph for this function:

Variable Documentation

◆ channel_processing_index

uint8_t channel_processing_index = 0
static

Definition at line 174 of file message_interface_common.c.

◆ channels

uint8_t channels[NUMBER_OF_SCOPES_IN_THE_GUI] = {0}
static

Definition at line 173 of file message_interface_common.c.

◆ on_board

const struct channel_configuration_map on_board[]
Initial value:
=
{
{0x00,0,0},
{0x01,0,0},{0x02,0,1},{0x03,0,2},{0x04,0,3},{0x05,0,4},
{0x06,1,0},{0x07,1,1},{0x08,1,2},{0x09,1,3},{0x0A,1,4},
{0x0B,2,0},{0x0C,2,1},{0x0D,2,2},{0x0E,2,3},{0x0F,2,4},
{0x10,3,0},{0x11,3,1},{0x12,3,2},{0x13,3,3},{0x14,3,4}
}

Definition at line 139 of file message_interface_common.c.