main.pxd.in 939 B

12345678910111213141516171819202122232425262728
  1. from awlsim.common.cython_support cimport *
  2. from awlsim.core.hardware cimport *
  3. cdef class RpiGPIO_BitMapping(object):
  4. cdef public dict __bit2bcm
  5. cdef public uint8_t bitOffsets[8]
  6. cdef public list bcmNumbers
  7. cdef public uint8_t currentOutputValues[8]
  8. cdef public uint8_t size
  9. cdef class RpiGPIO_HwInterface(AbstractHardwareInterface):
  10. cdef public object __RPi_GPIO
  11. cdef public object __RPi_GPIO_input
  12. cdef public object __RPi_GPIO_output
  13. cdef public list __inputByteOffsetList
  14. cdef public list __inputBitMappingList
  15. cdef public uint32_t __inputListSize
  16. cdef public list __outputByteOffsetList
  17. cdef public list __outputBitMappingList
  18. cdef public uint32_t __outputListSize
  19. cdef readInputs(self)
  20. cdef writeOutputs(self)
  21. cdef bytearray directReadInput(self, uint32_t accessWidth, uint32_t accessOffset)
  22. cdef ExBool_t directWriteOutput(self, uint32_t accessWidth, uint32_t accessOffset, bytearray data) except ExBool_val