    

 ## On this page

  

 

 # BitsMask

 Last update: 09.03.2026 

Returns a mask of a number of bits at the given position.

## Interface

NameKindTypeCommentNPN/ASize of the bit-fieldpIintegerStart bit position  
Range: \[0, N\[lIintegerNumber of bits to set  
Range: \[0, N-p\[maskOunsigned&lt;&lt;N&gt;&gt;Resulting mask**Parent topic:**[Bitfield](bitfield.md)