RKH
rkhfwk_bittbl.h File Reference

Specifies the interface of the mapping table manager to deal with native priority algorithm. More...

#include "rkhtype.h"
Include dependency graph for rkhfwk_bittbl.h:

Go to the source code of this file.

Functions

rui8_t rkh_bittbl_getBitMask (rui8_t bitPos)
 Get the bit mask from a bit position (from an 8-bit value). More...
 
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 8-bit value). More...
 

Detailed Description

Specifies the interface of the mapping table manager to deal with native priority algorithm.

Definition in file rkhfwk_bittbl.h.

Function Documentation

◆ rkh_bittbl_getBitMask()

rui8_t rkh_bittbl_getBitMask ( rui8_t  bitPos)

Get the bit mask from a bit position (from an 8-bit value).

Parameters
[in]bitPosbit position.
Returns
The bit mask from a bit position (from an 8-bit value) if bitPos is less than 8, otherwise RKH_INVALID_BITPOS.

◆ rkh_bittbl_getLeastBitSetPos()

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 8-bit value).

Parameters
[in]valuedata value to retrieve the least significant bit set.
Returns
The bit position of the least significant bit set - a number between 0 and 7 (from an 8-bit value).