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

#include "diag_task.hpp"
#include "logger.hpp"

static const char* TAG = "DiagTask";

DiagTask::DiagTask()
    : m_isInitialized(false)
{
}

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

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

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

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

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