• STM32F407 Ethernet inicialization problem with Uvision4
    Hi, I am using STM32F407 with uvision4, RL-TCPnet from keil and I have a problem in the Ethernet inicialization. When I turn on the PC and turn on the board at the same time the Ethernet doesn...
  • 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...
  • Struct in union
    Hi I have some problems with struct inside a union This is my code. union{ unsigned char id_byte[2]; struct { unsigned char DLC:4; unsigned char RTR:1; unsigned int identifier:11; }del_element;...
  • The length of struct
    Hi, I define a struct like below: typedef struct { unsigned type :6; unsigned delete :1; unsigned mask :1; }UnitType; I think the length of this struct is 1 byte, but to my surprise,...
  • 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...