blob: 28d9d20cf315413fb0f7dd5f7b79c4ae9b298db7 (
plain)
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
|
#include "Types.h"
#include "AdcConductor.h"
#include "AdcModel.h"
#include "AdcHardware.h"
void AdcConductor_Init(void)
{
AdcHardware_Init();
}
void AdcConductor_Run(void)
{
if (AdcModel_DoGetSample() && AdcHardware_GetSampleComplete())
{
AdcModel_ProcessInput(AdcHardware_GetSample());
AdcHardware_StartConversion();
}
}
bool AdcConductor_JustHereToTest(void)
{
EXAMPLE_STRUCT_T ExampleStruct;
ExampleStruct.x = 5;
ExampleStruct.y = 7;
return AdcModel_DoNothingExceptTestASpecialType(ExampleStruct);
}
bool AdcConductor_AlsoHereToTest(void)
{
EXAMPLE_STRUCT_T example = AdcModel_DoNothingExceptReturnASpecialType();
return ((example.x == 99) && (example.y == 1));
}
bool AdcConductor_YetAnotherTest(void)
{
uint32 example = 3;
return AdModel_DoNothingExceptTestPointers(&example);
}
|