Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
// LightSensorDriver.cpp
module;
#include <cstdint>
module Driver.LightSensorDriver;
namespace Driver
{
std::uint32_t LightSensorDriver::getAmbientLightLevel() const noexcept
{
// arbitrary value
const std::uint32_t adcResult = 10U;
return adcResult;
}
bool LightSensorDriver::startAdc() noexcept
{
return true;
}
bool LightSensorDriver::stopAdc() noexcept
{
return true;
}
}a38f6f2eaThis file is pinned to the selected release. Download the original to open it in your design tool.