|
ADS7952 Driver 0.1.0
API reference
|
| ▼Nads7952 | The ADS7952 driver: everything it declares lives here; internals in detail |
| Nreg | The ADS795x frame format |
| CADS7952 | Driver for one ADS7950, ADS7951, ADS7952 or ADS7953 on a platform port |
| CAlarmThreshold | The two alarm thresholds of one channel, in 12-bit result codes. The chip keeps the upper 10 bits and compares them with the upper 10 bits of each result (Table 13), so the two lowest bits of a threshold are dropped. AlarmThreshold{} is the reset state: no alarm |
| CBank | The result of one Auto-1 or Auto-2 scan: one code per channel of the sequence |
| CConfig | What the driver is told about the chip and the board. Config{} is an ADS7952 in TSSOP left in its reset state (Tables 1 to 13): Range 1, every GPIO an input, every channel in Auto-1, channel 11 the last of Auto-2, no alarm; with a 2.5 V reference and a 5 V analog supply |
| CGpioConfig | The GPIO program register and the GPIO output levels. GpioConfig{} is the reset state: every pin an input with no function |
| CResult | The value of a call, or why there is none |
| CResult< void > | The result of a call that returns no value |
| CScaleMonitor | A channel the board drives with a known voltage, so the driver can prove the scale every code is converted with: the range the chip is really in, and a reference that is present |
| CSpiInterface | CRTP base of the platform SPI port |
| RSpiPort | Satisfied by a class that derives from SpiInterface<Port> and implements the required hooks with exactly the types above, noexcept and returning bool |