|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
The wire. n is the register width in bytes: 2, 3 or 5 for a read (INA228 SLYS021A Table 7-3, INA3221 SBOS576C Table 8-1), 2 for a write.
More...
#include <sense_bus.h>
Data Fields | |
| sense_err_t(*) | read (void *ctx, uint8_t addr, uint8_t reg, uint8_t *buf, size_t n) |
| sense_err_t(*) | write (void *ctx, uint8_t addr, uint8_t reg, const uint8_t *buf, size_t n) |
| void * | ctx |
The wire. n is the register width in bytes: 2, 3 or 5 for a read (INA228 SLYS021A Table 7-3, INA3221 SBOS576C Table 8-1), 2 for a write.