Main Content

Bitfield declarator type specifier

Specify bitfield type

Model Configuration Pane: Code Generation / Optimization

Description

The Bitfield declarator type specifier parameter specifies the bitfield type when selecting configuration parameter Pack Boolean data into bitfields. The optimization benefit is dependent upon your choice of target.

Dependencies

The Pack Boolean data into bitfields parameter enables this parameter.

Settings

uint_T (default) | uchar_T
uint_T

The type specified for a bitfield declaration is an unsigned int.

uchar_T

The type specified for a bitfield declaration is an unsigned char.

Tips

The Pack Boolean data into bitfields configuration parameter default setting uses unsigned integers. This might cause an increase in RAM if the bitfields are small and distributed. In this case, uchar_T might use less RAM depending on your target.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyTarget dependent
Safety precautionNo impact

Programmatic Use

Parameter: BitfieldContainerType
Type: character vector
Value: uint_T | uchar_T
Default: uint_T

Version History

Introduced in R2010a