CANopenNode
CANopen protocol stack
Loading...
Searching...
No Matches
CO_TIME.h File Reference

CANopen Time-stamp protocol. More...

+ 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   6U
 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.
 
void CO_TIME_initCallbackPre (CO_TIME_t *TIME, void *object, void(*pFunctSignalPre)(void *object))
 Initialize TIME callback function.
 
static void CO_TIME_set (CO_TIME_t *TIME, uint32_t ms, uint16_t days, uint32_t producerInterval_ms)
 Set current time.
 
bool_t CO_TIME_process (CO_TIME_t *TIME, bool_t NMTisPreOrOperational, uint32_t timeDifference_us)
 Process TIME object.
 

Detailed Description

CANopen Time-stamp protocol.

Author
Julien PEYREGNE

This file is part of https://github.com/CANopenNode/CANopenNode, a CANopen Stack.

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.