Search:

Type: Posts; User: jaarestad

Search: Search took 0.01 seconds.

  1. I would like to be able to access each of the bit...

    I would like to be able to access each of the bit values as a field.

    Actually, this works well.


    #define BIT(val, bit) ((val & (1 << bit)) >> bit)

    int main(int argc, char *argv[])
    {
    ...
  2. Puzzled about the size of my data structure

    Hi, I have created the following data type...


    typedef struct tagLFSRType {
    union {
    struct {
    unsigned int bit0 : 1; //
    unsigned int bit1 : 1; //
    ...
Results 1 to 2 of 2