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.

Additional Information

Status

Meaning

CANSIG_UNUSED

This define holds the coding for the information: 'signal not used'. This status is the default status, before the CAN signal initialization function is called. After the CAN signal initialization, this status remains in the CAN signal interface slots, which is not configured via the configuration structure.

CANSIG_UNCHANGED

This define holds the coding for the information: 'signal is unchanged'. This status will be set, after a signal access with CanSigRead().

CANSIG_UPDATED

This define holds the coding for the information: 'signal is updated'. This status will be set, after a signal write access with CanSigWrite() - independent from the signal value.

CANSIG_CHANGED

This define holds the coding for the information: 'signal is changed'. This status will be set, when a CanSigWrite() access changes the value of the signal.

CANSIG_ERROR

This define holds the coding for the information: 'signal error'.