CANopenNode
CANopen protocol stack
Data Structures | Macros | Functions
CO_TIME.h File Reference

CANopen Time-stamp protocol. More...

#include "301/CO_driver.h"
#include "301/CO_ODinterface.h"
#include "301/CO_NMT_Heartbeat.h"
+ Include dependency graph for CO_TIME.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CO_TIME_t
 TIME producer and consumer object. More...
 

Macros

#define CO_TIME_MSG_LENGTH   6
 Length of the TIME message.
 

Functions

CO_ReturnError_t CO_TIME_init (CO_TIME_t *TIME, OD_entry_t *OD_1012_cobIdTimeStamp, CO_CANmodule_t *CANdevRx, uint16_t CANdevRxIdx, CO_CANmodule_t *CANdevTx, uint16_t CANdevTxIdx, uint32_t *errInfo)
 Initialize TIME object. More...
 
void CO_TIME_initCallbackPre (CO_TIME_t *TIME, void *object, void(*pFunctSignalPre)(void *object))
 Initialize TIME callback function. More...
 
static void CO_TIME_set (CO_TIME_t *TIME, uint32_t ms, uint16_t days, uint32_t producerInterval_ms)
 Set current time. More...
 
bool_t CO_TIME_process (CO_TIME_t *TIME, bool_t NMTisPreOrOperational, uint32_t timeDifference_us)
 Process TIME object. More...
 

Detailed Description

CANopen Time-stamp protocol.

Author
Julien PEYREGNE

This file is part of CANopenNode, an opensource CANopen Stack. Project home page is https://github.com/CANopenNode/CANopenNode. For more information on CANopen see http://www.can-cia.org/.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.