CAN FD循环周期的更改
This commit is contained in:
@@ -96,13 +96,13 @@ namespace CapMachine.Wpf.CanDrive
|
||||
/// <summary>
|
||||
/// 更新配置
|
||||
/// </summary>
|
||||
public void UpdateConfig(uint arbBaudRate, uint dataBaudRate, bool iSOEnable, bool resEnable)
|
||||
public void UpdateConfig(uint arbBaudRate, uint dataBaudRate, bool iSOEnable, bool resEnable,ushort sendCycle)
|
||||
{
|
||||
ArbBaudRate = arbBaudRate;
|
||||
DataBaudRate = dataBaudRate;
|
||||
ISOEnable = iSOEnable;
|
||||
ResEnable = resEnable;
|
||||
|
||||
SendCycle=sendCycle;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -176,7 +176,7 @@ namespace CapMachine.Wpf.ViewModels
|
||||
{
|
||||
//更新波特率等配置信息
|
||||
CanFdDriveService.ToomossCanFDDrive.UpdateConfig((uint)SelectedCANConfigExdDto.ArbBaudRate,
|
||||
(uint)SelectedCANConfigExdDto.DataBaudRate, SelectedCANConfigExdDto.ISOEnable, SelectedCANConfigExdDto.ResEnable);
|
||||
(uint)SelectedCANConfigExdDto.DataBaudRate, SelectedCANConfigExdDto.ISOEnable, SelectedCANConfigExdDto.ResEnable, (ushort)SelectedCANConfigExdDto.Cycle);
|
||||
}
|
||||
|
||||
//配置信息
|
||||
@@ -537,7 +537,7 @@ namespace CapMachine.Wpf.ViewModels
|
||||
{
|
||||
//更新波特率等配置信息
|
||||
CanFdDriveService.ToomossCanFDDrive.UpdateConfig((uint)SelectedCANConfigExdDto.ArbBaudRate,
|
||||
(uint)SelectedCANConfigExdDto.DataBaudRate, SelectedCANConfigExdDto.ISOEnable, SelectedCANConfigExdDto.ResEnable);
|
||||
(uint)SelectedCANConfigExdDto.DataBaudRate, SelectedCANConfigExdDto.ISOEnable, SelectedCANConfigExdDto.ResEnable, (ushort)SelectedCANConfigExdDto.Cycle);
|
||||
}
|
||||
|
||||
var WirteData = SelectCanLinConfigPro.CanLinConfigContents!.Where(a => a.RWInfo == RW.Write).ToList();
|
||||
|
||||
Reference in New Issue
Block a user