#include <stdlib.h>
#include <stddef.h>
#include <stdint.h>

struct Command_Type {
   uint8_t A,B,Command;
}; // struct Command_Type 



#define _HeartBeat ((struct Command_Type) {0x10,0x01,0})

#define int_of_Command_Type(X) ((unsigned int) (((int) ((X).A)) << 16) |\
                                (unsigned int) (((int) ((X).B)) << 8) | \
                                (unsigned int) (((int) ((X).Command))))


int main() {
   	struct Command_Type Command_type_var=_HeartBeat;

   	switch(int_of_Command_Type(Command_type_var))
   	{
    case int_of_Command_Type(_HeartBeat):  
          break;
    default: 
          break; 
   	};
	return 0;
}