ADS7952 Driver
API reference
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions | Variables
ads7952_spi_interface.hpp File Reference

CRTP-based SPI bus interface for ADS7952 driver. More...

#include <cstddef>
#include <cstdint>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  ads7952::SpiInterface< Derived >
 

Namespaces

namespace  ads7952
 
namespace  ads7952::detail
 CRTP-based template interface for SPI bus operations.
 

Typedefs

template<typename Port >
using ads7952::detail::TransferResult = decltype(std::declval< Port & >().transfer(std::declval< const uint8_t * >(), std::declval< uint8_t * >(), std::declval< std::size_t >()))
 Return type of Port::transfer(const uint8_t*, uint8_t*, std::size_t).
 

Functions

template<typename Port >
bool ads7952::detail::Transfer (Port &port, const uint8_t *tx, uint8_t *rx, std::size_t len)
 Call the port's transfer() and return its status.
 

Variables

template<typename Port >
constexpr bool ads7952::detail::kTransferReportsStatus
 True when the port's transfer() reports a status (returns bool).
 

Detailed Description

CRTP-based SPI bus interface for ADS7952 driver.

Definition in file ads7952_spi_interface.hpp.