package com.example.serial; public class AdcControl { static { System.loadLibrary("serial"); } public static native int openComport(String path, long baudRate, int dataBits, int parity, int stopBits, int flowControl); public static native int closeComport(); public static native int sendToPort(String operate, String channel); public static native String recvFromPort(int len, int timeout); }