|
Hi all
I am trying to draw a model of an seat belt reminder system, which use a LIN bus protocol, sending a 40 bytes messages divided into five fields. I would want to manage a LIN message with a bit-field structure. I am a little bit confused, because on the Rational Rhapsody User Guide book I have read that RHapsody does not support C bit field, but I have also read here (unfortunatly I do not find the post more) that the strategy to create a bit field in Rhapsody is: #1: create a new structure #2: manually add the implementation using signature as: unsigned int %s: <number_of_bits> Auto-generating code Rhapsody substitutes by itself %s with the variable number.
I do not know what is the best solution, heeding the book or the post? Any suggestion? Thanks
Andrea
|