Files
MyOwnEtherCATDevice/Cards/EaserCAT-2000/Firmware/include/extend32to64.h
2024-11-20 11:18:13 +01:00

15 lines
318 B
C++
Executable File

#ifndef EXTEND32TO64
#define EXTEND32TO54
#include <Arduino.h>
class extend32to64
{
public:
int64_t previousTimeValue = 0;
const uint64_t ONE_PERIOD = 4294967296; // almost UINT32_MAX;
const uint64_t HALF_PERIOD = 2147483648; // Half of that
int64_t extendTime(uint32_t in);
};
#endif