def mask_write_register(addr, and_mask, or_mask)
      query("\x16" + addr.to_word + and_mask.to_word + or_mask.to_word)
      self
    end
def mask_write_register(addr, and_mask, or_mask)
      query("\x16" + addr.to_word + and_mask.to_word + or_mask.to_word)
      self
    end
Mask a holding register

 @example
   mask_write_register(1, 0xAAAA, 0x00FF) => self
 @param [Integer] addr address registers
 @param [Integer] and_mask mask for AND operation
 @param [Integer] or_mask mask for OR operation