HomeGPT v.1.0
HomeGPT revolutionizes home automation with advanced features such as facial recognition for secure access, mood-responsive lighting, RFID-enabled garage entry, and clap-activated door closures. This system elevates the living experience by seamlessly blending security, convenience, and ambiance-enhancing technology.
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
spidevpp::Spi Class Reference

#include <spi.h>

Public Member Functions

 Spi (const std::string &device)
 
void setBitsPerWord (uint8_t bitsPerWord)
 
uint8_t getBitsPerWord () const
 
void setSpeed (uint32_t speed)
 
uint32_t getSpeed () const
 
void setMode (uint32_t mode)
 
uint32_t getMode () const
 
void setDelay (std::chrono::microseconds)
 
std::chrono::microseconds getDelay () const
 
void write (char *pData, size_t len)
 
void read (char *pData, size_t len)
 
void writeRead (char *pData, size_t len)
 
char writeRead (char data)
 

Friends

template<class Stream >
Stream & operator<< (Stream &out, const Spi &)
 

Constructor & Destructor Documentation

◆ Spi()

spidevpp::Spi::Spi ( const std::string &  device)
explicit

Member Function Documentation

◆ getBitsPerWord()

uint8_t spidevpp::Spi::getBitsPerWord ( ) const

◆ getDelay()

std::chrono::microseconds spidevpp::Spi::getDelay ( ) const

◆ getMode()

uint32_t spidevpp::Spi::getMode ( ) const

◆ getSpeed()

uint32_t spidevpp::Spi::getSpeed ( ) const

◆ read()

void spidevpp::Spi::read ( char *  pData,
size_t  len 
)
Here is the caller graph for this function:

◆ setBitsPerWord()

void spidevpp::Spi::setBitsPerWord ( uint8_t  bitsPerWord)
Here is the caller graph for this function:

◆ setDelay()

void spidevpp::Spi::setDelay ( std::chrono::microseconds  delay)

◆ setMode()

void spidevpp::Spi::setMode ( uint32_t  mode)
Here is the caller graph for this function:

◆ setSpeed()

void spidevpp::Spi::setSpeed ( uint32_t  speed)
Here is the caller graph for this function:

◆ write()

void spidevpp::Spi::write ( char *  pData,
size_t  len 
)
Here is the caller graph for this function:

◆ writeRead() [1/2]

void spidevpp::Spi::writeRead ( char *  pData,
size_t  len 
)
Here is the caller graph for this function:

◆ writeRead() [2/2]

char spidevpp::Spi::writeRead ( char  data)
Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

template<class Stream >
Stream & operator<< ( Stream &  out,
const Spi spi 
)
friend

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