REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
Loading...
Searching...
No Matches
AD840X.cpp
Go to the documentation of this file.
10functions::AD8402::AD8402(bus::addr_t address) : functions::DataFunction(address, DEFAULT_SPI_SETTINGS) {}
21functions::AD8403::AD8403(bus::addr_t address) : functions::DataFunction(address, DEFAULT_SPI_SETTINGS) {}
27 // Since we always send 16 bits, we must send 6 "empty" bits and have the command word in the last 10 bits we
35 // We also need to consider the shifting of bits when we send the data the second time in PEDANTIC mode.
bool write_channel_raw(uint8_t ch, uint8_t raw)
Channel can be 0 or 1. Will return false on invalid channels.
Definition AD840X.cpp:12
static const SPISettings DEFAULT_SPI_SETTINGS
Definition AD840X.h:8
static const SPISettings DEFAULT_SPI_SETTINGS
Definition AD840X.h:19
bool write_channel_raw(uint8_t ch, uint8_t raw)
Channel can be beteen 0 and 3.
Definition AD840X.cpp:23
A DataFunction class wraps SPI communication over the digital bus.
Definition functions.h:47