Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
693a2df9fThis file is pinned to the selected release. Download the original to open it in your design tool.
#include "AmbientLightSensorDriverStub.hpp"
#include <cstdint>
namespace Driver
{
bool AmbientLightSensorDriverStub::onInitialize()
{
return true;
}
bool AmbientLightSensorDriverStub::onStart()
{
return true;
}
bool AmbientLightSensorDriverStub::onStop()
{
return true;
}
bool AmbientLightSensorDriverStub::onReset()
{
return true;
}
std::uint32_t AmbientLightSensorDriverStub::getAmbientLightLevel() const
{
// arbitrary value
const std::uint32_t adcResult = 10;
return adcResult;
}
}