This file is part of the CANopen library; it contains the implementation of the synchronization (SYNC) object functions.
More...
|
static void | co_sync_update (co_sync_t *sync) |
| Updates and (de)activates a SYNC producer/consumer service.
|
|
static co_unsigned32_t | co_1005_dn_ind (co_sub_t *sub, struct co_sdo_req *req, void *data) |
| The download indication function for (all sub-objects of) CANopen object 1005 (COB-ID SYNC message).
|
|
static co_unsigned32_t | co_1006_dn_ind (co_sub_t *sub, struct co_sdo_req *req, void *data) |
| The download indication function for (all sub-objects of) CANopen object 1006 (Communication cycle period).
|
|
static co_unsigned32_t | co_1019_dn_ind (co_sub_t *sub, struct co_sdo_req *req, void *data) |
| The download indication function for (all sub-objects of) CANopen object 1019 (Synchronous counter overflow value).
|
|
static int | co_sync_recv (const struct can_msg *msg, void *data) |
| The CAN receive callback function for a SYNC consumer service.
|
|
static int | co_sync_timer (const struct timespec *tp, void *data) |
| The CAN timer callback function for a SYNC producer service.
|
|
co_sync_t * | co_sync_create (can_net_t *net, co_dev_t *dev) |
| Creates a new CANopen SYNC producer/consumer service.
|
|
void | co_sync_destroy (co_sync_t *sync) |
| Destroys a CANopen SYNC producer/consumer service.
|
|
int | co_sync_start (co_sync_t *sync) |
| Starts a SYNC service.
|
|
void | co_sync_stop (co_sync_t *sync) |
| Stops a SYNC service.
|
|
int | co_sync_is_stopped (const co_sync_t *sync) |
| Retuns 1 if the specified SYNC service is stopped, and 0 if not.
|
|
can_net_t * | co_sync_get_net (const co_sync_t *sync) |
| Returns a pointer to the CAN network of a SYNC producer/consumer service.
|
|
co_dev_t * | co_sync_get_dev (const co_sync_t *sync) |
| Returns a pointer to the CANopen device of a SYNC producer/consumer service.
|
|
void | co_sync_get_ind (const co_sync_t *sync, co_sync_ind_t **pind, void **pdata) |
| Retrieves the indication function invoked after a CANopen SYNC message is received or transmitted.
|
|
void | co_sync_set_ind (co_sync_t *sync, co_sync_ind_t *ind, void *data) |
| Sets the indication function invoked after a CANopen SYNC message is received or transmitted.
|
|
void | co_sync_get_err (const co_sync_t *sync, co_sync_err_t **perr, void **pdata) |
| Retrieves the error handling function of a SYNC consumer service.
|
|
void | co_sync_set_err (co_sync_t *sync, co_sync_err_t *err, void *data) |
| Sets the error handling function of a SYNC consumer service.
|
|
This file is part of the CANopen library; it contains the implementation of the synchronization (SYNC) object functions.
- See also
- lely/co/sync.h
- Copyright
- 2017-2024 Lely Industries N.V.
- Author
- J. S. Seldenthuis jseld.nosp@m.enth.nosp@m.uis@l.nosp@m.ely..nosp@m.com
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.
Definition in file sync.c.