Contains temperature initialization and execution functions. More...
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. | |
Contains temperature public functions and macros.
temperature device driver
<>
Definition in file dev_temp.h.
| #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.
| #define MAX_NUM_SAMPLES_TEMP_BUFFER_AS_EXP_OF_TWO 6 |
Definition at line 36 of file dev_temp.h.
| typedef struct TEMP_SETTINGS_s TEMP_SETTINGS_t |
Definition at line 54 of file dev_temp.h.
|
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.