interprocess_data.h 811 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * interprocess_data.h
  3. *
  4. * Created on: Aug 27, 2024
  5. * Author: jakubski
  6. */
  7. #ifndef INC_INTERPROCESS_DATA_H_
  8. #define INC_INTERPROCESS_DATA_H_
  9. #include "serial_protocol.h"
  10. #include "stdint.h"
  11. struct _IntegerValues {
  12. int32_t value[3];
  13. };
  14. struct _FloatValues {
  15. float value[3];
  16. };
  17. struct _MixedValues {
  18. int32_t value1;
  19. float value2;
  20. uint32_t value3;
  21. };
  22. typedef struct _FloatValues FloatValues;
  23. typedef struct _IntegerValues IntegerValues;
  24. typedef struct _MixedValues MixedValues;
  25. struct _InterProcessData {
  26. SerialProtocolCommands spCommand;
  27. union _values {
  28. IntegerValues integerValues;
  29. FloatValues flaotValues;
  30. MixedValues mixedValues;
  31. } values;
  32. };
  33. typedef struct _InterProcessData InterProcessData;
  34. #endif /* INC_INTERPROCESS_DATA_H_ */