IRPyro messaging application
Communications program between IRPyro and IRPyro evaluation tool
|
Decodes a byte stream from the GUI into a data structure applicable to the sensor. More...
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... | |
Decodes a byte stream from the GUI into a data structure applicable to the sensor.
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.
#define CMD_LIST_SIZE (35) |
Definition at line 37 of file message_unpack.h.
enum decode_result_type |
Enumerator | |
---|---|
decode_fail | |
decode_success | |
no_data |
Definition at line 37 of file message_unpack.h.