summaryrefslogtreecommitdiffstats
path: root/awlsim/core/hardware.pxd.in
blob: 8ae2f5f0c345a7eda2fb54030029c4e4adc5ce49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from awlsim.core.main cimport *
from awlsim.core.cpu cimport *

cdef class AbstractHardwareInterface(object):
	cdef public AwlSim sim
	cdef public S7CPU cpu
	cdef public _Bool __running
	cdef public uint32_t inputAddressBase
	cdef public uint32_t outputAddressBase
	cdef public dict __paramsByName
	cdef public dict __paramsByDescType

	cdef readInputs(self)
	cdef writeOutputs(self)
	cdef bytearray directReadInput(self, uint32_t accessWidth, uint32_t accessOffset)
	cdef ExBool_t directWriteOutput(self, uint32_t accessWidth, uint32_t accessOffset, bytearray data) except ExBool_val
bues.ch cgit interface