[SOLVED] Ozone v3.32: Bit-fields strange behavior (not fully supported?)

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Ozone v3.32: Bit-fields strange behavior (not fully supported?)

    My old project have some struct, which is not displayed correctly. BitFields inside are not displayed:

    Source Code

    1. struct BatStruct{
    2. enum BatMode Mode;
    3. int32_t V,I;
    4. int32_t Vu,Iu;
    5. uint16_t Vups,Vudc;
    6. unsigned SwPs:1;
    7. unsigned SwDc:1;
    8. unsigned SwG1:1;
    9. unsigned SwG2:1;
    10. unsigned RelayOut:1;
    11. unsigned RelayPol:1;
    12. unsigned RelayDs:1;
    13. unsigned PcbHardwareErrorMcu:1;
    14. unsigned PcbHardwareErrorPower:1;
    15. uint32_t EI2C1,EI2C2,EI2C3;
    16. };
    Display All


    Source Code

    1. struct Dac4728EEStruct {
    2. uint16_t N;
    3. unsigned Vref :1;
    4. unsigned Gx :1;
    5. unsigned PD :2;
    6. };
    7. struct Dac4728XStruct {
    8. uint16_t N;
    9. unsigned Vref :1;
    10. unsigned Gx :1;
    11. unsigned PD :2;
    12. struct Dac4728EEStruct EE;
    13. };
    Display All
    What is wrong?
    Images
    • struct1.png

      22.77 kB, 586×386, viewed 223 times
    • struct2.png

      11.12 kB, 590×195, viewed 214 times
  • Hi Vladi552,
    could you please open a ticket in our support ticket system (see my signature for more details)?
    Best regards
    -- AlexD
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.