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

Sensor data/configuration is packaged to be send to the GUI. More...

#include "message_pack.h"
Include dependency graph for message_pack.c:

Go to the source code of this file.

Functions

void get_bytes_to_GUI (uint8_t packet_function, uint8_t const *bytes_to_gui, uint16_t size)
 selects the correct function to send data to the gui. More...
 
static void message_pack_block_send (uint8_t const *data, uint16_t size)
 Puts a byte array into a designated message queue. More...
 
void message_pack_status_send (void)
 Packs firmware status for the GUI: Streaming and power mode. More...
 
void message_pack_stream_send (void)
 

Variables

int32_t ConfiguredSensorsSamplingDataToGUI [8]
 Packs collected data for the active channels into the firmware. More...
 
uint8_t EmitterStatus
 
uint8_t isStreaming
 
uint8_t mode_lowPower
 
uint8_t mode_sleeping
 
uint8_t status_need_to_send
 

Detailed Description

Sensor data/configuration is packaged to be send to the GUI.

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

Variable Documentation

◆ EmitterStatus

uint8_t EmitterStatus

bit 0 : external emitter in use bit 1 : internal emitter in use bit 2 : internal emitter currently ON bit 3 : internal emitter in use but permanently OFF bit 7 : 0 = normal1 state, = status changed by external command

Definition at line 65 of file main.c.

◆ isStreaming

uint8_t isStreaming

Definition at line 70 of file main.c.

◆ mode_lowPower

uint8_t mode_lowPower

Definition at line 54 of file main.c.

◆ mode_sleeping

uint8_t mode_sleeping

Definition at line 53 of file main.c.

◆ status_need_to_send

uint8_t status_need_to_send

Definition at line 72 of file main.c.