Доработка машины состояния

This commit is contained in:
2024-10-04 09:38:05 +03:00
parent cbbb8cf5a7
commit 654bf85df8
4 changed files with 88 additions and 22 deletions

View File

@@ -1,8 +1,17 @@
extends Node
const TableNode = preload("res://table/node.tscn")
const UNICAST_PORT: int = 50003
const UNICAST_ADDRESS: String = '10.1.1.3'
const BROADCAST_PORT: int = 50000
const DEFAULT_ADDRESS: String = '10.1.1.52'
const DEFAULT_PORT: String = '50052'
const DEFAULT_PORT: String = '50052'
const BASE_ADDR: int = 0x100
const ROWS_REGS_DATA: Array = [
[TableNode, TableNode, TableNode, TableNode, TableNode],
[TableNode, TableNode, TableNode, TableNode, TableNode],
[TableNode, TableNode, TableNode, TableNode, TableNode]]
enum STATE {
WAIT, # Режим ожидания команды
READ, # Чтение из ИСА
WRITE, # ЗАпись в ИСА
}