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

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

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

Go to the source code of this file.

Classes

class  as5047u::SpiInterface< Derived >
 

Namespaces

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

Typedefs

template<typename Port >
using as5047u::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 as5047u::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 as5047u::detail::kTransferReportsStatus
 True when the port's transfer() reports a status (returns bool).
 

Detailed Description

CRTP-based SPI bus interface for AS5047U driver.