This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Bit fields support

Hi all

is bit fields are supported in uV3???

regards

jagmeet

Parents
  • struct flags { unsigned int a:1; unsigned int b:1; }flag_status;

    main()
    { flag_status.a:1;
    flag_status.b:1;
    } this test code i have written in uV3. But when i check elemnets a and b in watch window in dubug mode, i have found that they have used 16bit individual integers. but im expecting that these elemnts should use a single int space as i am specifying single bit width to the elements..wat is the problem

Reply
  • struct flags { unsigned int a:1; unsigned int b:1; }flag_status;

    main()
    { flag_status.a:1;
    flag_status.b:1;
    } this test code i have written in uV3. But when i check elemnets a and b in watch window in dubug mode, i have found that they have used 16bit individual integers. but im expecting that these elemnts should use a single int space as i am specifying single bit width to the elements..wat is the problem

Children