G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
TS Exported Functions

Functions

__STATIC_INLINE void DDL_TS_Enable (TS_TypeDef *TSx)
 Enable Temperature Sensor.
__STATIC_INLINE void DDL_TS_Disable (TS_TypeDef *TSx)
 Disable Temperature Sensor.
__STATIC_INLINE uint32_t DDL_TS_IsEnabled (TS_TypeDef *TSx)
 Checks if Temperature Sensor is enabled.
__STATIC_INLINE void DDL_TS_SetSamplingRate (TS_TypeDef *TSx, uint32_t SamplingRate)
 Set Temperature Sensor Sampling Rate.
__STATIC_INLINE uint32_t DDL_TS_GetSamplingRate (TS_TypeDef *TSx)
 Get Temperature Sensor Sampling Rate.
__STATIC_INLINE void DDL_TS_SetDataOverFlowControlMode (TS_TypeDef *TSx, uint32_t mode)
 Set Data Overflow Control Bit.
__STATIC_INLINE uint32_t DDL_TS_GetDataOverFlowControlMode (TS_TypeDef *TSx)
 Get Data Overflow Control Bit.
__STATIC_INLINE void DDL_TS_EnableIT (TS_TypeDef *TSx)
 Enable Temperature Sensor Interrupt.
__STATIC_INLINE void DDL_TS_DisableIT (TS_TypeDef *TSx)
 Disable Temperature Sensor Interrupt.
__STATIC_INLINE uint32_t DDL_TS_IsEnabledIT (TS_TypeDef *TSx)
 Checks if Temperature Sensor Interrupt is enabled.
__STATIC_INLINE void DDL_TS_EnableIT_OVR (TS_TypeDef *TSx)
 Enable Temperature Sensor DataOverflow Interrupt.
__STATIC_INLINE void DDL_TS_DisableIT_OVR (TS_TypeDef *TSx)
 Disable Temperature Sensor DataOverflow Interrupt.
__STATIC_INLINE uint32_t DDL_TS_IsEnabledIT_OVR (TS_TypeDef *TSx)
 Checks if Temperature Sensor DataOverflow Interrupt is enabled.
__STATIC_INLINE uint32_t DDL_TS_ReadData (TS_TypeDef *TSx)
 Read TS Data.
__STATIC_INLINE uint32_t DDL_TS_IsActiveFlag_RDY (TS_TypeDef *TSx)
 Read the effective flag of the sampling data.
__STATIC_INLINE void DDL_TS_ClearFlag_RDY (TS_TypeDef *TSx)
 Clear the effective flag of the sampling data.
__STATIC_INLINE uint32_t DDL_TS_IsActiveFlag_OVR (TS_TypeDef *TSx)
 Read the effective flag of the sampling data.
__STATIC_INLINE void DDL_TS_ClearFlag_OVR (TS_TypeDef *TSx)
 Clear the effective flag of the sampling data.

Detailed Description

Function Documentation

◆ DDL_TS_ClearFlag_OVR()

__STATIC_INLINE void DDL_TS_ClearFlag_OVR ( TS_TypeDef * TSx)

Clear the effective flag of the sampling data.

Parameters
TSxTS Instance
Return values
None

Definition at line 290 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_ClearFlag_RDY()

__STATIC_INLINE void DDL_TS_ClearFlag_RDY ( TS_TypeDef * TSx)

Clear the effective flag of the sampling data.

Parameters
TSxTS Instance
Return values
None

Definition at line 268 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_Disable()

__STATIC_INLINE void DDL_TS_Disable ( TS_TypeDef * TSx)

Disable Temperature Sensor.

Parameters
TSxTS Instance
Return values
None

Definition at line 112 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_DisableIT()

__STATIC_INLINE void DDL_TS_DisableIT ( TS_TypeDef * TSx)

Disable Temperature Sensor Interrupt.

Parameters
TSxTS Instance
Return values
None

Definition at line 196 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_DisableIT_OVR()

__STATIC_INLINE void DDL_TS_DisableIT_OVR ( TS_TypeDef * TSx)

