main
John Lauer Publish assumption-based R11 assembly study, locked firmware and new review footage d61d6cb
#ifndef ADOM_LOAD_INSTRUMENTS_H
#define ADOM_LOAD_INSTRUMENTS_H
#include <stdbool.h>
#include <stdint.h>
typedef struct {
 bool (*write16)(uint8_t addr7,uint8_t reg,uint16_t value);
 bool (*read16)(uint8_t addr7,uint8_t reg,uint16_t *value);
 void (*delay_ms)(uint32_t ms);
} load_i2c;
bool load_instruments_init(const load_i2c *);
bool load_dac_write(const load_i2c *,uint16_t code);
typedef enum { LOAD_INA_ERROR=-1, LOAD_INA_WAIT=0, LOAD_INA_READY=1 } load_ina_result;
/* WAIT leaves outputs unchanged; never refresh a cached sample timestamp on WAIT.
 * ERROR requires hard-off/reinitialization; READY starts the next conversion.
 * Returned voltage is after the protection diode, not at the DUT connector. */
load_ina_result load_ina_poll(const load_i2c *,float *load_terminal_v,float *amps);
#endif