Skip to content

Commit aa4100e

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 3c8dc3d + ed00e50 commit aa4100e

16 files changed

Lines changed: 3854 additions & 0 deletions

outputs/V0.1.0/PCTool.exe

25.4 MB
Binary file not shown.

src/com/IpcProtocol.py

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
## Copyright (c) 2022 Ziga Miklosic
2+
## All Rights Reserved
3+
## This software is under MIT licence (https://opensource.org/licenses/MIT)
4+
#################################################################################################
5+
##
6+
## @file: IpcProtocol.py
7+
## @brief: Inter-Process protocol
8+
## @date: 04.07.2022
9+
## @author: Ziga Miklosic
10+
##
11+
#################################################################################################
12+
13+
#################################################################################################
14+
## IMPORTS
15+
#################################################################################################
16+
from dataclasses import dataclass
17+
18+
19+
#################################################################################################
20+
## DEFINITIONS
21+
#################################################################################################
22+
23+
24+
#################################################################################################
25+
## FUNCTIONS
26+
#################################################################################################
27+
28+
29+
#################################################################################################
30+
## CLASSES
31+
#################################################################################################
32+
33+
34+
@dataclass
35+
class IpcMsgType():
36+
37+
IpcMsgType_None: int = 0 # No operations
38+
39+
IpcMsgType_ComRefresh : int = 10 # Get informations about connected devices to PC
40+
IpcMsgType_ComConnect : int = 11 # Connect to device
41+
IpcMsgType_ComDisconnect : int = 12 # Disconnect from device
42+
IpcMsgType_ComRxFrame : int = 13 # Received frame from embedded device
43+
IpcMsgType_ComTxFrame : int = 14 # Transmit frame to embedded device
44+
45+
46+
@dataclass
47+
class IpcMsg():
48+
49+
# Type of message
50+
type: int = IpcMsgType.IpcMsgType_None
51+
52+
# Payload
53+
payload: str = None
54+
55+
56+
#################################################################################################
57+
## END OF FILE
58+
#################################################################################################
59+
60+
61+
62+
63+

0 commit comments

Comments
 (0)