Jorge Andres Reyes Alvarez

Want to make a UNION in codewarrior 6.2 DEMOQE128

Discussion created by Jorge Andres Reyes Alvarez on May 6, 2009

I tried this...please help

 

typedef union {
    struct {
    byte PTFD_PTFD7      :1;                                       /* Data Direction for Port D Bit 0 */
    byte PTFD_PTFD6      :1;                                       /* Data Direction for Port D Bit 1 */
    byte PTFD_PTFD5      :1;                                       /* Data Direction for Port D Bit 2 */
    byte PTFD_PTFD4      :1;                                       /* Data Direction for Port D Bit 3 */
    byte PTFD_PTFD3      :1;                                       /* Data Direction for Port D Bit 4 */
    byte PTFD_PTFD2      :1;                                       /* Data Direction for Port D Bit 5 */
    byte PTCD_PTCD6      :1;                                       /* Data Direction for Port D Bit 6 */
    byte PTCD_PTCD7      :1;                                       /* Data Direction for Port D Bit 7 */
  } Bits;
    byte busesito;
} LCD_BUS;

 

doesnt work..

 

i want to make a union for the bus data of my LCD...how tho do it_?

Outcomes