Štruktúra StationPar

typedef struct _StationPar
 {
   HOBJ          spID;            // Id stanice
   HOBJ          spParent;        // Id parenta - linky
   char          spName[65];      // Meno objektu - stanice
   unsigned int  spProtocol;      // Protokol stanice
   KomObjAddress spAdr;           // Adresa stanice
   char          spStaInit[1001]; // Init parametre stanice
   LineParPtr    spLnPar;         // Parametre parenta - linky
   void         *spStVarPar;      // Parametre zavisle od protokolu
   KomUniVal    *spStVal;         // hodnota
 } StationPar;

Štruktúra StationPar definuje parametre objektu typu Stanica. Všetky parametre sú iba na čítanie okrem spStVarPar!

spID

ID (HOBJ) stanice.

spParent

ID (HOBJ) rodiča stanice – linky.

spName

Meno stanice.

spProtocol

#define OEM_Prot1  0x2F
 #define OEM_Prot2  0x30
 #define OEM_Prot3  0x31
 #define OEM_Prot4  0x32
 #define OEM_Prot5  0x33
 #define OEM_Prot6  0x34
 #define OEM_Prot7  0x35
 #define OEM_Prot8  0x36
 #define OEM_Prot9  0x52
 #define OEM_Prot10 0x53
 #define OEM_Prot11 0x54
 #define OEM_Prot12 0x55
 #define OEM_Prot13 0x56
 #define OEM_Prot14 0x57
 #define OEM_Prot15 0x58
 #define OEM_Prot16 0x59

Protokol stanice, konštanta podľa vybraného protokolu OEM_Protocol1 až OEM_Protocol16.

spAdr

Adresa stanice.

spStaInit

Parametre protokolu stanice.

spLnPar

Adresa na parametre parenta stanice – linky.

spStVarPar

Adresa na užívateľskú štruktúru. Sem môže programátor umiestniť pointer na vlastnú štruktúru s pomocnými parametrami pre stanicu.

spPtVal

Adresa na štruktúru KomUniVal – hodnotu stanice.

Napíšte komentár