Sha256: 6765ad4c305aa89013b9d4b968f8c30512ac0d54faeb1959eaf33944b430b868

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

/* =========================================================================
    Ceedling - Test-Centered Build System for C
    ThrowTheSwitch.org
    Copyright (c) 2010-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
    SPDX-License-Identifier: MIT
========================================================================= */

#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

2 entries across 2 versions & 1 rubygems

Version Path
ceedling-1.0.1 examples/temp_sensor/src/AdcConductor.c
ceedling-1.0.0 examples/temp_sensor/src/AdcConductor.c