|  | Dual Active Bridge Development Board (Part-No. ) |
Content |  |  |  |  |  |

Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions | Variables
dev_temp.h File Reference
Device Layer » Temperature Detection

Contains temperature initialization and execution functions. More...

`#include <xc.h>`
`#include <stdint.h>`
`#include "adc/adc1.h"`
Include dependency graph for dev_temp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures
struct | TEMP_SETTINGS_s
| A custom data type for temperature measurement. More...

## Macros
#define | MAX_NUM_SAMPLES_TEMP_BUFFER 64
| These have to be renamed to make the temp device driver abstract.
#define | MAX_NUM_SAMPLES_TEMP_BUFFER_AS_EXP_OF_TWO 6
| for bit shifting

## Typedefs
typedef struct TEMP_SETTINGS_s | TEMP_SETTINGS_t

## Functions
void | Dev_Temp_Initialize (void)
| Initializes the temperature data structure.
void | Dev_Temp_Task_100ms (void)
| Executes the Temperature reading every 100ms.
int8_t | Dev_Temp_Get_Temperature_Celcius ()
| This converts the raw values to temperature celcius as per device lookup table.
uint16_t | Dev_Temp_AverageValue (void)
| Returns the average adc temperature reading.
uint8_t | Dev_Temp_Is_Over_Temperature ()
| Returns the status of the Over Temperature flag.
void | Dev_Temp_Get_ADC_Sample (void)
| Gets the temperature ADC sample.

## Variables
TEMP_SETTINGS_t * | devTempDataPtr
| dev temp data object pointer external
TEMP_SETTINGS_t | devTempData
| Data Object of temperature settings.

## Detailed Description

Contains temperature public functions and macros.

temperature device driver

<>

Author
  M70027

Date
  04/03/2024

Definition in file dev_temp.h.

## Macro Definition Documentation

## ◆ MAX_NUM_SAMPLES_TEMP_BUFFER

#define MAX_NUM_SAMPLES_TEMP_BUFFER 64

@

defines the temperature threshold raw average calculated using 64 samples

Definition at line 35 of file dev_temp.h.

## ◆ MAX_NUM_SAMPLES_TEMP_BUFFER_AS_EXP_OF_TWO

#define MAX_NUM_SAMPLES_TEMP_BUFFER_AS_EXP_OF_TWO 6

Definition at line 36 of file dev_temp.h.

## Typedef Documentation

## ◆ TEMP_SETTINGS_t

typedef struct TEMP_SETTINGS_s TEMP_SETTINGS_t

Definition at line 54 of file dev_temp.h.

## Variable Documentation

## ◆ devTempDataPtr

TEMP_SETTINGS_t* devTempDataPtr
| extern

pointer to the Object 'dev_Temp_data_t', providing access to all control and monitoring values. To access it, add the header file to the project, and then the pointer can be used to access the dev_temp_data_type members.

Definition at line 31 of file dev_temp.c.