![]() |
G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
|
Header file of TS DDL module. More...
#include "g32r4xx.h"Go to the source code of this file.
Macros | |
| #define | DDL_TS_SAMPLING_RATE_128 (0x00000000UL) |
| #define | DDL_TS_SAMPLING_RATE_256 (TS_CR_OSR_SEL_0) |
| #define | DDL_TS_SAMPLING_RATE_512 (TS_CR_OSR_SEL_1) |
| #define | DDL_TS_SAMPLING_RATE_1024 (TS_CR_OSR_SEL_0 | TS_CR_OSR_SEL_1) |
| #define | DDL_TS_OVERFLOW_KEEP_OLD (0x00000000UL) |
| #define | DDL_TS_OVERFLOW_USE_NEW (TS_CR_OVRMOD) |
| #define | DDL_TS_FLAG_DATA_IS_RDY (TS_SR_RDY) |
| #define | DDL_TS_FLAG_DATA_IS_NOTRDY (0x00000000UL) |
| #define | DDL_TS_FLAG_DATA_IS_OVR (TS_SR_OVR) |
| #define | DDL_TS_FLAG_DATA_IS_NOTOVR (0x00000000UL) |
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. | |
Header file of TS DDL module.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The original code has been modified by Geehy Semiconductor.
Copyright (c) 2016 STMicroelectronics. Copyright (C) 2025 Geehy Semiconductor. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file g32r4xx_ddl_ts.h.