main.pxd.in 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. from awlsim.common.cython_support cimport *
  2. from awlsim.core.hardware cimport *
  3. cdef class HardwareInterface_PiXtend(AbstractHardwareInterface):
  4. cdef public object __pixtend_class
  5. cdef public object __pixtend
  6. cdef public _Bool __pixtendInitialized
  7. cdef public _Bool __isV2
  8. cdef public _Bool __testMode
  9. cdef public list __relays
  10. cdef public list __DOs
  11. cdef public list __DIs
  12. cdef public list __GPIO_out
  13. cdef public list __GPIO_in
  14. cdef public list __temps
  15. cdef public list __hums
  16. cdef public list __AIs
  17. cdef public list __AOs
  18. cdef public list __PWM0s
  19. cdef public list __PWM1s
  20. cdef public list __allOutputs
  21. cdef public list __allProcOutputs
  22. cdef public list __allInputs
  23. cdef public list __allProcInputs
  24. cdef public _Bool __haveInputData
  25. cdef public uint32_t __outBase
  26. cdef public uint32_t __outSize
  27. cdef public uint32_t __inBase
  28. cdef public uint32_t __inSize
  29. cdef public dict __byteOffsetToInput
  30. cdef public dict __byteOffsetToOutput
  31. cdef public double __pollInt
  32. cdef public double __nextPoll
  33. cdef public uint16_t __prevSpiCount
  34. cdef ExBool_t __pixtendPoll(self, double now)
  35. cdef __waitV2Transfer(self, _Bool waitForBegin)
  36. cdef __syncPixtendPoll(self, _Bool waitForBegin)
  37. cdef readInputs(self)
  38. cdef writeOutputs(self)
  39. cdef bytearray directReadInput(self, uint32_t accessWidth, uint32_t accessOffset)
  40. cdef ExBool_t directWriteOutput(self, uint32_t accessWidth, uint32_t accessOffset, bytearray data) except ExBool_val