Public Member Functions | Protected Attributes
bosch_drivers_common::sensor_driver Class Reference

An abstract class for all Bosch sensor drivers. More...

#include <bosch_drivers_sensor_driver.hpp>

List of all members.

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_interfacehardware_

Detailed Description

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 & Destructor Documentation

Constructor: ties the sensor to its hardware interface

Definition at line 64 of file bosch_drivers_sensor_driver.hpp.

Definition at line 70 of file bosch_drivers_sensor_driver.hpp.


Member Function Documentation

virtual uint8_t bosch_drivers_common::sensor_driver::getDeviceAddress ( ) [pure virtual]

Retrieve the address of the sensor.

Note:
For SPI transactions, the 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.
For GPIO transactions, the device_address is the pin or port.

Member Data Documentation

Definition at line 83 of file bosch_drivers_sensor_driver.hpp.


The documentation for this class was generated from the following file:


bosch_drivers_common
Author(s): Joshua Vasquez, Philip Roan. Maintained by Philip Roan
autogenerated on Mon Oct 6 2014 10:09:38