Go to the documentation of this file.
32 #ifndef CO_CONFIG_TIME
33 #define CO_CONFIG_TIME (0)
36 #if ((CO_CONFIG_TIME) & CO_CONFIG_TIME_ENABLE) || defined CO_DOXYGEN
79 #define TIME_MSG_LENGTH 6U
83 unsigned long long ullValue;
88 unsigned reserved2:16;
93 typedef timeOfDay_t TIME_OF_DAY;
94 typedef timeOfDay_t TIME_DIFFERENCE;
122 #if ((CO_CONFIG_TIME) & CO_CONFIG_FLAG_CALLBACK_PRE) || defined CO_DOXYGEN
124 void (*pFunctSignalPre)(
void *object);
166 #if ((CO_CONFIG_TIME) & CO_CONFIG_FLAG_CALLBACK_PRE) || defined CO_DOXYGEN
181 void (*pFunctSignalPre)(
void *
object));
unsigned long int uint32_t
UNSIGNED32 in CANopen (0007h), 32-bit unsigned integer.
Definition: CO_driver.h:155
Interface between CAN hardware and CANopenNode.
void * functSignalObjectPre
From CO_TIME_initCallbackPre() or NULL.
Definition: CO_TIME.h:126
CO_CANtx_t * TXbuff
CAN transmit buffer.
Definition: CO_TIME.h:132
bool_t isProducer
True, if device is TIME producer.
Definition: CO_TIME.h:107
unsigned int uint16_t
UNSIGNED16 in CANopen (0006h), 16-bit unsigned integer.
Definition: CO_driver.h:153
CO_CANmodule_t * CANdevTx
From CO_TIME_init()
Definition: CO_TIME.h:130
void CO_TIME_initCallbackPre(CO_TIME_t *TIME, void *object, void(*pFunctSignalPre)(void *object))
Initialize TIME callback function.
CO_ReturnError_t
Return values of some CANopen functions.
Definition: CO_driver.h:488
unsigned char bool_t
Boolean data type for general use.
Definition: CO_driver.h:141
uint32_t periodTime
TIME period time in [milliseconds].
Definition: CO_TIME.h:111
CO_EM_t * em
From CO_TIME_init()
Definition: CO_TIME.h:100
uint16_t COB_ID
From CO_TIME_init()
Definition: CO_TIME.h:108
uint16_t CANdevRxIdx
From CO_TIME_init()
Definition: CO_TIME.h:129
TIME producer and consumer object.
Definition: CO_TIME.h:99
volatile void * CANrxNew
Variable indicates, if new TIME message received from CAN bus.
Definition: CO_TIME.h:116
CO_ReturnError_t CO_TIME_init(CO_TIME_t *TIME, CO_EM_t *em, CO_SDO_t *SDO, CO_NMT_internalState_t *operatingState, uint32_t COB_ID_TIMEMessage, uint32_t TIMECyclePeriod, CO_CANmodule_t *CANdevRx, uint16_t CANdevRxIdx, CO_CANmodule_t *CANdevTx, uint16_t CANdevTxIdx)
Initialize TIME object.
uint8_t CO_TIME_process(CO_TIME_t *TIME, uint32_t timeDifference_us)
Process TIME communication.
Emergency object.
Definition: CO_Emergency.h:369
CO_NMT_internalState_t
Internal network state of the CANopen node.
Definition: CO_NMT_Heartbeat.h:77
uint32_t periodTimeoutTime
TIME period timeout time in [milliseconds].
Definition: CO_TIME.h:114
bool_t isConsumer
True, if device is TIME consumer.
Definition: CO_TIME.h:104
Complete CAN module object.
Definition: CO_driver.h:319
CO_NMT_internalState_t * operatingState
From CO_TIME_init()
Definition: CO_TIME.h:101
uint16_t CANdevTxIdx
From CO_TIME_init()
Definition: CO_TIME.h:131
uint16_t receiveError
Set to nonzero value, if TIME with wrong data length is received from CAN.
Definition: CO_TIME.h:121
CO_CANmodule_t * CANdevRx
From CO_TIME_init()
Definition: CO_TIME.h:128
Configuration object for CAN transmit message for specific CANopenNode Object.
Definition: CO_driver.h:299
unsigned char uint8_t
UNSIGNED8 in CANopen (0005h), 8-bit unsigned integer.
Definition: CO_driver.h:151
uint32_t timer
Timer for the TIME message in [microseconds].
Definition: CO_TIME.h:119