X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/e8940d3dd9a3c23e904ac75c40cf1f8e546f52fe..0e08764c8201f13bd03e685bfc7a2e5ee65dc540:/drivers/sensors/ina219/ina219.c diff --git a/drivers/sensors/ina219/ina219.c b/drivers/sensors/ina219/ina219.c index da56762..9bdc5dd 100644 --- a/drivers/sensors/ina219/ina219.c +++ b/drivers/sensors/ina219/ina219.c @@ -141,7 +141,7 @@ static void ina219Read16(uint8_t reg, uint16_t *value) @note These calculations assume a 0.1 ohm resistor is present */ /**************************************************************************/ -static void ina219SetCalibration_32V_2A(void) +void ina219SetCalibration_32V_2A(void) { // By default we use a pretty huge range for the input voltage, // which probably isn't the most appropriate choice for system @@ -230,7 +230,7 @@ static void ina219SetCalibration_32V_2A(void) @note These calculations assume a 0.1 ohm resistor is present */ /**************************************************************************/ -static void ina219SetCalibration_32V_1A(void) +void ina219SetCalibration_32V_1A(void) { // By default we use a pretty huge range for the input voltage, // which probably isn't the most appropriate choice for system @@ -321,7 +321,7 @@ static void ina219SetCalibration_32V_1A(void) @note These calculations assume a 0.1 ohm resistor is present */ /**************************************************************************/ -static void ina219SetCalibration_16V_500mA(void) +void ina219SetCalibration_16V_500mA(void) { // VBUS_MAX = 16V // VSHUNT_MAX = 0.08 (Assumes Gain 2, 80mV, can also be 0.32, 0.16, 0.04) @@ -406,7 +406,7 @@ static void ina219SetCalibration_16V_500mA(void) @note These calculations assume a 0.1 ohm resistor is present */ /**************************************************************************/ -static void ina219SetCalibration_16V_200mA(void) +void ina219SetCalibration_16V_200mA(void) { // VBUS_MAX = 16V // VSHUNT_MAX = 0.04 (Assumes Gain 1, 40mV, can also be 0.32, 0.16, 0.08)