Program Listing for File HAL.hpp

Return to documentation for file (/home/asunye/wd/dev/emod_docs/emod_controller/build_x86/install/include/HAL.hpp)

#ifndef HAL_HPP_
#define HAL_HPP_

#include "Sleep.h"

// Forward declaration
class LEDs;
class PowerStatus;
class RTC;
class Timer;
class UART;
class OTA;

class HAL {
public:
    static LEDs& getLEDs();

    static PowerStatus& getPowerStatus();

    static RTC& getRTC();

    static Timer* getTimer();

    static UART& getUART();

    static OTA& getOTA();

    static void sleepS( const uint32_t s_time );

    static void sleepMs( const uint32_t ms_time );

    static void sleepUs( const uint32_t us_time );
};

#endif  // HAL_HPP_