21 lines
208 B
C
21 lines
208 B
C
#ifndef _UTIL_H
|
|
#define _UTIL_H
|
|
#include <stdint.h>
|
|
|
|
|
|
typedef union {
|
|
uint32_t data;
|
|
char byte[4];
|
|
} Int;
|
|
typedef union {
|
|
float data;
|
|
char byte[4];
|
|
} Float;
|
|
|
|
|
|
float Bytes2Float(char * data);
|
|
|
|
#endif
|
|
|
|
|