def _create_mmio_property(addr):
    """Returns a python property.
    
    Create mmio getter and setters for hardware registers.
    """
    def _get(self):
        return self.read(addr)
    
    def _set(self, value):
        self.write(addr, value)
        
    return property(_get, _set)