Pack and unpack using shifting and masking

This commit is contained in:
Geoffrey Merck
2020-05-08 16:41:06 +02:00
parent 5e887a95c5
commit 8cdc1ffe7f
2 changed files with 35 additions and 22 deletions

View File

@@ -22,6 +22,17 @@
#include "FMNetwork.h"
#include "Defines.h"
typedef struct
{
union
{
int pack;
char packBytes[4];
};
} SamplePack;
class CFMControl {
public:
CFMControl(CFMNetwork* network);