IRPyro messaging application
Communications program between IRPyro and IRPyro evaluation tool
message_unpack.h File Reference

Decodes a byte stream from the GUI into a data structure applicable to the sensor. More...

#include <stdint.h>
#include <string.h>
#include "queue_handle.h"
Include dependency graph for message_unpack.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CMD_LIST_SIZE   (35)
 

Enumerations

enum  decode_result_type { decode_fail, decode_success, no_data }
 

Functions

decode_result_type message_unpack_decode (void)
 FSM to decode a received command If the command is valid, the command code and the payload (if any) are made available for the caller function. More...
 
void message_unpack_result (uint8_t *cmd_code_result, uint8_t *sensor_destination, uint8_t *cmd_payload)
 gives access to the command code and the corresponding payload (if any) More...
 

Detailed Description

Decodes a byte stream from the GUI into a data structure applicable to the sensor.

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_unpack.h.

Macro Definition Documentation

◆ CMD_LIST_SIZE

#define CMD_LIST_SIZE   (35)

Definition at line 37 of file message_unpack.h.

Enumeration Type Documentation

◆ decode_result_type

Enumerator
decode_fail 
decode_success 
no_data 

Definition at line 37 of file message_unpack.h.