56 #include "unity_fixture.h"
74 TEST_TEAR_DOWN(bittbl)
84 TEST(bittbl, GetBitMask)
86 rui8_t bitPos = 5, result;
87 rui8_t expectedBitMask = (rui8_t)(1 << bitPos);
90 TEST_ASSERT_EQUAL_HEX8(expectedBitMask, result);
93 TEST(bittbl, GetLeastSignificantBitPost)
99 TEST_ASSERT_EQUAL(3, result);
102 TEST(bittbl, InvalidBitPosition)
107 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_getBitMask(rui8_t bitPos)
Get the bit mask from a bit position (from an 8-bit value).
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 ...