aboutsummaryrefslogtreecommitdiffstats
path: root/awlsim/core/parenstack.pxd.in
blob: b7160b4bc36b8830d2e392e6cf3c23d58c3306cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from awlsim.common.cython_support cimport *
from awlsim.core.cpu cimport *
from awlsim.core.statusword cimport *
from awlsim.common.cpuspecs cimport *

cdef struct ParenStackElem:
	uint8_t insnType
	_Bool NER
	_Bool VKE
	_Bool OR

cdef class ParenStack(object):
	cdef public S7CPU cpu
	cdef public uint32_t maxNrElements
	cdef public uint32_t nrElements
	cdef ParenStackElem *elements

	cdef push(self, uint8_t insnType, S7StatusWord statusWord)
	cdef ParenStackElem pop(self)

cdef ParenStack make_ParenStack(S7CPU cpu)
bues.ch cgit interface