ESPHome  2024.10.2
Namespaces | Enumerations | Functions
weikai_spi.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_spi
 

Enumerations

enum  esphome::weikai_spi::RegType { esphome::weikai_spi::REG = 0, esphome::weikai_spi::FIFO = 1 }
 
enum  esphome::weikai_spi::CmdType { esphome::weikai_spi::WRITE_CMD = 0, esphome::weikai_spi::READ_CMD = 1 }
 

Functions

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

Detailed Description

WeiKai component family - classes implementation.

Date
Last Modified: 2024/04/06 14:46:09

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

Definition in file weikai_spi.cpp.