fxos8701cq + fxas21002c: add support for I2C

This commit is contained in:
rfu
2020-02-16 11:09:12 -08:00
committed by Beat Küng
parent 09180b9d4a
commit 90c3819df5
32 changed files with 1193 additions and 297 deletions
+17
View File
@@ -114,6 +114,23 @@ public:
*/
virtual int write(unsigned address, void *data, unsigned count) { return -ENODEV; }
/**
* Read a register from the device.
*
* @param The register to read.
* @return The value that was read.
*/
virtual uint8_t read_reg(unsigned reg) { return -ENODEV; }
/**
* Write a register in the device.
*
* @param reg The register to write.
* @param value The new value to write.
* @return OK on success, negative errno otherwise.
*/
virtual int write_reg(unsigned reg, uint8_t value) { return -ENODEV; }
/**
* Perform a device-specific operation.
*