其他程序的CAN CANFD LIN的移植

This commit is contained in:
2025-09-07 22:08:21 +08:00
parent 566a3d2ca6
commit e2e28935d1
55 changed files with 9087 additions and 677 deletions

View File

@@ -0,0 +1,53 @@
using FreeSql.DataAnnotations;
namespace CapMachine.Model.CANLIN
{
/// <summary>
/// CAN和LIN的配置信息数据
/// </summary>
[Table(Name = "CANFdConfigExd")]
public class CANFdConfigExd
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 数据波特率
/// </summary>
[Column(Name = "DataBaudRate")]
public int DataBaudRate { get; set; }
/// <summary>
/// 仲裁波特率
/// </summary>
[Column(Name = "ArbBaudRate")]
public int ArbBaudRate { get; set; }
/// <summary>
/// CAN FD标准 ISO是否启用
/// </summary>
[Column(Name = "ISOEnable")]
public bool ISOEnable { get; set; }
/// <summary>
/// 终端电阻 是否启用
/// </summary>
[Column(Name = "ResEnable")]
public bool ResEnable { get; set; }
/// <summary>
/// 周期
/// </summary>
[Column(Name = "Cycle")]
public int Cycle { get; set; }
/// <summary>
/// Dbc文件路径
/// </summary>
[Column(Name = "DbcPath", IsNullable = false, StringLength = 500)]
public string? DbcPath { get; set; }
}
}