/**
 * @file voc.cpp
 * @brief Voc component implementation
 * @author Mahmoud Elmohtady
 * @company Nabd solutions - ASF
 * @copyright Copyright (c) 2025
 */

#include "voc.hpp"
#include "logger.hpp"

static const char* TAG = "Voc";

Voc::Voc()
    : m_isInitialized(false)
{
}

Voc::~Voc()
{
    deinitialize();
}

bool Voc::initialize()
{
    // TODO: Implement initialization
    m_isInitialized = true;
    ASF_LOGI(TAG, 3900, asf::logger::Criticality::LOW, "Voc initialized successfully");
    return true;
}

bool Voc::deinitialize()
{
    if (!m_isInitialized)
    {
        return false;
    }

    // TODO: Implement deinitialization
    m_isInitialized = false;
    return true;
}

bool Voc::isInitialized() const
{
    return m_isInitialized;
}
