23 lines
560 B (Stored with Git LFS)
Python
23 lines
560 B (Stored with Git LFS)
Python
import gobotrpc
|
|
import abc
|
|
import typing
|
|
import enum
|
|
|
|
class GobotRPC_Ctrl_Interface_Command(enum.Enum):
|
|
TX_PACKAGE = 0x01
|
|
RX_PACKAGE = 0x02
|
|
PERFORM_SCAN = 0x03
|
|
SCAN_RESULT = 0x04
|
|
|
|
class GobotRPC_Ctrl_Interface(abc.ABC):
|
|
@abc.abstractmethod
|
|
def send_tx_package(self, goborpc_package: gobotrpc.GobotRPCPackage):
|
|
raise NotImplementedError
|
|
|
|
@abc.abstractmethod
|
|
def rx_package(self) -> gobotrpc.GobotRPCPackage:
|
|
raise NotImplementedError
|
|
|
|
@abc.abstractmethod
|
|
def close(self):
|
|
raise NotImplementedError |