思澈科技软件开发工具包  2.20

Macros

#define HAL_TSEN_Data(htsen)   ((((int32_t)(htsen->Instance->TSEN_RDATA))+3000)*749/10100-277)
 Temeprature readying convert to Centidegree. More...
 
#define HAL_ERROR_TEMPRATURE   1000 /*<! -1000 means ready error*/
 
#define HAL_TSEN_MAX_DELAY   20 /*<! Max delay for temperature read, 20ms*/
 

Functions

int HAL_TSEN_Read (TSEN_HandleTypeDef *htsen)
 Synchronized Read the current temperature. More...
 
void HAL_TSEN_IRQHandler (TSEN_HandleTypeDef *htsen)
 Interrupt handler for temeprature sensor. More...
 
HAL_TSEN_StateTypeDef HAL_TSEN_Read_IT (TSEN_HandleTypeDef *htsen)
 Async Read the current temperature. More...
 

Detailed Description

Macro Definition Documentation

◆ HAL_TSEN_Data

#define HAL_TSEN_Data (   htsen)    ((((int32_t)(htsen->Instance->TSEN_RDATA))+3000)*749/10100-277)

Temeprature readying convert to Centidegree.

Parameters
htsenpointer to a TSEN_HandleTypeDef structure.

Function Documentation

◆ HAL_TSEN_IRQHandler()

void HAL_TSEN_IRQHandler ( TSEN_HandleTypeDef htsen)

Interrupt handler for temeprature sensor.

Parameters
htsenpointer to a TSEN_HandleTypeDef structure.

◆ HAL_TSEN_Read()

int HAL_TSEN_Read ( TSEN_HandleTypeDef htsen)

Synchronized Read the current temperature.

Parameters
htsenpointer to a TSEN_HandleTypeDef structure.
Return values
Currenttemeprature of chipset in Centidegree. -1000 if error.

◆ HAL_TSEN_Read_IT()

HAL_TSEN_StateTypeDef HAL_TSEN_Read_IT ( TSEN_HandleTypeDef htsen)

Async Read the current temperature.

Parameters
htsenpointer to a TSEN_HandleTypeDef structure.
Return values
Currentstate of temperature sensor module, temperature data will be read in interrupt