A
Alessio
Hi,
I'm wondering if I want to check if a bit is not set,
the following statements are valid:
/* check if bit is not set */
if ( !(MASK & BIT_TO_CHECK) )
{
/* do something */
}
and
/* check if bit is not set */
if ( MASK & ~BIT_TO_CHECK )
{
/* do something */
}
Thank you,
Alessio
I'm wondering if I want to check if a bit is not set,
the following statements are valid:
/* check if bit is not set */
if ( !(MASK & BIT_TO_CHECK) )
{
/* do something */
}
and
/* check if bit is not set */
if ( MASK & ~BIT_TO_CHECK )
{
/* do something */
}
Thank you,
Alessio