    

 ## On this page

  

 

 # GetBits

 Last update: 09.03.2026 

Returns a number of bits for the input starting at the given position.

## Interface

NameKindTypeCommentNPN/ASize of the bit-fieldbfIunsigned&lt;&lt;N&gt;&gt;Input bit-fieldpIintegerStart bit position  
Range: \[0, N\[lIintegerNumber of bits to get  
Range: \[0, N-p\[vOunsigned&lt;&lt;N&gt;&gt;Result of the operation**Parent topic:**[Bitfield](./bitfield.md)