Description Usage Arguments Value Note
Extract bits start_index
to stop_index
from an 8 bit integer.
1 | uint.subbits.as.uint(int8, start_index, stop_index)
|
int8 |
integer, must be in range 0L..255L. The integer is of course stored as a 32 bit integer internally in |
start_index |
integer in range 1L..32L, the start bit index. |
stop_index |
integer in range 1L..32L, the stop bit index. |
an unsigned integer, the possible range depends on the number of bits.
Thanks to Julian_Hn at stackoverflow for this function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.