C -- struct kerdes

Fuzesi Arnold arno at externet.hu
Wed Nov 17 03:06:13 CET 2004


IAR alatt uC-re pl igy:

> typedef struct  {
>            unsigned char a;
>            unsigned char b;
>            unsigned int   d;
>                   } ITEM;
>
> __flash const ITEM Items[1000] = ...........................
>
> ITEM *pITEM;

elérni pedig igy tudod legegyszerűbben:
temp=pITEM->a;

Milyen fordito amugy?

Arnold
----- Original Message ----- 
From: "hg12345" <hg12345 at freemail.hu>
To: <elektro at tesla.hu>
Sent: Wednesday, November 17, 2004 1:50 AM
Subject: C -- struct kerdes


> Udv,
> hogy tudom ravenni a C forditot, hogy egy struktura tombot
> kozvetlenul programmemoriabol kezeljen es ne olvassa be RAM
> teruletre., mert  biztos nem fer el RAM-ban :-()
> pl.:
> struct ITEM {
>            unsigned char a;
>            unsigned char b;
>            unsigned int   d;
>                   };
>
> const struct ITEM Items[1000] = ...........................
>
> const struct ITEM *pITEM;
>
> elvileg mukodni kellene, de nem sikerult leforditani, mit hibaztam el?
>       Elore is kosz
>                                 HG
>
> -----------------------------------
>  Szponzorunk: http://tonerbolt.hu/




More information about the Elektro mailing list