Gast
#979482
Also egal wie ich es anstelle mein Compiler bringt immer wieder Fehler:
typedef struct _ST_A1
{
union
{
uint16 analog1;
uint16 analog2;
}un;
uni16 Summe;
} ST_A1
Diese Struktur möcht ich gerne einer Funktion übergeben:
typedef struct _ST_A1main
{
union
{
uint16 analog1;
uint16 analog2;
}un;
uni16 Summe;
} ST_A1main
Funktionsaufruf:
copy((*void)&ST_A1);
void copy(ST_A1_main* pst_A1main)
{
ST_A1main = pst_A1main;
}
Jedoch wird der Inhalt nicht kopiert?
Besten Dank
Hans