Class HAL

Class Documentation

class HAL

This class represents the Hardware Abstraction Layer classes. It allows to compile in Linux or ESP-IDF port in a transparent manner.

Public Static Functions

static LEDs &getLEDs()

Obtains reference to singleton class LEDs.

static PowerStatus &getPowerStatus()

Obtains reference to singleton class PowerStatus.

static RTC &getRTC()

Obtains reference to singleton class RTC.

static Timer *getTimer()

Obtains reference to singleton class Timer.

static UART &getUART()

Obtains reference to singleton class UART.

static OTA &getOTA()

Obtains reference to singleton class OTA.

static void sleepS(const uint32_t s_time)

Sleeps for specified number of seconds.

Parameters

s_time -- [in] seconds to sleep.

static void sleepMs(const uint32_t ms_time)

Sleeps for specified number of milliseconds.

Parameters

ms_time -- [in] milliseconds to sleep.

static void sleepUs(const uint32_t us_time)

Sleeps for specified number of microseconds.

Parameters

us_time -- [in] microseconds to sleep.