    

 ## On this page

  

 

 # GetBits

 Last update: 17.07.2025 

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](../../libraries/bitfield/bitfield.md)