89 rui8_t bitPos = 5, result;
90 rui8_t expectedBitMask = (rui8_t)(1 << bitPos);
93 TEST_ASSERT_EQUAL_HEX8(expectedBitMask, result);
97 test_GetLeastSignificantBitPost(
void)
103 TEST_ASSERT_EQUAL(3, result);
107 test_InvalidBitPosition(
void)
112 TEST_ASSERT_EQUAL_HEX8(RKH_INVALID_BITPOS, result);
Specifies the interface of the mapping table manager to deal with native priority algorithm.
rui8_t rkh_bittbl_getLeastBitSetPos(rui8_t value)
Used to return the bit position of the least significant bit set - a number between 0 and 7 (from an ...
rui8_t rkh_bittbl_getBitMask(rui8_t bitPos)
Get the bit mask from a bit position (from an 8-bit value).