AnsweredAssumed Answered

reading two bits

Question asked by mohamed on Aug 18, 2009
Latest reply on Aug 19, 2009 by AndyC

hello

 

i am using a ADSP-TS201 and i developed a special macros to be able to test the bits if it is high or low

 

the syntax of this macro is;

 

#define BITMASK(sysreg,bit) __builtin_sysreg_read(sysreg)&(1<<bit)

and it worked very good with me

 

but if i need to know the value of two bits together for example like the RSTAT bits in LRSTATx register to know the status of the buffer register how can this be done

Outcomes