code: def get_mask(self, kind):
          
          logger.debug("retrieving mask kind %s" % kind)
          mask = snap7.snap7types.longword()
          code = self.library.Srv_GetMask(self.pointer, kind, ctypes.byref(mask))
          check_error(code)
          return mask
docs: Reads the specified filter mask.