Sha256: 28d15527dacd8983fba6b1562ea557e73dbbd5477ce3c828c1814c79708b41fa

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

/* =========================================================================
    CMock - Automatic Mock Generation for C
    ThrowTheSwitch.org
    Copyright (c) 2007-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 vendor/cmock/examples/temp_sensor/src/AdcConductor.c
ceedling-1.0.0 vendor/cmock/examples/temp_sensor/src/AdcConductor.c