Debian Codegraph @

examples/temp_sensor/src/AdcModel.c

raw symbols SCIP
1 #include "AdcModel.h"
2 #include "TaskScheduler.h"
3 #include "TemperatureCalculator.h"
4 #include "TemperatureFilter.h"
5
6 bool AdcModel_DoGetSample(void)
7 {
8 return TaskScheduler_DoAdc();
9 }
10
11 void AdcModel_ProcessInput(uint16 millivolts)
12 {
13 TemperatureFilter_ProcessInput(TemperatureCalculator_Calculate(millivolts));
14 }
15
16 bool AdcModel_DoNothingExceptTestASpecialType(EXAMPLE_STRUCT_T ExampleStruct)
17 {
18 //This doesn't really do anything. it's only here to make sure I can compare a struct.
19 return FALSE;
20 }
21 bool AdModel_DoNothingExceptTestPointers(uint32* pExample)
22 {
23 //This doesn't really do anything. it's only here to make sure I can compare a pointer value.
24 return FALSE;
25 }
26
27 EXAMPLE_STRUCT_T AdcModel_DoNothingExceptReturnASpecialType(void)
28 {
29 EXAMPLE_STRUCT_T example; //again, this just is here to test that I can return a struct
30 example.x = 99;
31 example.y = 1;
32 return example;
33 }