package com.hdl.sdk.ttl.HDLDeviceManger.Core; import android.content.Context; import com.hdl.sdk.ttl.Utils.LogUtils.HDLLog; /** * Created by JLChen on 2019/7/25 */ public class HDLTtlSdk { /** * 初始化 SDK * * @param context */ public static void init(Context context, String mPathname, int mBaudrate) { HDLDeviceManager.init(context); HDLSerialPortCore.initHDLSerialPort(mPathname, mBaudrate); } /** * 是否开启SDK日志打印 * * @param bOpen */ public static void setHDLLogOpen(boolean bOpen) { HDLLog.setHDLLogOpen(bOpen); } /** * 释放资源 关闭串口 */ public static void release() { HDLDeviceManager.release(); } }