Extract a bit pattern from an integer and store it with a maximal shift in a new integer.
- Template Parameters
-
| t_num_bits | The patterns number of bits |
| t_index | The index of the first bit of the bit pattern |
| t_shift_right | If true, the bit pattern will be maximally shifted to the right (low bits) and to the left (high bits) otherwise |
| T_Type | The type of the source integer. |
| T_ReturnType | The type of the returned integer |
- Parameters
-
| [in] | integer | The source integer |
- Returns
- An integer containing the extracted and shifted bit pattern.