ESP3D  3.0
Firmware for ESP boards connected to 3D Printer
Hal Class Reference

#include <hal.h>

Public Member Functions

 Hal ()
 
 ~Hal ()
 

Static Public Member Functions

static bool begin ()
 
static void end ()
 
static void wait (uint32_t milliseconds)
 
static uint16_t getChipID ()
 
static bool has_temperature_sensor ()
 
static float temperature ()
 
static bool is_pin_usable (uint pin)
 
static void clearAnalogChannels ()
 
static void pinMode (uint8_t pin, uint8_t mode)
 
static int analogRead (uint8_t pin)
 
static bool analogWrite (uint8_t pin, uint value)
 
static void analogWriteFreq (uint32_t freq)
 
static void analogWriteRange (uint32_t range)
 
static void toneESP (uint8_t pin, unsigned int frequency, unsigned int duration, bool sync=true)
 
static void no_tone (uint8_t pin)
 

Detailed Description

Definition at line 35 of file hal.h.

Constructor & Destructor Documentation

◆ Hal()

Hal::Hal ( )

Definition at line 47 of file hal.cpp.

◆ ~Hal()

Hal::~Hal ( )

Definition at line 53 of file hal.cpp.

Member Function Documentation

◆ analogRead()

int Hal::analogRead ( uint8_t  pin)
static

Definition at line 112 of file hal.cpp.

Here is the caller graph for this function:

◆ analogWrite()

bool Hal::analogWrite ( uint8_t  pin,
uint  value 
)
static

Definition at line 141 of file hal.cpp.

Here is the caller graph for this function:

◆ analogWriteFreq()

void Hal::analogWriteFreq ( uint32_t  freq)
static

Definition at line 179 of file hal.cpp.

Here is the caller graph for this function:

◆ analogWriteRange()

void Hal::analogWriteRange ( uint32_t  range)
static

Definition at line 186 of file hal.cpp.

Here is the caller graph for this function:

◆ begin()

bool Hal::begin ( )
static

Definition at line 195 of file hal.cpp.

Here is the caller graph for this function:

◆ clearAnalogChannels()

void Hal::clearAnalogChannels ( )
static

Definition at line 57 of file hal.cpp.

Here is the caller graph for this function:

◆ end()

void Hal::end ( )
static

Definition at line 207 of file hal.cpp.

Here is the call graph for this function:

◆ getChipID()

uint16_t Hal::getChipID ( )
static

Definition at line 238 of file hal.cpp.

Here is the caller graph for this function:

◆ has_temperature_sensor()

bool Hal::has_temperature_sensor ( )
static

Definition at line 248 of file hal.cpp.

Here is the caller graph for this function:

◆ is_pin_usable()

bool Hal::is_pin_usable ( uint  pin)
static

Definition at line 268 of file hal.cpp.

Here is the caller graph for this function:

◆ no_tone()

void Hal::no_tone ( uint8_t  pin)
static

Definition at line 99 of file hal.cpp.

◆ pinMode()

void Hal::pinMode ( uint8_t  pin,
uint8_t  mode 
)
static

Definition at line 69 of file hal.cpp.

Here is the caller graph for this function:

◆ temperature()

float Hal::temperature ( )
static

Definition at line 258 of file hal.cpp.

Here is the caller graph for this function:

◆ toneESP()

void Hal::toneESP ( uint8_t  pin,
unsigned int  frequency,
unsigned int  duration,
bool  sync = true 
)
static

Definition at line 80 of file hal.cpp.

Here is the call graph for this function:

◆ wait()

void Hal::wait ( uint32_t  milliseconds)
static

Definition at line 226 of file hal.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: