Hardware Abstraction Layer for FreeRTOS
temp_ntc.h File Reference

Go to the source code of this file.

Macros

#define TEMP_NTC(id, tn, b, rn, _adcmax)
 
#define TEMP_NTC_ID(id)   HAL_GET_ID(temp, ntc, ntc_##id)
 

Functions

int32_t ntc_temp_connect (struct temp *temp, struct adc *adc)
 

Macro Definition Documentation

◆ TEMP_NTC

#define TEMP_NTC (   id,
  tn,
  b,
  rn,
  _adcmax 
)
Value:
struct temp_ntc ntc_##id = { \
TEMP_INIT_DEV(ntc) \
HAL_NAME("NTC " #id) \
.adc = NULL, \
.Tn = tn, \
.B = b, \
.Rn = rn, \
.adcmax = _adcmax, \
}; \
TEMP_ADDDEV(ntc, ntc_##id)

◆ TEMP_NTC_ID

#define TEMP_NTC_ID (   id)    HAL_GET_ID(temp, ntc, ntc_##id)

Function Documentation

◆ ntc_temp_connect()

int32_t ntc_temp_connect ( struct temp *  temp,
struct adc *  adc 
)