using SqlSugar;
namespace ProductionSystem_Model.DbModel.Protocol
{
///
/// CAN/LIN通讯协议配置表
///
[SugarTable("t_protocol_config")]
public class T_Protocol_Config : BaseModel
{
///
/// 协议类型
///
[SugarColumn(ColumnName = "protocol_type")]
public string ProtocolType { get; set; }
///
/// 协议编码
///
[SugarColumn(ColumnName = "protocol_code")]
public string ProtocolCode { get; set; }
///
/// 协议名称
///
[SugarColumn(ColumnName = "protocol_name")]
public string ProtocolName { get; set; }
///
/// 波特率
///
[SugarColumn(ColumnName = "bps")]
public int Bps { get; set; } = 115200;
///
/// 串口号
///
[SugarColumn(ColumnName = "port")]
public string Port { get; set; }
///
/// 校验位
///
[SugarColumn(ColumnName = "chk_bit")]
public string ChkBit { get; set; }
///
/// 数据位
///
[SugarColumn(ColumnName = "data_bit")]
public int DataBit { get; set; } = 8;
///
/// 停止位
///
[SugarColumn(ColumnName = "stop_bit")]
public int StopBit { get; set; } = 1;
///
/// 报文格式
///
[SugarColumn(ColumnName = "msg_format")]
public string MsgFormat { get; set; }
///
/// 帧类型(标准帧、扩展帧)
///
[SugarColumn(ColumnName = "frame_type")]
public string FrameType { get; set; }
///
/// 站号(目前PWM使用)
///
[SugarColumn(ColumnName = "station_no")]
public int? StationNo { get; set; }
///
/// 排序索引
///
[SugarColumn(ColumnName = "sortindex")]
public int SortIndex { get; set; } = 0;
}
}