An abstract class for all Bosch sensor drivers. More...
#include <bosch_drivers_sensor_driver.hpp>
Public Member Functions | |
virtual uint8_t | getDeviceAddress ()=0 |
Retrieve the address of the sensor. | |
sensor_driver (bosch_hardware_interface *hw) | |
virtual | ~sensor_driver () |
Protected Attributes | |
bosch_hardware_interface * | hardware_ |
An abstract class for all Bosch sensor drivers.
This class provides the generic format so that sensors can communicate over different physical hardware devices. All sensor drivers must inherit this class, ensuring that all sensors are tied to a hardware interface when instantiated.
Definition at line 57 of file bosch_drivers_sensor_driver.hpp.
Constructor: ties the sensor to its hardware interface
Definition at line 64 of file bosch_drivers_sensor_driver.hpp.
virtual bosch_drivers_common::sensor_driver::~sensor_driver | ( | ) | [inline, virtual] |
Definition at line 70 of file bosch_drivers_sensor_driver.hpp.
virtual uint8_t bosch_drivers_common::sensor_driver::getDeviceAddress | ( | ) | [pure virtual] |
Retrieve the address of the sensor.
device_address
is the chip select. If the device address is NULL_DEVICE
, then the hardware interface should read from the bus without changing any chip select lines. device_address
is the pin or port. Definition at line 83 of file bosch_drivers_sensor_driver.hpp.