-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstm32303c_eval_tsensor.h
116 lines (94 loc) · 2.26 KB
/
stm32303c_eval_tsensor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/**
******************************************************************************
* @file stm32303c_eval_tsensor.h
* @author MCD Application Team
* @brief This file contains all the functions prototypes for the
* stm32303c_eval_tsensor.c firmware driver.
******************************************************************************
* @attention
*
* Copyright (c) 2016 STMicroelectronics.
* 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.
*
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __STM32303C_EVAL_TSENSOR_H
#define __STM32303C_EVAL_TSENSOR_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "stm32303c_eval.h"
#include "../Components/stts751/stts751.h"
/** @addtogroup BSP
* @{
*/
/** @addtogroup STM32303C_EVAL
* @{
*/
/** @addtogroup STM32303C_EVAL_TSENSOR STM32303C-EVAL TSENSOR
* @{
*/
/** @defgroup STM32303C_EVAL_TSENSOR_Private_Variables Private Variables
* @{
*/
/**
* @}
*/
/** @defgroup STM32303C_EVAL_TSENSOR_Exported_Types Exported Types
* @{
*/
/**
* @brief TSENSOR Status
*/
typedef enum
{
TSENSOR_OK = 0,
TSENSOR_ERROR
}TSENSOR_Status_TypDef;
/**
* @}
*/
/** @defgroup STM32303C_EVAL_TSENSOR_Exported_Constants Exported Constants
* @{
*/
/* Temperature Sensor hardware I2C address */
#define TSENSOR_I2C_ADDRESS 0x90
/* Maximum number of trials use for STTS751_IsReady function */
#define TSENSOR_MAX_TRIALS 50
/**
* @}
*/
/** @defgroup STM32303C_EVAL_I2C_TSENSOR_Exported_Functions Exported Functions
* @{
*/
uint32_t BSP_TSENSOR_Init(void);
uint8_t BSP_TSENSOR_ReadStatus(void);
uint16_t BSP_TSENSOR_ReadTemp(void);
/**
* @}
*/
/** @defgroup STM32303C_EVAL_TSENSOR_Private_Functions Private Functions
* @{
*/
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif /* __STM32303C_EVAL_TSENSOR_H */