类 Structures.InternalDiagnostics
java.lang.Object
com.sun.jna.Structure
com.darra.ethercat.data.Structures.InternalDiagnostics
- 封闭类:
Structures
@FieldOrder({"CacheCnt","RTcnt","cycle_count","ErrorCacheCnt","ErrorCnt","WKC","ExpectedWKC","CycleTimeSpan","frame_errors","lost_frames","checksum_errors","timeout_frames","rx_error_count","tx_error_count","lost_link_count","invalid_frame_count","working_counter_errors","consecutive_wkc_errors","total_wkc_mismatches","cycle_start_time","cycle_time_accumulator","last_snapshot_time","snapshot_cycle_count","last_cycle_time_us","jitter_accumulator","max_jitter_in_second","jitter_sample_count"})
public static class Structures.InternalDiagnostics
extends com.sun.jna.Structure
内部诊断数据结构 - 对应 C 层 internal_diagnostics_t
这是所有统计信息的唯一所有者
使用 GetDiagnosticsPointer() 进行零拷贝访问
注意:不使用 Pack=1,因为 C 端也使用自然对齐
-
嵌套类概要
从类继承的嵌套类/接口 com.sun.jna.Structure
com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField -
字段概要
字段修饰符和类型字段说明int当前秒内的周期计数int校验和错误数short连续 WKC 错误次数int累计总周期数long周期开始时间戳(纳秒)double周期时间累加器int最近一次周期耗时(微秒)int当前秒内的错误计数int上一秒的错误计数short期望工作计数器int总帧错误数short[]每个从站的无效帧计数double1秒内抖动累加器int1秒内抖动采样数double上一次周期时间(微秒)long上次快照时间戳(秒)int丢失帧数short[]每个从站的链路丢失计数double1秒内最大抖动(微秒)int上一秒的周期计数(频率Hz)int[]每个从站的接收错误计数int上次快照时的 cycle_countint超时帧数intWKC 不匹配总次数int[]每个从站的发送错误计数short当前工作计数器shortWKC 错误次数从类继承的字段 com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE -
构造器概要
构造器 -
方法概要
从类继承的方法 com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
字段详细资料
-
CacheCnt
public int CacheCnt当前秒内的周期计数 -
RTcnt
public int RTcnt上一秒的周期计数(频率Hz) -
cycle_count
public int cycle_count累计总周期数 -
ErrorCacheCnt
public int ErrorCacheCnt当前秒内的错误计数 -
ErrorCnt
public int ErrorCnt上一秒的错误计数 -
WKC
public short WKC当前工作计数器 -
ExpectedWKC
public short ExpectedWKC期望工作计数器 -
CycleTimeSpan
public int CycleTimeSpan最近一次周期耗时(微秒) -
frame_errors
public int frame_errors总帧错误数 -
lost_frames
public int lost_frames丢失帧数 -
checksum_errors
public int checksum_errors校验和错误数 -
timeout_frames
public int timeout_frames超时帧数 -
rx_error_count
public int[] rx_error_count每个从站的接收错误计数 -
tx_error_count
public int[] tx_error_count每个从站的发送错误计数 -
lost_link_count
public short[] lost_link_count每个从站的链路丢失计数 -
invalid_frame_count
public short[] invalid_frame_count每个从站的无效帧计数 -
working_counter_errors
public short working_counter_errorsWKC 错误次数 -
consecutive_wkc_errors
public short consecutive_wkc_errors连续 WKC 错误次数 -
total_wkc_mismatches
public int total_wkc_mismatchesWKC 不匹配总次数 -
cycle_start_time
public long cycle_start_time周期开始时间戳(纳秒) -
cycle_time_accumulator
public double cycle_time_accumulator周期时间累加器 -
last_snapshot_time
public long last_snapshot_time上次快照时间戳(秒) -
snapshot_cycle_count
public int snapshot_cycle_count上次快照时的 cycle_count -
last_cycle_time_us
public double last_cycle_time_us上一次周期时间(微秒) -
jitter_accumulator
public double jitter_accumulator1秒内抖动累加器 -
max_jitter_in_second
public double max_jitter_in_second1秒内最大抖动(微秒) -
jitter_sample_count
public int jitter_sample_count1秒内抖动采样数
-
-
构造器详细资料
-
InternalDiagnostics
public InternalDiagnostics() -
InternalDiagnostics
public InternalDiagnostics(com.sun.jna.Pointer p)
-