AT25040 Driver
API reference
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
at25040::SpiInterface< Derived > Class Template Reference

#include <at25040_spi_interface.hpp>

Public Member Functions

bool transfer (const uint8_t *tx, uint8_t *rx, std::size_t len, uint32_t timeout_ms)
 
 SpiInterface (const SpiInterface &)=delete
 
SpiInterface & operator= (const SpiInterface &)=delete
 

Protected Member Functions

 SpiInterface ()=default
 
 SpiInterface (SpiInterface &&)=default
 
SpiInterface & operator= (SpiInterface &&)=default
 
 ~SpiInterface ()=default
 

Detailed Description

template<typename Derived>
class at25040::SpiInterface< Derived >
Template Parameters
DerivedMust implement bool transfer(const uint8_t* tx, uint8_t* rx, size_t len, uint32_t timeout_ms). May implement void delay_us(uint32_t us) (sleep at least us microseconds): when it does, Device::WaitReady() sleeps between status polls instead of polling back to back.

Constructor & Destructor Documentation

◆ SpiInterface() [1/3]

template<typename Derived >
at25040::SpiInterface< Derived >::SpiInterface ( const SpiInterface< Derived > &  )
delete

◆ SpiInterface() [2/3]

template<typename Derived >
at25040::SpiInterface< Derived >::SpiInterface ( )
protecteddefault

◆ SpiInterface() [3/3]

template<typename Derived >
at25040::SpiInterface< Derived >::SpiInterface ( SpiInterface< Derived > &&  )
protecteddefault

◆ ~SpiInterface()

template<typename Derived >
at25040::SpiInterface< Derived >::~SpiInterface ( )
protecteddefault

Member Function Documentation

◆ operator=() [1/2]

template<typename Derived >
SpiInterface & at25040::SpiInterface< Derived >::operator= ( const SpiInterface< Derived > &  )
delete

◆ operator=() [2/2]

template<typename Derived >
SpiInterface & at25040::SpiInterface< Derived >::operator= ( SpiInterface< Derived > &&  )
protecteddefault

◆ transfer()

template<typename Derived >
bool at25040::SpiInterface< Derived >::transfer ( const uint8_t *  tx,
uint8_t *  rx,
std::size_t  len,
uint32_t  timeout_ms 
)
inline

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