EthercatMaster.getSystemTime()

[EthercatMaster]

説明

Get the system time of the current cycle. (The unit is nanosecond)

Format

uint64_t getSystemTime();

Syntax

EthercatMaster master;
master.begin();
master.start();
master.getSystemTime();

Returns

uint64_t: the system time of the current cycle.

Example

#include "Ethercat.h"

EthercatMaster master;

void setup(void) {
    uint64_t getSystemTime;

    Serial.begin(115200);
    while (!Serial);
    
    master.begin();
    master.start();
    getSystemTime = master. getSystemTime ();
    Serial.println(getSystemTime);
}

void loop() {}

Libraries Reference Home

86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。

コメントする

上部へスクロール