4 Replies Latest reply on Feb 20, 2015 3:21 PM by user_14586677

    directly read /set bits values in ControlReg and StatusReg

    user_342122993

      Hi,

         

      I need to access individual bit values of ControlReg and StatusReg. For that I typically do:

         

      Bit_0 = (StatusReg_1_Status) & 0x01;

         

      Bit_1 = (StatusReg_1_Status >>1) & 0x01;

         

      Bit_2 = (StatusReg_1_Status >>2) & 0x01;

         

      ....

         

       

         

      Is there any better way to directly  read/set individual bits in Status / Control registers?

         

      regards,

         

      odissey1