Q: Digital potentiometer MCP4162
According to the datasheet, you're going to want to write to Volatile Wiper 0, and 1.

The TCON Register is used for configuring how the devices outputs are connected, you'll probably have to set that up on powerup. Although the defaults might be ok.

You can ignore the non-volatile variables. Those are used if you want to program the chip and then run it without a micro attached.