SpHr_bitTest(val, bit)


Test bit of val, equivalent to: (val & 2^bit) != 0


Example

variable val = 0

val = SpHr_bitSet(val, 1)        // set bit one

if(SpHr_bitTest(val, 1))        // test bit one

    val = SpHr_bitClear(val, 1)    // clear bit one

endif

Contact: Brian