⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 systemvars.p1

📁 cypress cy3721做的外部无线结点。感知温度后将温度值反给中心结点。
💻 P1
📖 第 1 页 / 共 3 页
字号:
"22
[s S10 `i 1 `i 1 ]
[n S10 . Threshold Hysteresis ]
[v _SETPOINT_ELEM_CONST_STRUC `S10 1 t ]
[; ;SetPointRegion.h: 18: typedef struct

[; ;SetPointRegion.h: 19: {

[; ;SetPointRegion.h: 20: int Threshold;

[; ;SetPointRegion.h: 21: int Hysteresis;

[; ;SetPointRegion.h: 22: } SETPOINT_ELEM_CONST_STRUC;

"29
[s S11 `*CS9 1 `uc 1 `*uc 1 ]
[n S11 . SetPointArray SetPointCount pOldValue ]
[v _SETPOINT_REGION_PB `S11 1 t ]
[; ;SetPointRegion.h: 24: typedef struct

[; ;SetPointRegion.h: 25: {

[; ;SetPointRegion.h: 26: SETPOINT_ELEM_STRUC const * SetPointArray;

[; ;SetPointRegion.h: 27: BYTE SetPointCount;

[; ;SetPointRegion.h: 28: BYTE * pOldValue;

[; ;SetPointRegion.h: 29: } SETPOINT_REGION_PB;

[; ;SetPointRegion.h: 31: BYTE SetPointRegion( SETPOINT_REGION_PB const *, int);

"12 ./TableLookup.h
[s S12 `*uc 1 `i 1 ]
[n S12 . pInputVar multiplier ]
[v _TABLE_LOOKUP_INPUT `S12 1 t ]
[; ;TableLookup.h: 8: typedef struct

[; ;TableLookup.h: 9: {

[; ;TableLookup.h: 10: BYTE * pInputVar;

[; ;TableLookup.h: 11: int multiplier;

[; ;TableLookup.h: 12: } TABLE_LOOKUP_INPUT;

"20
[s S13 `*CS12 1 `*Cuc 1 `uc 1 `uc 1 ]
[n S13 . InputList LookUpTable InputListCount LookUpTableSize ]
[v _TABLE_LOOKUP_PB `S13 1 t ]
[; ;TableLookup.h: 14: typedef struct

[; ;TableLookup.h: 15: {

[; ;TableLookup.h: 16: TABLE_LOOKUP_INPUT const * InputList;

[; ;TableLookup.h: 17: BYTE const * LookUpTable;

[; ;TableLookup.h: 18: BYTE InputListCount;

[; ;TableLookup.h: 19: BYTE LookUpTableSize;

[; ;TableLookup.h: 20: } TABLE_LOOKUP_PB;

[; ;TableLookup.h: 22: BYTE TableLookUp( TABLE_LOOKUP_PB const *);

[; ;CMXSystemFunction.h: 13: extern BYTE SetPointRegion(SETPOINT_REGION_PB const *, int);

[; ;CMXSystemFunction.h: 14: extern BYTE TableLookup(TABLE_LOOKUP_PB const * );

[; ;CMXSystemFunction.h: 17: extern SETPOINT_REGION_PB const pse_TempRange_SetPointRegion;

[; ;CMXSystemFunction.h: 18: extern TABLE_LOOKUP_PB const pse_Buzzer_TableLookup;

"25 ./SystemConst.h
[s S15 `CS10 1 `CS10 1 `CS10 1 `CS10 1 `CS10 1 `CS10 1 `CS10 1 `CS10 1 ]
[n S15 . SetPointParam0 SetPointParam1 SetPointParam2 SetPointParam3 SetPointParam4 SetPointParam5 SetPointParam6 SetPointParam7 ]
"30
[s S16 `uc -> 2 `i ]
[n S16 . title ]
"31
[s S14 `S15 1 `S16 1 ]
[n S14 . pse_TempRange_SetPointRegion ReserveBlock ]
[v _SYSTEM_CONSTANT_STRUC `S14 1 t ]
[; ;SystemConst.h: 15: typedef struct

[; ;SystemConst.h: 16: {

[; ;SystemConst.h: 17: struct { SETPOINT_ELEM_CONST_STRUC const SetPointParam0;

[; ;SystemConst.h: 18: SETPOINT_ELEM_CONST_STRUC const SetPointParam1;

[; ;SystemConst.h: 19: SETPOINT_ELEM_CONST_STRUC const SetPointParam2;

[; ;SystemConst.h: 20: SETPOINT_ELEM_CONST_STRUC const SetPointParam3;

[; ;SystemConst.h: 21: SETPOINT_ELEM_CONST_STRUC const SetPointParam4;

[; ;SystemConst.h: 22: SETPOINT_ELEM_CONST_STRUC const SetPointParam5;

[; ;SystemConst.h: 23: SETPOINT_ELEM_CONST_STRUC const SetPointParam6;

[; ;SystemConst.h: 24: SETPOINT_ELEM_CONST_STRUC const SetPointParam7;

[; ;SystemConst.h: 25: } pse_TempRange_SetPointRegion;

[; ;SystemConst.h: 27: struct

[; ;SystemConst.h: 28: {

[; ;SystemConst.h: 29: char title[2];

[; ;SystemConst.h: 30: } ReserveBlock;

[; ;SystemConst.h: 31: } SYSTEM_CONSTANT_STRUC;

"12 ./systemvars.c
[v _SystemVars `S7 1 e ]
[; ;systemvars.c: 12: SYSTEM_VARS_STRUC SystemVars;

"15
[v _pse_TempRange_TransferFunction `(v 1 ef ]
{
[; ;systemvars.c: 14: void pse_TempRange_TransferFunction()

[; ;systemvars.c: 15: {

[e :U _pse_TempRange_TransferFunction ]
[f ]
[; ;systemvars.c: 16: SystemVars.ReadOnlyVars.pse_TempRange = SetPointRegion(&pse_TempRange_SetPointRegion, SystemVars.ReadOnlyVars.pse_Temperature_Temp);

"31 ./SetPointRegion.h
[v _SetPointRegion `(uc 0 ef2`*CS11`i ]
"17 ./CMXSystemFunction.h
[v _pse_TempRange_SetPointRegion `CS11 0 e ]
"16 ./systemvars.c
[e = . . _SystemVars 0 5 ( _SetPointRegion (2
 , &U _pse_TempRange_SetPointRegion . . _SystemVars 0 6 ]
"19
[; ;systemvars.c: 19: }

[e :UE 17 ]
}
"22
[v _pse_BlueLED_TransferFunction `(v 1 ef ]
{
[; ;systemvars.c: 21: void pse_BlueLED_TransferFunction()

[; ;systemvars.c: 22: {

[e :U _pse_BlueLED_TransferFunction ]
[f ]
"23
[v _outputIndex `uc 1 a ]
[; ;systemvars.c: 23: BYTE outputIndex = SystemVars.ReadOnlyVars.pse_BlueLED;

[e = _outputIndex . . _SystemVars 0 0 ]
[; ;systemvars.c: 25: if (SystemVars.ReadOnlyVars.pse_TempRange==0)

"25
[e $ ! == -> . . _SystemVars 0 5 `i -> 0 `i 19  ]
[; ;systemvars.c: 26: {

"26
{
[; ;systemvars.c: 27: outputIndex = 1;

"27
[e = _outputIndex -> -> 1 `i `uc ]
"28
}
[; ;systemvars.c: 28: }

[e $U 20  ]
"29
[e :U 19 ]
[; ;systemvars.c: 29: else if (SystemVars.ReadOnlyVars.pse_TempRange==1)

[e $ ! == -> . . _SystemVars 0 5 `i -> 1 `i 21  ]
[; ;systemvars.c: 30: {

"30
{
[; ;systemvars.c: 31: outputIndex = 1;

"31
[e = _outputIndex -> -> 1 `i `uc ]
"32
}
[; ;systemvars.c: 32: }

[e $U 22  ]
"33
[e :U 21 ]
[; ;systemvars.c: 33: else if ((SystemVars.ReadOnlyVars.pse_TempRange==2) && (SystemVars.ReadOnlyVars.pse_SyncedBlinkTimer==1))

[e $ ! && == -> . . _SystemVars 0 5 `i -> 2 `i == -> . . _SystemVars 0 4 `i -> 1 `i 23  ]
[; ;systemvars.c: 34: {

"34
{
[; ;systemvars.c: 35: outputIndex = 1;

"35
[e = _outputIndex -> -> 1 `i `uc ]
"36
}
[; ;systemvars.c: 36: }

[e $U 24  ]
"37
[e :U 23 ]
[; ;systemvars.c: 37: else if ((SystemVars.ReadOnlyVars.pse_TempRange==3) && (SystemVars.ReadOnlyVars.pse_SyncedBlinkTimer==1))

[e $ ! && == -> . . _SystemVars 0 5 `i -> 3 `i == -> . . _SystemVars 0 4 `i -> 1 `i 25  ]
[; ;systemvars.c: 38: {

"38
{
[; ;systemvars.c: 39: outputIndex = 1;

"39
[e = _outputIndex -> -> 1 `i `uc ]
"40
}
[; ;systemvars.c: 40: }

[e $U 26  ]
"41
[e :U 25 ]
[; ;systemvars.c: 41: else if (1)

[e $ ! != -> 1 `i -> 0 `i 27  ]
[; ;systemvars.c: 42: {

"42
{
[; ;systemvars.c: 43: outputIndex = 0;

"43
[e = _outputIndex -> -> 0 `i `uc ]
"44
}
[e :U 27 ]
"46
[e :U 26 ]
[e :U 24 ]
[e :U 22 ]
[e :U 20 ]
[; ;systemvars.c: 44: }

[; ;systemvars.c: 46: SystemVars.ReadOnlyVars.pse_BlueLED = outputIndex;

[e = . . _SystemVars 0 0 _outputIndex ]
"49
[; ;systemvars.c: 49: }

[e :UE 18 ]
}
"52
[v _pse_Buzzer_TransferFunction `(v 1 ef ]
{
[; ;systemvars.c: 51: void pse_Buzzer_TransferFunction()

[; ;systemvars.c: 52: {

[e :U _pse_Buzzer_TransferFunction ]
[f ]
"53
[v _outputIndex `uc 1 a ]
[; ;systemvars.c: 53: BYTE outputIndex;

[; ;systemvars.c: 55: outputIndex = TableLookup(&pse_Buzzer_TableLookup);

"14 ./CMXSystemFunction.h
[v _TableLookup `(uc 0 ef1`*CS13 ]
"18
[v _pse_Buzzer_TableLookup `CS13 0 e ]
"55 ./systemvars.c
[e = _outputIndex ( _TableLookup (1
 &U _pse_Buzzer_TableLookup ]
[; ;systemvars.c: 57: if (outputIndex == 0)

"57
[e $ ! == -> _outputIndex `i -> 0 `i 29  ]
[; ;systemvars.c: 58: {

"58
{
[; ;systemvars.c: 59: SystemVars.ReadOnlyVars.pse_Buzzer = 0;

"59
[e = . . _SystemVars 0 1 -> -> 0 `i `uc ]
"60
}
[; ;systemvars.c: 60: }

[e $U 30  ]
"61
[e :U 29 ]
[; ;systemvars.c: 61: else if (outputIndex == 1)

[e $ ! == -> _outputIndex `i -> 1 `i 31  ]
[; ;systemvars.c: 62: {

"62
{
[; ;systemvars.c: 63: SystemVars.ReadOnlyVars.pse_Buzzer = 50;

"63
[e = . . _SystemVars 0 1 -> -> 50 `i `uc ]
"64
}
[e :U 31 ]
"66
[e :U 30 ]
[; ;systemvars.c: 64: }

[; ;systemvars.c: 66: }

[e :UE 28 ]
}
"69
[v _pse_GreenLED_TransferFunction `(v 1 ef ]
{
[; ;systemvars.c: 68: void pse_GreenLED_TransferFunction()

[; ;systemvars.c: 69: {

[e :U _pse_GreenLED_TransferFunction ]
[f ]
"70
[v _outputIndex `uc 1 a ]
[; ;systemvars.c: 70: BYTE outputIndex = SystemVars.ReadOnlyVars.pse_GreenLED;

[e = _outputIndex . . _SystemVars 0 2 ]
[; ;systemvars.c: 72: if (SystemVars.ReadOnlyVars.pse_TempRange==4)

"72
[e $ ! == -> . . _SystemVars 0 5 `i -> 4 `i 33  ]
[; ;systemvars.c: 73: {

"73
{
[; ;systemvars.c: 74: outputIndex = 1;

"74
[e = _outputIndex -> -> 1 `i `uc ]
"75
}
[; ;systemvars.c: 75: }

[e $U 34  ]
"76
[e :U 33 ]
[; ;systemvars.c: 76: else if ((SystemVars.ReadOnlyVars.pse_TempRange==3) && (SystemVars.ReadOnlyVars.pse_SyncedBlinkTimer==1))

[e $ ! && == -> . . _SystemVars 0 5 `i -> 3 `i == -> . . _SystemVars 0 4 `i -> 1 `i 35  ]
[; ;systemvars.c: 77: {

"77
{
[; ;systemvars.c: 78: outputIndex = 1;

"78
[e = _outputIndex -> -> 1 `i `uc ]
"79
}
[; ;systemvars.c: 79: }

[e $U 36  ]
"80
[e :U 35 ]
[; ;systemvars.c: 80: else if ((SystemVars.ReadOnlyVars.pse_TempRange==5) && (SystemVars.ReadOnlyVars.pse_SyncedBlinkTimer==1))

[e $ ! && == -> . . _SystemVars 0 5 `i -> 5 `i == -> . . _SystemVars 0 4 `i -> 1 `i 37  ]
[; ;systemvars.c: 81: {

"81
{
[; ;systemvars.c: 82: outputIndex = 1;

"82
[e = _outputIndex -> -> 1 `i `uc ]
"83
}
[; ;systemvars.c: 83: }

[e $U 38  ]
"84
[e :U 37 ]
[; ;systemvars.c: 84: else if (1)

[e $ ! != -> 1 `i -> 0 `i 39  ]
[; ;systemvars.c: 85: {

"85
{
[; ;systemvars.c: 86: outputIndex = 0;

"86
[e = _outputIndex -> -> 0 `i `uc ]
"87
}
[e :U 39 ]
"89
[e :U 38 ]
[e :U 36 ]
[e :U 34 ]
[; ;systemvars.c: 87: }

[; ;systemvars.c: 89: SystemVars.ReadOnlyVars.pse_GreenLED = outputIndex;

[e = . . _SystemVars 0 2 _outputIndex ]
"92
[; ;systemvars.c: 92: }

[e :UE 32 ]
}
"95
[v _pse_RedLED_TransferFunction `(v 1 ef ]
{
[; ;systemvars.c: 94: void pse_RedLED_TransferFunction()

[; ;systemvars.c: 95: {

[e :U _pse_RedLED_TransferFunction ]
[f ]
"96
[v _outputIndex `uc 1 a ]
[; ;systemvars.c: 96: BYTE outputIndex = SystemVars.ReadOnlyVars.pse_RedLED;

[e = _outputIndex . . _SystemVars 0 3 ]
[; ;systemvars.c: 98: if (SystemVars.ReadOnlyVars.pse_TempRange==8)

"98
[e $ ! == -> . . _SystemVars 0 5 `i -> 8 `i 41  ]
[; ;systemvars.c: 99: {

"99
{
[; ;systemvars.c: 100: outputIndex = 1;

"100
[e = _outputIndex -> -> 1 `i `uc ]
"101
}
[; ;systemvars.c: 101: }

[e $U 42  ]
"102
[e :U 41 ]
[; ;systemvars.c: 102: else if (SystemVars.ReadOnlyVars.pse_TempRange==7)

[e $ ! == -> . . _SystemVars 0 5 `i -> 7 `i 43  ]
[; ;systemvars.c: 103: {

"103
{
[; ;systemvars.c: 104: outputIndex = 1;

"104
[e = _outputIndex -> -> 1 `i `uc ]
"105
}
[; ;systemvars.c: 105: }

[e $U 44  ]
"106
[e :U 43 ]
[; ;systemvars.c: 106: else if ((SystemVars.ReadOnlyVars.pse_TempRange==6) && (SystemVars.ReadOnlyVars.pse_SyncedBlinkTimer==1))

[e $ ! && == -> . . _SystemVars 0 5 `i -> 6 `i == -> . . _SystemVars 0 4 `i -> 1 `i 45  ]
[; ;systemvars.c: 107: {

"107
{
[; ;systemvars.c: 108: outputIndex = 1;

"108
[e = _outputIndex -> -> 1 `i `uc ]
"109
}
[; ;systemvars.c: 109: }

[e $U 46  ]
"110
[e :U 45 ]
[; ;systemvars.c: 110: else if ((SystemVars.ReadOnlyVars.pse_TempRange==5) && (SystemVars.ReadOnlyVars.pse_SyncedBlinkTimer==1))

[e $ ! && == -> . . _SystemVars 0 5 `i -> 5 `i == -> . . _SystemVars 0 4 `i -> 1 `i 47  ]
[; ;systemvars.c: 111: {

"111
{
[; ;systemvars.c: 112: outputIndex = 1;

"112
[e = _outputIndex -> -> 1 `i `uc ]
"113
}
[; ;systemvars.c: 113: }

[e $U 48  ]
"114
[e :U 47 ]
[; ;systemvars.c: 114: else if (1)

[e $ ! != -> 1 `i -> 0 `i 49  ]
[; ;systemvars.c: 115: {

"115
{
[; ;systemvars.c: 116: outputIndex = 0;

"116
[e = _outputIndex -> -> 0 `i `uc ]
"117
}
[e :U 49 ]
"119
[e :U 48 ]
[e :U 46 ]
[e :U 44 ]
[e :U 42 ]
[; ;systemvars.c: 117: }

[; ;systemvars.c: 119: SystemVars.ReadOnlyVars.pse_RedLED = outputIndex;

[e = . . _SystemVars 0 3 _outputIndex ]
"122
[; ;systemvars.c: 122: }

[e :UE 40 ]
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -