rtiddsgen Bitfield Question

1 post / 0 new
kss
Offline
Last seen: 7 years 4 months ago
Joined: 12/07/2016
Posts: 1
rtiddsgen Bitfield Question

Hi,

I'm new to DDS and I was looking through the rtiddsgen release notes and found that bitfields are no longer supported.

I have several messages I'm interested in creating IDL files for that have a format similar to:

struct system_status{
  unsigned short status0: 4;
  unsigned short status1: 4;
  unsigned short status2: 4;
  unsigned short status3: 4;
 };

Is there a way to do this without bitfields?  I can always just replace the bitfields with a single type and bitpack everything, but it might be easier to maintain in the IDL, if possible.  I'm looking at C code generation.