Disable Temperature Sensor DataOverflow Interrupt.

Parameters
TSxTS Instance
Return values
None

Definition at line 226 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_Enable()

__STATIC_INLINE void DDL_TS_Enable ( TS_TypeDef * TSx)

Enable Temperature Sensor.

Parameters
TSxTS Instance
Return values
None

Definition at line 102 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_EnableIT()

__STATIC_INLINE void DDL_TS_EnableIT ( TS_TypeDef * TSx)

Enable Temperature Sensor Interrupt.

Parameters
TSxTS Instance
Return values
None

Definition at line 186 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_EnableIT_OVR()

__STATIC_INLINE void DDL_TS_EnableIT_OVR ( TS_TypeDef * TSx)

Enable Temperature Sensor DataOverflow Interrupt.

Parameters
TSxTS Instance
Return values
None

Definition at line 216 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_GetDataOverFlowControlMode()

__STATIC_INLINE uint32_t DDL_TS_GetDataOverFlowControlMode ( TS_TypeDef * TSx)

Get Data Overflow Control Bit.

Parameters
TSxTS Instance
Return values
SamplingRateSampling Rate

Definition at line 176 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_GetSamplingRate()

__STATIC_INLINE uint32_t DDL_TS_GetSamplingRate ( TS_TypeDef * TSx)

Get Temperature Sensor Sampling Rate.

Parameters
TSxTS Instance
Return values
SamplingRateSampling Rate

Definition at line 151 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_IsActiveFlag_OVR()

__STATIC_INLINE uint32_t DDL_TS_IsActiveFlag_OVR ( TS_TypeDef * TSx)

Read the effective flag of the sampling data.

Parameters
TSxTS Instance
Return values
Samplingalignment Overflow Flag

Definition at line 280 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_IsActiveFlag_RDY()

__STATIC_INLINE uint32_t DDL_TS_IsActiveFlag_RDY ( TS_TypeDef * TSx)

Read the effective flag of the sampling data.

Parameters
TSxTS Instance
Return values
Samplingalignment Valid Flag

Definition at line 258 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_IsEnabled()

__STATIC_INLINE uint32_t DDL_TS_IsEnabled ( TS_TypeDef * TSx)

Checks if Temperature Sensor is enabled.

Parameters
TSxTS Instance
Return values
Stateof bit (1 or 0).

Definition at line 122 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_IsEnabledIT()

__STATIC_INLINE uint32_t DDL_TS_IsEnabledIT ( TS_TypeDef * TSx)

Checks if Temperature Sensor Interrupt is enabled.

Parameters
TSxTS Instance
Return values
Stateof bit (1 or 0).

Definition at line 206 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_IsEnabledIT_OVR()

__STATIC_INLINE uint32_t DDL_TS_IsEnabledIT_OVR ( TS_TypeDef * TSx)

Checks if Temperature Sensor DataOverflow Interrupt is enabled.

Parameters
TSxTS Instance
Return values
Stateof bit (1 or 0).

Definition at line 236 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_ReadData()

__STATIC_INLINE uint32_t DDL_TS_ReadData ( TS_TypeDef * TSx)

Read TS Data.

Parameters
TSxTS Instance
Return values
data,rangeis 0x0000 ~ 0xFFFF

Definition at line 246 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_SetDataOverFlowControlMode()

__STATIC_INLINE void DDL_TS_SetDataOverFlowControlMode ( TS_TypeDef * TSx,
uint32_t mode )

Set Data Overflow Control Bit.

Parameters
TSxTS Instance
SamplingRateSampling Rate
Return values
None

Definition at line 164 of file g32r4xx_ddl_ts.h.

◆ DDL_TS_SetSamplingRate()

__STATIC_INLINE void DDL_TS_SetSamplingRate ( TS_TypeDef * TSx,
uint32_t SamplingRate )

Set Temperature Sensor Sampling Rate.

Parameters
TSxTS Instance
SamplingRateSampling Rate
Return values
None

Definition at line 137 of file g32r4xx_ddl_ts.h.