66 for (uint8_t i=0; i<
_checked.n_set; i++) {
67 if (regs[i].regnum == reg) {
73 printf(
"Not enough checked registers for reg 0x%02x on device 0x%x\n",
101 printf(
"Device 0x%x fixing 0x%02x 0x%02x -> 0x%02x\n",
103 (
unsigned)reg.
regnum, (
unsigned)v, (
unsigned)reg.
value);
int printf(const char *fmt,...)
uint32_t get_bus_id(void) const
bool setup_checked_registers(uint8_t num_regs, uint8_t frequency=10)
struct AP_HAL::Device::@38 _checked
void set_checked_register(uint8_t reg, uint8_t val)
bool check_next_register(void)
bool read_registers(uint8_t first_reg, uint8_t *recv, uint32_t recv_len)
bool write_register(uint8_t reg, uint8_t val, bool checked=false)