Add function to set/get offset and gain.
Add enum for config functions.