code: def get_pattern_link_topattern(self, patternnumber):
          
          _checkPatternNumber(patternnumber)
  
          address = _calculateRegisterAddress('linkpattern', patternnumber)
          return self.read_register(address)
docs: Get the 'linked pattern' value for a given pattern.
  
          Args:
              patternnumber (integer): From 0-7
              
          Returns:
              The 'linked pattern' value (int).