Module Import alias Import alias Import alias Import alias If CompareGtE SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpSub NameLoad BinOpMod NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpAdd NameLoad BinOpSub NameLoad AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpAdd NameLoad BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareGt BinOpAdd NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Return AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Return AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Return AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad BinOpMult AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr NameLoad Return Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad Num body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Assign AttributeStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad Num body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Assign AttributeStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad Num body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Assign AttributeStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad BinOpMult AttributeLoad NameLoad attr Call NameLoad NameLoad attr AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A sys N/A os N/A mmap N/A ctypes N/A N/A N/A N/A sys version_info N/A 0 3 N/A N/A long int MMIOError N/A IOError N/A N/A Base class for MMIO errors. N/A N/A MMIO N/A object N/A __init__ N/A N/A self physaddr size N/A N/A N/A Instantiate an MMIO object and map the region of physical memory
        specified by the address base `physaddr` and size `size` in bytes.

        Args:
            physaddr (int, long): base physical address of memory region.
            size (int, long): size of memory region.

        Returns:
            MMIO: MMIO object.

        Raises:
            MMIOError: if an I/O or OS error occurs.
            TypeError: if `physaddr` or `size` types are invalid.

         N/A N/A self mapping None N/A N/A N/A self _open physaddr size N/A __del__ N/A N/A self N/A N/A N/A N/A N/A self close N/A __enter__ N/A N/A self N/A N/A N/A N/A __exit__ N/A N/A self t value traceback N/A N/A N/A N/A N/A self close N/A _open N/A N/A self physaddr size N/A N/A N/A N/A N/A N/A isinstance physaddr int N/A N/A isinstance physaddr long N/A N/A N/A TypeError Invalid physaddr type, should be integer. N/A N/A N/A N/A isinstance size int N/A N/A isinstance size long N/A N/A N/A TypeError Invalid size type, should be integer. N/A pagesize N/A N/A os sysconf N/A N/A os sysconf_names N/A SC_PAGESIZE N/A N/A self _physaddr physaddr N/A N/A self _size size N/A N/A self _aligned_physaddr N/A physaddr N/A physaddr pagesize N/A N/A self _aligned_size N/A size N/A physaddr N/A self _aligned_physaddr N/A N/A N/A fd N/A N/A os open /dev/mem N/A N/A os O_RDWR N/A os O_SYNC N/A N/A N/A OSError N/A e N/A N/A N/A MMIOError N/A e errno N/A Opening /dev/mem:  N/A e strerror N/A N/A N/A N/A self mapping N/A N/A mmap mmap fd N/A self _aligned_size flags N/A mmap MAP_SHARED prot N/A N/A mmap PROT_READ N/A mmap PROT_WRITE offset N/A self _aligned_physaddr N/A N/A N/A OSError N/A e N/A N/A N/A MMIOError N/A e errno N/A Mapping /dev/mem:  N/A e strerror N/A N/A N/A N/A N/A os close fd N/A N/A N/A OSError N/A e N/A N/A N/A MMIOError N/A e errno N/A Closing /dev/mem:  N/A e strerror N/A _adjust_offset N/A N/A self offset N/A N/A N/A N/A offset N/A N/A self _physaddr N/A self _aligned_physaddr N/A _validate_offset N/A N/A self offset length N/A N/A N/A N/A N/A offset length N/A self _aligned_size N/A N/A N/A ValueError Offset out of bounds. N/A read32 N/A N/A self offset N/A N/A N/A Read 32-bits from mapped physical memory, starting at the specified
        `offset`, in bytes, relative to the base physical address the MMIO
        object was opened with.

        Args:
            offset (int, long): offset from base physical address, in bytes.

        Returns:
            int: 32-bit value read.

        Raises:
            TypeError: if `offset` type is invalid.
            ValueError: if `offset` is out of bounds.

         N/A N/A N/A N/A isinstance offset int N/A N/A isinstance offset long N/A N/A N/A TypeError Invalid offset type, should be integer. N/A offset N/A N/A self _adjust_offset offset N/A N/A N/A self _validate_offset offset 4 N/A N/A N/A N/A N/A ctypes c_uint32 from_buffer N/A self mapping offset value N/A read16 N/A N/A self offset N/A N/A N/A Read 16-bits from mapped physical memory, starting at the specified
        `offset`, in bytes, relative to the base physical address the MMIO
        object was opened with.

        Args:
            offset (int, long): offset from base physical address, in bytes.

        Returns:
            int: 16-bit value read.

        Raises:
            TypeError: if `offset` type is invalid.
            ValueError: if `offset` is out of bounds.

         N/A N/A N/A N/A isinstance offset int N/A N/A isinstance offset long N/A N/A N/A TypeError Invalid offset type, should be integer. N/A offset N/A N/A self _adjust_offset offset N/A N/A N/A self _validate_offset offset 2 N/A N/A N/A N/A N/A ctypes c_uint16 from_buffer N/A self mapping offset value N/A read8 N/A N/A self offset N/A N/A N/A Read 8-bits from mapped physical memory, starting at the specified
        `offset`, in bytes, relative to the base physical address the MMIO
        object was opened with.

        Args:
            offset (int, long): offset from base physical address, in bytes.

        Returns:
            int: 8-bit value read.

        Raises:
            TypeError: if `offset` type is invalid.
            ValueError: if `offset` is out of bounds.

         N/A N/A N/A N/A isinstance offset int N/A N/A isinstance offset long N/A N/A N/A TypeError Invalid offset type, should be integer. N/A offset N/A N/A self _adjust_offset offset N/A N/A N/A self _validate_offset offset 1 N/A N/A N/A N/A N/A ctypes c_uint8 from_buffer N/A self mapping offset value N/A read N/A N/A self offset length N/A N/A N/A Read an array of bytes from mapped physical memory, starting at the
        specified `offset` in bytes, relative to the base physical address the
        MMIO object was opened with.

        Args:
            offset (int, long): offset from base physical address, in bytes.
            length (int): number of bytes to read

        Returns:
            bytes: bytes read.

        Raises:
            TypeError: if `offset` type is invalid.
            ValueError: if `offset` is out of bounds.

         N/A N/A N/A N/A isinstance offset int N/A N/A isinstance offset long N/A N/A N/A TypeError Invalid offset type, should be integer. N/A offset N/A N/A self _adjust_offset offset N/A N/A N/A self _validate_offset offset length N/A c_byte_array N/A N/A N/A N/A ctypes c_uint8 length from_buffer N/A self mapping offset N/A N/A bytes N/A bytearray c_byte_array N/A write32 N/A N/A self offset value N/A N/A N/A Write 32-bits to mapped physical memory, starting at the specified
        `offset`, in bytes, relative to the base physical address the MMIO
        object was opened with.

        Args:
            offset (int, long): offset from base physical address, in bytes.
            value (int, long): 32-bit value to write

        Raises:
            TypeError: if `offset` or `value` type are invalid.
            ValueError: if `offset` or `value` are out of bounds.

         N/A N/A N/A N/A isinstance offset int N/A N/A isinstance offset long N/A N/A N/A TypeError Invalid offset type, should be integer. N/A N/A N/A N/A isinstance value int N/A N/A isinstance value long N/A N/A N/A TypeError Invalid value type, should be integer. N/A N/A N/A value 0 N/A value 4294967295 N/A N/A N/A ValueError Value out of bounds. N/A offset N/A N/A self _adjust_offset offset N/A N/A N/A self _validate_offset offset 4 N/A N/A N/A N/A N/A ctypes c_uint32 from_buffer N/A self mapping offset value value N/A write16 N/A N/A self offset value N/A N/A N/A Write 16-bits to mapped physical memory, starting at the specified
        `offset`, in bytes, relative to the base physical address the MMIO
        object was opened with.

        Args:
            offset (int, long): offset from base physical address, in bytes.
            value (int, long): 16-bit value to write

        Raises:
            TypeError: if `offset` or `value` type are invalid.
            ValueError: if `offset` or `value` are out of bounds.

         N/A N/A N/A N/A isinstance offset int N/A N/A isinstance offset long N/A N/A N/A TypeError Invalid offset type, should be integer. N/A N/A N/A N/A isinstance value int N/A N/A isinstance value long N/A N/A N/A TypeError Invalid value type, should be integer. N/A N/A N/A value 0 N/A value 65535 N/A N/A N/A ValueError Value out of bounds. N/A offset N/A N/A self _adjust_offset offset N/A N/A N/A self _validate_offset offset 2 N/A N/A N/A N/A N/A ctypes c_uint16 from_buffer N/A self mapping offset value value N/A write8 N/A N/A self offset value N/A N/A N/A Write 8-bits to mapped physical memory, starting at the specified
        `offset`, in bytes, relative to the base physical address the MMIO
        object was opened with.

        Args:
            offset (int, long): offset from base physical address, in bytes.
            value (int, long): 8-bit value to write

        Raises:
            TypeError: if `offset` or `value` type are invalid.
            ValueError: if `offset` or `value` are out of bounds.

         N/A N/A N/A N/A isinstance offset int N/A N/A isinstance offset long N/A N/A N/A TypeError Invalid offset type, should be integer. N/A N/A N/A N/A isinstance value int N/A N/A isinstance value long N/A N/A N/A TypeError Invalid value type, should be integer. N/A N/A N/A value 0 N/A value 255 N/A N/A N/A ValueError Value out of bounds. N/A offset N/A N/A self _adjust_offset offset N/A N/A N/A self _validate_offset offset 1 N/A N/A N/A N/A N/A ctypes c_uint8 from_buffer N/A self mapping offset value value N/A write N/A N/A self offset data N/A N/A N/A Write an array of bytes to mapped physical memory, starting at the
        specified `offset`, in bytes, relative to the base physical address the
        MMIO object was opened with.

        Args:
            offset (int, long): offset from base physical address, in bytes.
            data (bytes, bytearray, list): a byte array or list of 8-bit integers to write

        Raises:
            TypeError: if `offset` or `data` type are invalid.
            ValueError: if `offset` is out of bounds, or if data is not valid bytes.

         N/A N/A N/A N/A isinstance offset int N/A N/A isinstance offset long N/A N/A N/A TypeError Invalid offset type, should be integer. N/A N/A N/A N/A isinstance data bytes N/A N/A isinstance data bytearray N/A N/A isinstance data list N/A N/A N/A TypeError Invalid data type, expected bytes, bytearray, or list. N/A offset N/A N/A self _adjust_offset offset N/A N/A N/A self _validate_offset offset N/A len data N/A data N/A bytearray data N/A c_byte_array N/A N/A N/A N/A ctypes c_uint8 N/A len data from_buffer N/A self mapping offset N/A i N/A range N/A len data N/A N/A N/A c_byte_array N/A i N/A data N/A i N/A close N/A N/A self N/A N/A N/A Unmap the MMIO object's mapped physical memory. N/A N/A N/A self mapping None N/A N/A N/A N/A N/A N/A self mapping close N/A N/A self mapping None N/A N/A self _fd None N/A base N/A N/A self N/A N/A N/A Get the base physical address the MMIO object was opened with.

        :type: int
         N/A N/A self _physaddr N/A property size N/A N/A self N/A N/A N/A Get the mapping size the MMIO object was opened with.

        :type: int
         N/A N/A self _size N/A property pointer N/A N/A self N/A N/A N/A Get a ctypes void pointer to the memory mapped region.

        :type: ctypes.c_void_p
         N/A N/A N/A ctypes cast N/A N/A ctypes pointer N/A N/A N/A ctypes c_uint8 from_buffer N/A self mapping 0 N/A ctypes c_void_p N/A property __str__ N/A N/A self N/A N/A N/A N/A MMIO 0x%08x (size=%d) N/A N/A self base N/A self size N/A N/A