CANopenNode
CANopen protocol stack
|
CANopen Synchronisation protocol. More...
Go to the source code of this file.
Data Structures | |
struct | CO_SYNC_t |
SYNC producer and consumer object. More... | |
Enumerations | |
enum | CO_SYNC_status_t { CO_SYNC_NONE = 0 , CO_SYNC_RX_TX = 1 , CO_SYNC_PASSED_WINDOW = 2 } |
Return value for CO_SYNC_process. More... | |
Functions | |
CO_ReturnError_t | CO_SYNC_init (CO_SYNC_t *SYNC, CO_EM_t *em, OD_entry_t *OD_1005_cobIdSync, OD_entry_t *OD_1006_commCyclePeriod, OD_entry_t *OD_1007_syncWindowLen, OD_entry_t *OD_1019_syncCounterOvf, CO_CANmodule_t *CANdevRx, uint16_t CANdevRxIdx, CO_CANmodule_t *CANdevTx, uint16_t CANdevTxIdx, uint32_t *errInfo) |
Initialize SYNC object. | |
void | CO_SYNC_initCallbackPre (CO_SYNC_t *SYNC, void *object, void(*pFunctSignalPre)(void *object)) |
Initialize SYNC callback function. | |
static CO_ReturnError_t | CO_SYNCsend (CO_SYNC_t *SYNC) |
Send SYNC message. | |
CO_SYNC_status_t | CO_SYNC_process (CO_SYNC_t *SYNC, bool_t NMTisPreOrOperational, uint32_t timeDifference_us, uint32_t *timerNext_us) |
Process SYNC communication. | |
CANopen Synchronisation protocol.
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.