Rev 1503 | Rev 1511 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1503 | Rev 1504 | ||
|---|---|---|---|
| Line 133... | Line 133... | ||
| 133 | if (diagReportPending) { |
133 | if (diagReportPending) { |
| 134 | StdCan_Msg_t txMsg; |
134 | StdCan_Msg_t txMsg; |
| 135 | StdCan_Set_class(txMsg.Header, CAN_MODULE_CLASS_SNS); |
135 | StdCan_Set_class(txMsg.Header, CAN_MODULE_CLASS_SNS); |
| 136 | StdCan_Set_direction(txMsg.Header, DIRECTIONFLAG_FROM_OWNER); |
136 | StdCan_Set_direction(txMsg.Header, DIRECTIONFLAG_FROM_OWNER); |
| 137 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_SNS_INPUT; |
137 | txMsg.Header.ModuleType = CAN_MODULE_TYPE_SNS_INPUT; |
| 138 | txMsg.Header.ModuleId = |
138 | txMsg.Header.ModuleId = act_protectedOutput_ID; |
| 139 | txMsg.Header.Command = CAN_MODULE_CMD_PHYSICAL_PINSTATUS; |
139 | txMsg.Header.Command = CAN_MODULE_CMD_PHYSICAL_PINSTATUS; |
| 140 | txMsg.Length = 2; |
140 | txMsg.Length = 2; |
| 141 | txMsg.Data[0] = 0; //TODO: add support for more channels |
141 | txMsg.Data[0] = 0; //TODO: add support for more channels |
| 142 | // we follow the standard SNS_INPUT format, but the data corresponds to the "health" rather than physical level |
142 | // we follow the standard SNS_INPUT format, but the data corresponds to the "health" rather than physical level |
| 143 | if (diagState == DIAG_NORMAL) { |
143 | if (diagState == DIAG_NORMAL) { |