Hello everybody,
I'm currently evaluating EA and I hope that some of you experienced folks might help me out.
I have to model an embedded real time system using C++.
In order to address all the microcontroller registers I have been using C-type bitfields in the past, which is a convenient way to access to individual bits.
My 1st question is: How can I do this in EA?
I have seen that EA generates attributes with a default value corresponding to the bit length in reverse engeneered code, but when I try to create a new class and I create an attribute ( someAttribute: int = 1 ) and then generate the code, it will generate a normal int attribute without the ':' and the length.
My 2nd question is: How can I model unions?
If I reverse engeneer an existing HPP header file with the following declaration:
struct TER_Bitfield_Access
{
int NOP : 6 ;
int Ref : 1 ;
int Cap : 1 ;
} ;
union TER_Access
{
struct TER_Bitfield_Access Bitfield ;
uchar Global ;
} ;
EA creates a struct element but it does not create an element for the union. Can this be done somehow?
I'd really appreciate any hints
Thanks in advance for you attention!
best regards,
Manfred
BTW, I'm really impressed by the product!
