• Designated initialiser of struct element in C51
    Why designated initialisation not working in C51? How to initialise structure lement? struct fixed { unsigned char a; unsigned char b; }; code struct fixed flash = {.a=0x2, .b=0x3}; Above...
  • Array of struct within struct
    Has anyone defined an array of struct inside another struct with C51? I can find no reference document prohibiting it. Yet, when I try to compile following fragment: #include <stdio.h> struct...
  • Extern struct
    Hi all: I am trying to use data from a structure in different modules ( extern struct), with no success. Here's what I am doing: main.c: #include "main.h" struct my_struct new_struct; void...
  • struct and address
    hello every one, I am trying to use bitfield in my project. i want to assign the port address to the byte which i have created using bitfield. /* following is the code i have tried */ typedef...
  • Struct error
    Hi, I'm trying to port code written for the CROSSWORKS_ARM_COMPILER to C51 and Keil will not accept the following definition: typedef struct _FFS_FILE { DWORD directory_entry_sector; BYTE...