using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FLY.Thick.Base.Common
{
///
/// 电机类型
///
public enum MOTORTYPE
{
///
/// 没有
///
NULL = 0,
///
/// 变频器
///
VF0 = 1,
///
/// 伺服电器
///
SERVO = 2
}
///
/// 密码区状态
///
public enum AREA_STATUS
{
///
/// 没有读过密码区
///
NOTLOAD = 0,
///
/// 读出错
///
RDERR = 1,
///
/// 非有效密码区 没有0xAA55 或 0x5A5A 标志
///
NOTVALID = 2,
///
/// 写出错
///
WRERR = 3,
///
/// 有效密码区
///
VALID = 4,
///
/// 有效密码区,应回写EEPROM
///
VALID_DIRTY = 5,
///
/// 有效密码区,但回写EEPROM失败
///
VALID_WRERR = 6
}
///
/// 密码区错误内容
///
public enum AREA_ERR
{
NO_ERR = 0, // 没有错误
DUP_ACCESS = 1,// 重复使用码
ERR_ACCESS = 2//无效使用码
}
///
/// 授权码包
///
public class AccessInfo
{
///
/// 密码区状态
///
public AREA_STATUS status;
///
/// 操作结果
///
public AREA_ERR ret;
///
/// 序列码
///
public byte[] code = new byte[7];
///
/// 剩余时间
///
public UInt16 surplus;
///
/// 授权码
///
public byte[] access = new byte[8];
}
///
/// grid 数据包
///
public class GridInfo
{
///
/// 数据方向
///
public Misc.DIRECTION direction;
///
/// AD值数据
///
public int[] data;
///
/// 厚度值数据
///
public double[] thick;
}
}