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.

C code. Analog temperature sensor on CC2510.

Other Parts Discussed in Thread: CC2510

Good day, everyone. Here is the function to getting temperature. Can't find anything that tells me what is  [adcV - 0x42] means.

INT8 getTemperature(void){
   INT8 volatile adcV;

   halWait(0x01);

   ADC_SINGLE_CONVERSION(0x00|0x20|0x0E);
   ADC_SAMPLE_SINGLE();
   while(!ADC_SAMPLE_READY());

   adcV = ADCL;
   adcV = ADCH;

  return conversionValues[adcV - 0x42];


Best regards, thank you for attention,

Andrey Belyy