query()#

I2CInterface.query(
peripheral: str,
batch_command: str,
**kwargs,
) → Measurement[source]#

Send a batch command (OR of its enum members) to peripheral and read the response.

Uses write-then-read with an I2C STOP between operations. Raises ValueError if peripheral is not a command-based device, or if batch_command references undefined command enums.