StationPar structure

typedef struct _StationPar
 {
   HOBJ          spID;           // station Id
   HOBJ          spParent;       // parent Id - lines
   char          spName[32];     // Object name - stations
   unsigned int  spProtocol;     // Station protocol
   KomObjAddress spAdr;          // Station address
   char          spStaInit[200]; // Init station parameters
   LineParPtr    spLnPar;        // Parent parameters
   void         *spStVarPar;     // Parameters dependant on a protocol
   KomUniVal    *spStVal;        // value
 } StationPar;

Structure StationPar defines the parameters of Station type. All the parameters are read-only except the spStVarPar!

spID

Station ID (HOBJ).

spParent

ID (HOBJ) of the station parent (line).

spName

Station name.

spProtocol

Station protocol, the constant according to selected OEM_Protocol1 up to OEM_Protocol16.

#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

spAdr

Station address

spStaInit

Station initialisation parameters.

spLnPar

Address to the parameters of the station parent (line).

spStVarPar

Address to a user's structure. A programmer can place here a pointer to own structure with auxiliary parameters for the station.

spPtVal

Address to a structure KomUniVal (value station).

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .