Endian Converter
Hello, i have a problem with endianess.
I'd like to send a message from a Intel machine to an Motorolla (little -> big endian). The receiving function on the Motorolla machine is specific. The code on the Intel side i can manipulate.
The messages have in ada the followin structure:
i.e.:
type TEST_rtype is
record
A :NATURAL_BITS_63_stype;
B :BOOLEAN;
C :NATURAL_BITS_18_stype;
D :MSB_MINUS_90_DEG_BITS_13_type;
...
end record;
for TEST_rtype use
record
A at 0 range 0 .. 62;
B at 7 range 63 .. 63;
C at 8 range 0 .. 17;
D at 9 range 3 .. 15;
...
end record;
Have someone a good idea to this problem?
Thanks.
Bye Franz
|