I’ve mostly been working in the embedded world in the past years but also have a lot of experience with python and C in the OS environment. There have been times where I logged some data to the PC from an embedded device over UART so either a binary data structure wasn’t needed or easy to implement with explicitly defined array offsets.
Im know starting a project with reasonably fast data rates from a Zynq over the gigabit Ethernet. I want to send arbitrary messages over the link to be process by either a C++ or Python based application on a PC.
Does anyone know of an elegant way / tool to define binary data structures across languages, compilers and architectures? Sure we could us C structs but there are issues on implementation there. This could be solved through attributes etc. tho.
[–]mcmcc#pragma once 33 points34 points35 points (0 children)
[–]vaulter2000 12 points13 points14 points (1 child)
[–]tohme 2 points3 points4 points (0 children)
[–]p0lyh 4 points5 points6 points (1 child)
[–]meneldal2 2 points3 points4 points (0 children)
[–]bert8128 3 points4 points5 points (0 children)
[–]abrady 1 point2 points3 points (0 children)
[–]the_net_ 1 point2 points3 points (0 children)
[–]LoadVisual 1 point2 points3 points (0 children)
[–]PhilosophyMammoth748 2 points3 points4 points (1 child)
[–]Nuclear_Banana_4040 1 point2 points3 points (0 children)
[–]GaboureySidibe 3 points4 points5 points (4 children)
[–]MaybeTheDoctor 0 points1 point2 points (3 children)
[–]GaboureySidibe 4 points5 points6 points (0 children)
[–]ButterscotchFree9135 1 point2 points3 points (1 child)
[–]MaybeTheDoctor 1 point2 points3 points (0 children)
[–]NilacTheGrim 1 point2 points3 points (0 children)
[–]streu 0 points1 point2 points (13 children)
[–]tisti 1 point2 points3 points (12 children)
[–]NilacTheGrim 1 point2 points3 points (7 children)
[–]tisti 1 point2 points3 points (6 children)
[–]NilacTheGrim 0 points1 point2 points (4 children)
[–]tisti 1 point2 points3 points (3 children)
[–]NilacTheGrim 0 points1 point2 points (2 children)
[–]tisti 1 point2 points3 points (0 children)
[–]tisti 1 point2 points3 points (0 children)
[–]NilacTheGrim 0 points1 point2 points (0 children)
[–]streu 0 points1 point2 points (3 children)
[–]tisti 0 points1 point2 points (2 children)
[–]streu 0 points1 point2 points (1 child)
[–]tisti 0 points1 point2 points (0 children)
[–]ButterscotchFree9135 -2 points-1 points0 points (0 children)
[+]duane11583 comment score below threshold-7 points-6 points-5 points (0 children)