Skip to content

Instantly share code, notes, and snippets.

@nathanjsharpe
Created November 5, 2014 17:07
Show Gist options
  • Select an option

  • Save nathanjsharpe/8df449b11b5cadfc6c4d to your computer and use it in GitHub Desktop.

Select an option

Save nathanjsharpe/8df449b11b5cadfc6c4d to your computer and use it in GitHub Desktop.
app.factory('appSettings', function() {
var profile = "default";
var configSelections = {
"DataRate": "500SPS",
"TestAmp": "1x(VREFP-VREFN)/2.4mV",
"TestFreq": "fclk/2^21",
"PDRefBuf": 1,
"EnableLOFF": "LOFF Disabled",
"COMP_TH": "95%",
"ILEAD_OFF": "6nA",
"FLEAD_OFF": "fDR/4",
"ChannelPowerDown": 1,
"ChannelGain": 24,
"ChannelSRB2": 0,
"ChannelMux": "Normal",
"LOFF_SENSEP": 0,
"LOFF_SENSEN": 0,
"LOFF_FLIP": 0,
"BIAS_SENSEP": 0,
"BIAS_SENSEN": 0,
"SRB1": "Switches Open",
"SingleShot": "Continuous",
"GPIOdata": 0,
"GPIOcontrol": 0
};
})
return {
profile: profile,
setProfile: function(newProfile)
profile = newProfile;
},
configSelections: configSelections,
setConfigSelections: function(newConfig) {
configSelections = newConfig;
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment