LVL_CLK_DIV
#define LVL_CLK_MASK (LVL_CLK_DIV - 1)
if (pos <= ((LVL_CLK_DIV - lvl_clk) & LVL_CLK_MASK))