i’m trying to “talk” with my HiFive1-rev-b to a sensor via I²C. the sensor’s documentation mentions writing a byte to a register (also a byte) at an address (also a byte) to instruct the sensor to send data.
metal/i2c.h’s metal_i2c_read (and metal_i2c_write) only accept address (addr) and payload (*buf) arguments.
what am i missing?
and: where are those functions defined? metal/i2c.c seems to only contain declarations and metal/i2c.h surprisingly holds definitions, which are only redirections to functions within the struct `metal_i2c_vtable’…?