refactor sf1xx: use driver base class

This commit is contained in:
Beat Küng
2020-03-02 14:43:09 +01:00
committed by Daniel Agar
parent f743585160
commit a6ddf0e4b9
4 changed files with 73 additions and 336 deletions

View File

@@ -110,6 +110,8 @@ public:
spi_mode_e spi_mode{SPIDEV_MODE3};
uint8_t i2c_address{0}; ///< optional I2C address: a driver can set this to allow configuring the I2C address
uint8_t orientation{0}; ///< distance_sensor_s::ROTATION_*
int custom1{0}; ///< driver-specific custom argument
int custom2{0}; ///< driver-specific custom argument
void *custom_data{nullptr}; ///< driver-specific custom argument