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