Search:

Type: Posts; User: dan56965

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    5,444

    How to pass locations of bit-field items?

    {
    struct input_data
    {
    unsigned char gp1:1;
    unsigned char gp2:1;
    unsigned char gp3:1;
    unsigned char gp4:1;
    unsigned char gp5:1;
    unsigned char gp6:1;
    ...
  2. damn, posted the wrong thing there... it should...

    damn, posted the wrong thing there... it should have read like this:





    union {
    struct byte_values
    {
    unsigned char...
  3. Hey, just thought I'd add this for the sake of...

    Hey, just thought I'd add this for the sake of future searchers....

    I read about adding undeclared bits in a bit-field, to allow for limited container size.

    This now works for me without...
  4. Salem, Matsp - Thanks for the replies guys......

    Salem, Matsp - Thanks for the replies guys... you've been a great help.

    Defining as long seems to fix it, athough based on what you've said, I'll have a stab at doing it the bit manipulation...
  5. Selecting bits with Unions.... Not working; please help!!

    Hi, I'm struggling with selecting bits using structures inside unions.

    I'm trying to convert an array of integers into a format suited to output on various chip pins.

    As it stands, I have 8...
Results 1 to 5 of 5