Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

CANSIG_DATA

Description

This structure contains the current status informations for a signal.

Members


typedef struct {
 CPU_INT16U    Id;
 CPU_INT08U    Status;
 CANSIG_VAL_T  Value;
 CPU_INT32U    TimeStamp;
 CANSIG_PARA  *Cfg;
 void         *Next;
} CANSIG_DATA;

Member

Meaning

Id

The unique signal identifier.

Status

The current status of the signal.

Value

The current value of the signal.

 

Note: The type of the value CANSIG_VAL_T depends on the configuration setting CANSIG_MAX_WIDTH

TimeStamp

Timestamp of last received signal.

 

Note: The signal will be timestamped when a message is written to the signal layer with function CanMsgWrite(..). The time for the timestamp is received from a timer of the underlying OS and therefore has the resolution of the OS timer.

Cfg

The pointer to the corresponding CAN signal parameters.

Next

The pointer to the next signal in the signal list.

...