Sha256: 92c6c95907ff23bb41a3b6ab077935b112e4a40fe11ea0fab30e3f4ad82c7516

Contents?: true

Size: 884 Bytes

Versions: 54

Compression:

Stored size: 884 Bytes

Contents

#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);
}

Version data entries

54 entries across 39 versions & 1 rubygems

Version Path
ceedling-0.29.1 vendor/cmock/examples/temp_sensor/src/AdcConductor.c
ceedling-0.29.1 examples/temp_sensor/src/AdcConductor.c
ceedling-0.29.0 vendor/cmock/examples/temp_sensor/src/AdcConductor.c
ceedling-0.29.0 examples/temp_sensor/src/AdcConductor.c
ceedling-0.19.0 examples/temp_sensor/src/AdcConductor.c
ceedling-0.18.0 examples/temp_sensor/src/AdcConductor.c
ceedling-0.18.0 vendor/cmock/examples/src/AdcConductor.c
ceedling-0.17.0 vendor/cmock/examples/src/AdcConductor.c
ceedling-0.17.0 examples/temp_sensor/src/AdcConductor.c
ceedling-0.16.0 vendor/cmock/examples/src/AdcConductor.c
ceedling-0.16.0 examples/temp_sensor/src/AdcConductor.c
ceedling-0.15.6 vendor/cmock/examples/src/AdcConductor.c
ceedling-0.15.6 examples/temp_sensor/src/AdcConductor.c
ceedling-0.15.5 vendor/cmock/examples/src/AdcConductor.c
ceedling-0.15.5 examples/temp_sensor/src/AdcConductor.c
ceedling-0.15.4 examples/temp_sensor/src/AdcConductor.c
ceedling-0.15.4 vendor/cmock/examples/src/AdcConductor.c
ceedling-0.15.3 examples/temp_sensor/src/AdcConductor.c
ceedling-0.15.3 vendor/cmock/examples/src/AdcConductor.c
ceedling-0.15.2 vendor/cmock/examples/src/AdcConductor.c