• Bitwise logical AND stores in a bit ....
    Hi, I get a curious result when compiling such a following code : typedef union { unsigned char cCtrlFullByte; struct { unsigned char bEnable : 1; unsigned char cUnused : 7; } cCtrlStruct;...
  • accessing bitwise data in a data buffer
    hi all, iam a new to embedded programming and keil software. i am struck with a problem how to access a bit in a data buffer. the algo i need to implement is data_buf of 32 bits is stored in the...
  • Why the following bitwise & doesn't work?
    unsigned char tp; unsigned char volatile pdata HOSTCFG2 _at_ 0x0020; // HOSTCFG2=0x40 at this point tp=HOSTCFG2 & 0x40; //!!! tp is 0x00 instead of 0x40 which is expected //Corresponding Disassembly...
  • ARMCC: Bitwise Vs half word access
    I was under the impression that the compiler would generate same code for read and write operation on the members of the following structure: typedef struct S32data_t { uint32_t a:16; uint32_t b:16;...
  • transfer the value of one variable to another using bitwise (<<)
    Good morning everyone Forum I have done a lot of programming and proficient using C but this Kile compiler is new to me and very different. it is confusing me. I have a question and need your help...