|
ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
|
SPI configuration-port codec for the AD9238 (and the shared ADI high-speed-ADC SPI map it belongs to) - PC_ENABLE_AD9238. More...
#include "protocore_config.h"Go to the source code of this file.
SPI configuration-port codec for the AD9238 (and the shared ADI high-speed-ADC SPI map it belongs to) - PC_ENABLE_AD9238.
The AD9238 (12-bit, 20/40/65 MSPS dual ADC) has TWO interfaces that must not be confused:
Confidence note. The instruction-word framing and the transfer-register mechanism are the standardized shape used across this ADI ADC generation and are implemented directly from that convention. The specific per-register bit-field constants below (Ad9238Reg and the test- pattern / output-mode enums) transcribe the AD9238 Rev. D datasheet's register table as best documented; confirm every address and bit position against your part's datasheet revision before writing to real silicon - per this project's hardware-verification policy (docs/KNOWN_LIMITATIONS.md), nothing here has been validated against a physical AD9238 yet.
Reference: Analog Devices AD9238 Data Sheet Rev. D, "Serial Port Interface (SPI)" section.
Definition in file ad9238.h.