This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280045: Size of bitfields for ADC SOC CTL register

Part Number: TMS320F280045
Other Parts Discussed in Thread: C2000WARE

In C2000Ware version 4 f28004x_adc.h, I can see that the CHSEL part of the ADCSOC0CTL_BITS struct (and the one for all other SOC registers) is defined as Uint32, while the other elements are Uint16.

Is there any special reason why that one is defined as Uint32? It seems safe to change it to Uint16 as the it shoudl be only 4 bits long.

  • Hello Jose,

    I'm not sure why that is the case, and I think you're right that it could be changed to a Uint16. Either way it is harmless as the bitfield size is mapped directly to the field in the 32bit register. I can file a bug against it for our software team, but it would be a low priority item.

    Best regards,
    Ibukun