package com.njcn.pojo.advanced;

import com.sun.jna.Structure;

import java.util.Arrays;
import java.util.List;

public class CauseStruct extends Structure {
	//最大能容纳的数据
	public static final int MAX_SMP_DATA_LEN = 128 * 50 * 120;
	public float smp_va[] = new float[MAX_SMP_DATA_LEN];
	public float smp_vb[] = new float[MAX_SMP_DATA_LEN];
	public float smp_vc[] = new float[MAX_SMP_DATA_LEN];
	public int smp_rate;
	public int smp_len;
	public float threshold[] = new float[50];
	public int cause = 0;
	public int no_cal = 0;

	public static class ByReference extends CauseStruct implements Structure.ByReference {
	}

	public static class ByValue extends CauseStruct implements Structure.ByValue {
	}

	@Override
	protected List<String> getFieldOrder() { // 返回值填入的顺序
		return Arrays.asList(new String[] { "cause", "no_cal" });
	}
}
