Alex exoskeleton
ALEX SoftwareDocumentation
CO_time.h
Go to the documentation of this file.
1 
27 #ifndef CO_TIME_H
28 #define CO_TIME_H
29 
30 #include <CO_driver.h> // Must be included by CO_SDO.h due to typedefs being here.
31 
32 #include "CO_SDO.h"
33 
37 typedef struct {
38  uint64_t *epochTimeBaseMs;
40 } CO_time_t;
41 
53 void CO_time_init(
54  CO_time_t *tm,
55  CO_SDO_t *SDO,
56  uint64_t *epochTimeBaseMs,
57  uint32_t *epochTimeOffsetMs,
58  uint16_t idx_OD_time);
59 
67 void CO_time_process(CO_time_t *tm);
68 
69 #endif
void CO_time_init(CO_time_t *tm, CO_SDO_t *SDO, uint64_t *epochTimeBaseMs, uint32_t *epochTimeOffsetMs, uint16_t idx_OD_time)
Definition: CO_time.c:89
void CO_time_process(CO_time_t *tm)
Definition: CO_time.c:109
uint64_t * epochTimeBaseMs
Definition: CO_time.h:38
Time object, usable for timestamping - Defined in CANOpen code.
Definition: CO_time.h:37
unsigned short uint16_t
Definition: CO_command.h:35
unsigned int uint32_t
Definition: CO_command.h:31
uint32_t * epochTimeOffsetMs
Definition: CO_time.h:39