SLVAFT2A May 2024 – July 2024 TPS2HCS10-Q1
Converts a raw ADC current value to a readable float value.
This is a convenience function that can take a raw value read from one of the ADC result registers and convert the register into a human readable float value.
in | rawValue | Raw value to convert |
in | ksnsVal | KSNS constant from the data sheet |
in | snsRes | Value of resistor on the SNS pin |
returnCode | Floating point representation of current |