ESPHome  2024.12.2
Namespaces | Enumerations | Functions
weikai.cpp File Reference

WeiKai component family - classes implementation. More...

Go to the source code of this file.

Namespaces

 esphome
 Implementation of SPI Controller mode.
 
 esphome::weikai
 

Enumerations

enum  esphome::weikai::RegType { esphome::weikai::REG = 0, esphome::weikai::FIFO = 1 }
 

Functions

std::string esphome::weikai::i2s (uint8_t val)
 convert an int to binary representation as C++ std::string More...
 
uint32_t esphome::weikai::elapsed_ms (uint32_t &last_time)
 measure the time elapsed between two calls More...
 
const char * esphome::weikai::p2s (uart::UARTParityOptions parity)
 Converts the parity enum value to a C string. More...
 
void esphome::weikai::print_buffer (const uint8_t *data, size_t length)
 Display a buffer in hexadecimal format (32 hex values / line) for debug. More...
 
const char * esphome::weikai::reg_to_str (int reg, bool page1)
 
void esphome::weikai::print_buffer (std::vector< uint8_t > buffer)
 Hex converter to print/display a buffer in hexadecimal format (32 hex values / line). More...
 

Detailed Description

WeiKai component family - classes implementation.

Date
Last Modified: 2024/04/06 15:13:11

The classes declared in this file can be used by the Weikai family

Definition in file weikai.cpp.