Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
datatypes.c@0:230c10b228ea, 2011-10-07 (annotated)
- Committer:
- sblair
- Date:
- Fri Oct 07 13:41:08 2011 +0000
- Revision:
- 0:230c10b228ea
- Child:
- 1:9399d44c2b1a
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sblair | 0:230c10b228ea | 1 | #include "ctypes.h" |
sblair | 0:230c10b228ea | 2 | #include "datatypes.h" |
sblair | 0:230c10b228ea | 3 | #include "ied.h" |
sblair | 0:230c10b228ea | 4 | #include <stdlib.h> |
sblair | 0:230c10b228ea | 5 | |
sblair | 0:230c10b228ea | 6 | |
sblair | 0:230c10b228ea | 7 | |
sblair | 0:230c10b228ea | 8 | |
sblair | 0:230c10b228ea | 9 | void init_myAnalogValue(struct myAnalogValue *myAnalogValue) { |
sblair | 0:230c10b228ea | 10 | myAnalogValue->f = 1.024; |
sblair | 0:230c10b228ea | 11 | } |
sblair | 0:230c10b228ea | 12 | void init_ScaledValueConfig(struct ScaledValueConfig *ScaledValueConfig) { |
sblair | 0:230c10b228ea | 13 | } |
sblair | 0:230c10b228ea | 14 | void init_myVector(struct myVector *myVector) { |
sblair | 0:230c10b228ea | 15 | } |
sblair | 0:230c10b228ea | 16 | void init_simpleVector(struct simpleVector *simpleVector) { |
sblair | 0:230c10b228ea | 17 | } |
sblair | 0:230c10b228ea | 18 | void init_myMod(struct myMod *myMod) { |
sblair | 0:230c10b228ea | 19 | } |
sblair | 0:230c10b228ea | 20 | void init_myHealth(struct myHealth *myHealth) { |
sblair | 0:230c10b228ea | 21 | } |
sblair | 0:230c10b228ea | 22 | void init_myBeh(struct myBeh *myBeh) { |
sblair | 0:230c10b228ea | 23 | } |
sblair | 0:230c10b228ea | 24 | void init_myINS(struct myINS *myINS) { |
sblair | 0:230c10b228ea | 25 | } |
sblair | 0:230c10b228ea | 26 | void init_myLPL(struct myLPL *myLPL) { |
sblair | 0:230c10b228ea | 27 | myLPL->ldNs = (CTYPE_VISSTRING255) malloc(18); |
sblair | 0:230c10b228ea | 28 | strncpy(myLPL->ldNs, "IEC61850-7-4:2003\0", 18); |
sblair | 0:230c10b228ea | 29 | myLPL->configRev = (CTYPE_VISSTRING255) malloc(9); |
sblair | 0:230c10b228ea | 30 | strncpy(myLPL->configRev, "Rev 3.45\0", 9); |
sblair | 0:230c10b228ea | 31 | } |
sblair | 0:230c10b228ea | 32 | void init_myDPL(struct myDPL *myDPL) { |
sblair | 0:230c10b228ea | 33 | myDPL->vendor = (CTYPE_VISSTRING255) malloc(13); |
sblair | 0:230c10b228ea | 34 | strncpy(myDPL->vendor, "myVendorName\0", 13); |
sblair | 0:230c10b228ea | 35 | myDPL->hwRev = (CTYPE_VISSTRING255) malloc(9); |
sblair | 0:230c10b228ea | 36 | strncpy(myDPL->hwRev, "Rev 1.23\0", 9); |
sblair | 0:230c10b228ea | 37 | } |
sblair | 0:230c10b228ea | 38 | void init_myPos(struct myPos *myPos) { |
sblair | 0:230c10b228ea | 39 | } |
sblair | 0:230c10b228ea | 40 | void init_mySPS(struct mySPS *mySPS) { |
sblair | 0:230c10b228ea | 41 | } |
sblair | 0:230c10b228ea | 42 | void init_myMV(struct myMV *myMV) { |
sblair | 0:230c10b228ea | 43 | } |
sblair | 0:230c10b228ea | 44 | void init_simpleMV(struct simpleMV *simpleMV) { |
sblair | 0:230c10b228ea | 45 | } |
sblair | 0:230c10b228ea | 46 | void init_simpleCMV(struct simpleCMV *simpleCMV) { |
sblair | 0:230c10b228ea | 47 | } |
sblair | 0:230c10b228ea | 48 | void init_simpleWYE(struct simpleWYE *simpleWYE) { |
sblair | 0:230c10b228ea | 49 | } |
sblair | 0:230c10b228ea | 50 | void init_myCMV(struct myCMV *myCMV) { |
sblair | 0:230c10b228ea | 51 | } |
sblair | 0:230c10b228ea | 52 | void init_mySEQ(struct mySEQ *mySEQ) { |
sblair | 0:230c10b228ea | 53 | } |
sblair | 0:230c10b228ea | 54 | void init_mySAV(struct mySAV *mySAV) { |
sblair | 0:230c10b228ea | 55 | } |
sblair | 0:230c10b228ea | 56 | void init_simpleSAV(struct simpleSAV *simpleSAV) { |
sblair | 0:230c10b228ea | 57 | } |
sblair | 0:230c10b228ea | 58 | void init_datatypes() { |
sblair | 0:230c10b228ea | 59 | init_myLPL(&E1Q1SB1.S1.C1.LLN0.NamPlt); |
sblair | 0:230c10b228ea | 60 | init_myLPL(&E1Q1SB1.S1.C1.LLN0.NamPlt); |
sblair | 0:230c10b228ea | 61 | init_myLPL(&E1Q1SB1.S1.C1.LLN0.NamPlt); |
sblair | 0:230c10b228ea | 62 | init_myLPL(&E1Q1SB1.S1.C1.LLN0.NamPlt); |
sblair | 0:230c10b228ea | 63 | init_myAnalogValue(&E1Q1SB1.S1.C1.RMXU_1.AmpLocPhsA.instMag); |
sblair | 0:230c10b228ea | 64 | init_myAnalogValue(&E1Q1SB1.S1.C1.RMXU_1.AmpLocPhsB.instMag); |
sblair | 0:230c10b228ea | 65 | init_myAnalogValue(&E1Q1SB1.S1.C1.RMXU_1.AmpLocPhsC.instMag); |
sblair | 0:230c10b228ea | 66 | init_myLPL(&E1Q1SB1.S1.C1.LPHD_1.NamPlt); |
sblair | 0:230c10b228ea | 67 | init_myDPL(&E1Q1SB1.S1.C1.LPHD_1.PhyNam); |
sblair | 0:230c10b228ea | 68 | init_myAnalogValue(&E1Q1SB1.S1.C1.MMXU_1.Amps.mag); |
sblair | 0:230c10b228ea | 69 | init_myAnalogValue(&E1Q1SB1.S1.C1.MMXU_1.Volts.mag); |
sblair | 0:230c10b228ea | 70 | init_myAnalogValue(&E1Q1SB1.S1.C1.TVTR_1.Vol.instMag); |
sblair | 0:230c10b228ea | 71 | init_myLPL(&D1Q1SB4.S1.C1.LLN0.NamPlt); |
sblair | 0:230c10b228ea | 72 | init_myLPL(&D1Q1SB4.S1.C1.LLN0.NamPlt); |
sblair | 0:230c10b228ea | 73 | init_myLPL(&D1Q1SB4.S1.C1.LPHD_1.NamPlt); |
sblair | 0:230c10b228ea | 74 | init_myDPL(&D1Q1SB4.S1.C1.LPHD_1.PhyNam); |
sblair | 0:230c10b228ea | 75 | init_myLPL(&D1Q1SB4.S1.C1.RSYN_1.NamPlt); |
sblair | 0:230c10b228ea | 76 | } |
sblair | 0:230c10b228ea | 77 |