STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
tsensor.h
Go to the documentation of this file.
1 
39 /* Define to prevent recursive inclusion -------------------------------------*/
40 #ifndef __TSENSOR_H
41 #define __TSENSOR_H
42 
43 #ifdef __cplusplus
44  extern "C" {
45 #endif
46 
47 /* Includes ------------------------------------------------------------------*/
48 #include <stdint.h>
49 
69 typedef struct
70 {
71  uint8_t AlertMode; /* Alert Mode Temperature out of range*/
72  uint8_t ConversionMode; /* Continuous/One Shot Mode */
73  uint8_t ConversionResolution; /* Temperature Resolution */
74  uint8_t ConversionRate; /* Number of measure per second */
75  uint8_t TemperatureLimitHigh; /* High Temperature Limit Range */
76  uint8_t TemperatureLimitLow; /* Low Temperature Limit Range */
85 typedef struct
86 {
87  void (*Init)(uint16_t, TSENSOR_InitTypeDef *);
88  uint8_t (*IsReady)(uint16_t, uint32_t);
89  uint8_t (*ReadStatus)(uint16_t);
90  uint16_t (*ReadTemp)(uint16_t);
112 #ifdef __cplusplus
113 }
114 #endif
115 
116 #endif /* __TSENSOR_H */
117 
118 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
uint8_t AlertMode
Definition: tsensor.h:71
uint8_t ConversionResolution
Definition: tsensor.h:73
uint8_t TemperatureLimitLow
Definition: tsensor.h:76
uint8_t ConversionRate
Definition: tsensor.h:74
uint8_t ConversionMode
Definition: tsensor.h:72
uint8_t TemperatureLimitHigh
Definition: tsensor.h:75