MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / getMaxVoltage

Method getMaxVoltage

libraries/ADS1x15/ADS1X15.cpp:249–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247
248
249float ADS1X15::getMaxVoltage()
250{
251 switch (_gain)
252 {
253 case ADS1X15_PGA_6_144V: return 6.144;
254 case ADS1X15_PGA_4_096V: return 4.096;
255 case ADS1X15_PGA_2_048V: return 2.048;
256 case ADS1X15_PGA_1_024V: return 1.024;
257 case ADS1X15_PGA_0_512V: return 0.512;
258 case ADS1X15_PGA_0_256V: return 0.256;
259 }
260 _err = ADS1X15_INVALID_VOLTAGE;
261 return _err;
262}
263
264
265void ADS1X15::setMode(uint8_t mode)

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36