22#ifndef STM32BUSIO_STM32BUSIOREGISTER_HPP_
23#define STM32BUSIO_STM32BUSIOREGISTER_HPP_
25#include "STM32SPIDevice.hpp"
Represents one addressable, read-only, MSB-first register accessed over an STM32SPIDevice,...
uint32_t read()
Sends the (address-bit-set) register address, then reads back width bytes MSB-first and returns them ...
STM32BusIORegister(STM32SPIDevice *spiDevice, uint32_t regAddr, size_t width=1, size_t addressWidth=1)
Constructs a view over one register.
Wraps one SPI peripheral + chip-select pin into read/write/transfer operations, mirroring the hardwar...