Performs a bitwise mask read operation. Returns an integer representation of the corresponding bits specified in the mask.
bitMaskRead(number, start, length)
returns numeric
Name | Type | Required | Default | Description |
---|---|---|---|---|
number | numeric | Yes | Integer | |
start | numeric | Yes | Start bit for the read mask (Integer in the range 0-31, inclusive) | |
length | numeric | Yes | Length of bits in the read mask (Integer in the range 0-31, inclusive) |
Uses the bitMaskRead function to read each of the corresponding bits specified in the mask
bitMaskRead(3, 0, 1)
Bit shift the mask 2 places
bitMaskRead(10, 2, 1)
bitMaskRead(10, 1, 3)