# How to get the first 11 bits of a 32 bit int with ctypes
class Fields(ctypes.Structure):
    _pack_ = 1
    _fields_ = [('x', ctypes.c_uint, 21), ('a', ctypes.c_uint, 11)]

43252efad7829e6ff1db21168a8b43cb3a5ffe0a
<mask token>

class Fields(ctypes.Structure):
    <mask token>
    <mask token>

class Fields(ctypes.Structure):
    _pack_ = 1
    _fields_ = [('x', ctypes.c_uint, 21), ('a', ctypes.c_uint, 11)]

# How to get the first 11 bits of a 32 bit int with ctypes
class Fields(ctypes.Structure):
    _pack_ = 1
    _fields_ = [('x', ctypes.c_uint, 21), ('a', ctypes.c_uint, 11)]
