Home
last modified time | relevance | path

Searched refs:MC_PER_C (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/sensor/microchip/mcp970x/
Dmcp970x.c21 #define MC_PER_C 1000 macro
78 t = (MC_PER_C * (raw_val - MV_AT_0C_MCP9700_9700A)) / T_COEFF_MCP9700_9700A; in get()
82 t = (MC_PER_C * 10 * (raw_val - MV_AT_0C_MCP9701_9701A)) / t_coeff; in get()
85 val->val1 = t / MC_PER_C; in get()
86 val->val2 = 1000 * (t % MC_PER_C); in get()