This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28377S: CCS/TMS320F28377S

Part Number: TMS320F28377S

Tool/software: Code Composer Studio

in the below code, is the sensor sample here referring to the name of the register in the otp or just a variable reference created to get the data from the OTP


// GetTemperatureC - This function uses the reference data stored in OTP to
// convert the raw temperature sensor reading into degrees C
//
int16 GetTemperatureC(int16 sensorSample)
{
sensorSample = (int16)((tempSensor_scaleFactor/2.5)*(sensorSample));

return (((sensorSample - tempSensor_tempOffset)*tempSensor_tempSlope +
FP_ROUND + KELVIN_OFF)/FP_SCALE - KELVIN);
}