...
Code Block | ||||
---|---|---|---|---|
| ||||
#include "can_sig.h" enum { [1] /* ---------------- SIGNAL ENUMERATIONS --------------- */ S_NODESTATUS = 0, S_CPULOAD, S_MAX, }; const CANSIG_PARA CanSig[CANSIG_N] = { [2] /* ---------------- SIGNAL NODESTATUS ----------------- */ {CANSIG_UNCHANGED, [3A] /* Initial Status */ 1, [B] /* Width in Bytes */ 0, [C] /* Initial Value */ #if (CANSIG_CALLBACK_EN > 0) StatusChange}, [D] /* Callback Function: User Defined */ #else }, #endif /* ----------------- SIGNAL CPULOAD ------------------- */ {CANSIG_UNCHANGED, [3A] /* Initial Status */ 1, [B] /* Width in Bytes */ 0, [C] /* Initial Value */ #if (CANSIG_CALLBACK_EN > 0) 0} [D] /* No Callback */ #else }, #endif }; |
Message Configuration
Anchor | ||||
---|---|---|---|---|
|
The Message Configuration can be found in can_cfg.c
. However, the "Message Enumerations" are typically found in can_cfg.h
. Please note that CAN Signals must be configured prior to be used in CAN Messages. For more information on CAN Messages click Here.
...