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

Macros

#define HAL_PTC_GetData(hptc)   (*(hptc->Chn->TDR))
 Get PTC Data. More...
 

Functions

HAL_StatusTypeDef HAL_PTC_Init (PTC_HandleTypeDef *hptc)
 Initialize PTC. More...
 
HAL_StatusTypeDef HAL_PTC_Enable (PTC_HandleTypeDef *hptc, int enable)
 Enable/disable PTC. More...
 
void HAL_PTC_IRQHandler (PTC_HandleTypeDef *hptc)
 Handle PTC interrupt. More...
 

Detailed Description

Macro Definition Documentation

◆ HAL_PTC_GetData

#define HAL_PTC_GetData (   hptc)    (*(hptc->Chn->TDR))

Get PTC Data.

Parameters
hptcHandle of PTC
Return values
PTCdata

Function Documentation

◆ HAL_PTC_Enable()

HAL_StatusTypeDef HAL_PTC_Enable ( PTC_HandleTypeDef hptc,
int  enable 
)

Enable/disable PTC.

Parameters
hptcHandle of PTC
enable1: enable, 0: disable
Return values
HAL_OKif successful, otherwise error

◆ HAL_PTC_Init()

HAL_StatusTypeDef HAL_PTC_Init ( PTC_HandleTypeDef hptc)

Initialize PTC.

Parameters
hptcHandle of PTC
Return values
HAL_OKif successful, otherwise error

◆ HAL_PTC_IRQHandler()

void HAL_PTC_IRQHandler ( PTC_HandleTypeDef hptc)

Handle PTC interrupt.

Parameters
hptcHandle of PTC
Return values
None