CAN修复
This commit is contained in:
@@ -125,6 +125,19 @@ namespace TSMasterCAN
|
||||
public static List<List<_Msg_>> MsgDatabase { get; set; } =
|
||||
[.. Enumerable.Range(0, 12).Select(_ => new List<_Msg_>())];
|
||||
public static can_network can_Network;
|
||||
|
||||
/// <summary>
|
||||
/// 清空托管侧报文缓存。
|
||||
/// <para>
|
||||
/// TSMaster 原生数据库被卸载(tsdb_unload_can_dbs)或驱动被 finalize 后,
|
||||
/// 这里的缓存必须同步清空,否则再次发送时会拿缓存里的报文去匹配空数据库,
|
||||
/// tsdb_set_signal_value_canfd 会返回 93(message not found in database)。
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void ClearMsgDatabase()
|
||||
{
|
||||
foreach (var list in MsgDatabase) list.Clear();
|
||||
}
|
||||
public static string tsdb_get_can_db_info(uint ADatabaseId, int AType, int AIndex, int ASubIndex)
|
||||
{
|
||||
nint tmpInt = new nint();
|
||||
|
||||
Reference in New Issue
Block a user