Alex exoskeleton
ALEX SoftwareDocumentation
|
#include <CO_driver.h>
#include "CO_SDO.h"
Go to the source code of this file.
Classes | |
struct | CO_time_t |
Time object, usable for timestamping - Defined in CANOpen code. More... | |
Functions | |
void | CO_time_init (CO_time_t *tm, CO_SDO_t *SDO, uint64_t *epochTimeBaseMs, uint32_t *epochTimeOffsetMs, uint16_t idx_OD_time) |
void | CO_time_process (CO_time_t *tm) |
CANopen time interface.
This file is part of CANopenSocket, a Linux implementation of CANopen stack with master functionality. Project home page is https://github.com/CANopenNode/CANopenSocket. CANopenSocket is based on CANopenNode: https://github.com/CANopenNode/CANopenNode.
CANopenSocket is free and open source software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file CO_time.h.
void CO_time_init | ( | CO_time_t * | tm, |
CO_SDO_t * | SDO, | ||
uint64_t * | epochTimeBaseMs, | ||
uint32_t * | epochTimeOffsetMs, | ||
uint16_t | idx_OD_time | ||
) |
Initialize time object.
Function must be called in the communication reset section.
tm | This object will be initialized. |
SDO | SDO server object. |
epochTimeBaseMs | Pointer to milliseconds since Unix Epoch (1.1.1970, 00:00:00, UTC) - base. |
epochTimeOffsetMs | pointer to offset. Set to 0 at program startup and increments since then. |
idx_OD_time | Index in Object Dictionary. |