You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
418 B
26 lines
418 B
//
|
|
// Created by MightyPork on 2017/10/15.
|
|
//
|
|
|
|
#ifndef TF_UTILS_H
|
|
#define TF_UTILS_H
|
|
|
|
#include <stdio.h>
|
|
#include "../TinyFrame.h"
|
|
|
|
/** pointer to unsigned char */
|
|
typedef unsigned char* pu8;
|
|
|
|
/**
|
|
* Dump a binary frame as hex, dec and ASCII
|
|
*/
|
|
void dumpFrame(const uint8_t *buff, size_t len);
|
|
|
|
/**
|
|
* Dump message metadata (not the content)
|
|
*
|
|
* @param msg
|
|
*/
|
|
void dumpFrameInfo(TF_Msg *msg);
|
|
|
|
#endif //TF_UTILS_H
|
|
|