Seeed Grove ++  v0.0.1-2386
Linux C++ Library For Seeed Grove Devices
sg_groves.hpp File Reference
#include "sg_types.hpp"
Include dependency graph for sg_groves.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 SG
 

Typedefs

typedef std::vector< EGroveType > SG::VGroveTypes
 Vector of Seeed Grove types. More...
 
typedef std::set< EGroveType > SG::SGroveTypes
 Set of unique Seeed Grove types, ordered by numeric type. More...
 
typedef std::map< EGroveType, std::string > SG::MGroveTypeNames
 Map of Seeed Grove types to strings, used to map the types to a usable name. More...
 

Enumerations

enum  SG::EGroveType {
  SG::EGroveType::kInvalid = 0,
  SG::EGroveType::kUnknown,
  SG::EGroveType::kNone,
  SG::EGroveType::kSerialCameraKit = 4000,
  SG::EGroveType::kHCHOSensor,
  SG::EGroveType::kGasSensorO2,
  SG::EGroveType::kButton,
  SG::EGroveType::kSwitchP,
  SG::EGroveType::kCollisionSensor,
  SG::EGroveType::kGasSensorMQ3,
  SG::EGroveType::kMiniCamera,
  SG::EGroveType::kMoistureSensor,
  SG::EGroveType::kLineFinder,
  SG::EGroveType::kUltrasonicRanger,
  SG::EGroveType::kTemperatureAndHumiditySensor,
  SG::EGroveType::kDustSensor,
  SG::EGroveType::kRTC,
  SG::EGroveType::kAnalogLightSensor,
  SG::EGroveType::kTemperatureSensorV12,
  SG::EGroveType::kInfraredReceiver,
  SG::EGroveType::kRotaryAngleSensor,
  SG::EGroveType::kWaterSensor,
  SG::EGroveType::kTemperatureAndHumiditySensorPro,
  SG::EGroveType::kPIRMotionSensor,
  SG::EGroveType::kAirQualitySensor,
  SG::EGroveType::kAnalogLightSensorP,
  SG::EGroveType::kSoundSensor,
  SG::EGroveType::kMegaShield,
  SG::EGroveType::kTiltSwitch,
  SG::EGroveType::kInfraredEmitter,
  SG::EGroveType::kElectricitySensor,
  SG::EGroveType::kThumbJoystick,
  SG::EGroveType::kInfraredReflectiveSensor,
  SG::EGroveType::kDigitalLightSensor,
  SG::EGroveType::kPiezoVibrationSensor,
  SG::EGroveType::kBarometerSensor,
  SG::EGroveType::kEarClipHeartRateSensor,
  SG::EGroveType::k3AxisDigitalCompass,
  SG::EGroveType::kProtoShield,
  SG::EGroveType::kSlidePotentiometer,
  SG::EGroveType::kTouchSensor,
  SG::EGroveType::kMagneticSwitch,
  SG::EGroveType::k3AxisDigitalAccelerometer1_5g,
  SG::EGroveType::kIRDistanceInterrupt,
  SG::EGroveType::kI2CColorSensor,
  SG::EGroveType::k80cmInfraredProximitySensor,
  SG::EGroveType::kUVSensor,
  SG::EGroveType::kAlcoholSensor,
  SG::EGroveType::kGasSensorMQ9,
  SG::EGroveType::kHallSensor,
  SG::EGroveType::kI2CTouchSensor,
  SG::EGroveType::kRotaryAngleSensorP,
  SG::EGroveType::kFlameSensor,
  SG::EGroveType::k3AxisDigitalGyro,
  SG::EGroveType::k3AxisAnalogAccelerometer,
  SG::EGroveType::kGSRSensor,
  SG::EGroveType::kSingleAxisAnalogGyro,
  SG::EGroveType::k3AxisDigitalAccelerometer16g,
  SG::EGroveType::kGasSensorMQ2,
  SG::EGroveType::kGasSensorMQ5,
  SG::EGroveType::kFingerprintSensor,
  SG::EGroveType::kEMGDetector,
  SG::EGroveType::kIMU9DOFV1,
  SG::EGroveType::kMotionSensorLargeLens,
  SG::EGroveType::k6AxisAccelerometerAndCompassV1,
  SG::EGroveType::kAnalogInfraredTemperatureSensor,
  SG::EGroveType::kLoudnessSensor,
  SG::EGroveType::kSerialCamera,
  SG::EGroveType::kPHSensor,
  SG::EGroveType::kChestStrapHeartRateSensor,
  SG::EGroveType::kCO2Sensor,
  SG::EGroveType::kBarometerHighAccuracy,
  SG::EGroveType::kQTouchSensor,
  SG::EGroveType::kNFCTag,
  SG::EGroveType::k3AxisDigitalAccelerometer400g,
  SG::EGroveType::kBarometerSensorBMP180,
  SG::EGroveType::kElectromagnet,
  SG::EGroveType::kTemperatureAndHumidityHighAccuracyAndMini,
  SG::EGroveType::kLuminanceSensor = 4076,
  SG::EGroveType::kDigitalInfraredTemperatureSensor,
  SG::EGroveType::kAirQualitySensorV13,
  SG::EGroveType::kIMU10DOF,
  SG::EGroveType::kIMU9DOFV2,
  SG::EGroveType::k6AxisAccelerometerAndCompassV2,
  SG::EGroveType::kFingerClipHeartRateSensorWithShell,
  SG::EGroveType::kGestureV1,
  SG::EGroveType::kTemperatureAndHumiditySensorHDC1000 = 4087,
  SG::EGroveType::kMultichannelGasSensor,
  SG::EGroveType::kSunlightSensor,
  SG::EGroveType::kWaterAtomization,
  SG::EGroveType::kMiniTrackBall,
  SG::EGroveType::kDMX512 = 4500,
  SG::EGroveType::kBeeSocket = 4502,
  SG::EGroveType::kPS2Adapter,
  SG::EGroveType::kSolidStateRelay,
  SG::EGroveType::kRelayV12,
  SG::EGroveType::kI2CHub,
  SG::EGroveType::kScrewTerminal,
  SG::EGroveType::kMOSFET,
  SG::EGroveType::kNunChuck,
  SG::EGroveType::k2CoilLatchingRelay,
  SG::EGroveType::kRJ45Adapter,
  SG::EGroveType::kSPDTRelay30A,
  SG::EGroveType::kI2CADC,
  SG::EGroveType::kDryReedRelay,
  SG::EGroveType::kGroveCapeForBeagleBone,
  SG::EGroveType::kDifferentialAmplifierV12,
  SG::EGroveType::kRecorder = 4518,
  SG::EGroveType::kVoltageDivider = 5000,
  SG::EGroveType::kVariableColorLED,
  SG::EGroveType::kPurpleLED,
  SG::EGroveType::kBlinkM,
  SG::EGroveType::kSerialLCD,
  SG::EGroveType::kLEDLightString,
  SG::EGroveType::kLEDBarV2,
  SG::EGroveType::kLCDRGBBacklight = 5501,
  SG::EGroveType::kLEDBar,
  SG::EGroveType::k4DigitDisplay,
  SG::EGroveType::kRedLED = 5505,
  SG::EGroveType::kChainableRGBLED,
  SG::EGroveType::kGreenLED,
  SG::EGroveType::kOLEDDisplay1_12,
  SG::EGroveType::kWhiteLED,
  SG::EGroveType::kBlueLED,
  SG::EGroveType::kOLEDDisplay0_96,
  SG::EGroveType::kCircularLED,
  SG::EGroveType::kMultiColorFlashLED,
  SG::EGroveType::kLED,
  SG::EGroveType::k5InchLcdCape = 6002,
  SG::EGroveType::k7InchLcdCape,
  SG::EGroveType::kI2CMotorDriverV12 = 6501,
  SG::EGroveType::kLEDStripDriver,
  SG::EGroveType::kVibrationMotor,
  SG::EGroveType::kMiniFan,
  SG::EGroveType::kELDriver,
  SG::EGroveType::kI2CMotorDriverV10 = 6510,
  SG::EGroveType::kHapticMotor,
  SG::EGroveType::kBuzzer = 7000,
  SG::EGroveType::kSpeaker,
  SG::EGroveType::kSerialMP3Player,
  SG::EGroveType::kSoundRecorder = 7004,
  SG::EGroveType::kFMReceiver,
  SG::EGroveType::kI2CFMReceiver,
  SG::EGroveType::kMP3V2 = 7008,
  SG::EGroveType::kButtonP = 7500,
  SG::EGroveType::kEncoder,
  SG::EGroveType::kHighTemperatureSensor,
  SG::EGroveType::kSerialRFPro = 8000,
  SG::EGroveType::k315MHzSimpleRFLinkKit,
  SG::EGroveType::k125KHzRFIDReader,
  SG::EGroveType::kGPS,
  SG::EGroveType::kXBeeCarrier,
  SG::EGroveType::kSerialBluetooth,
  SG::EGroveType::kNFC,
  SG::EGroveType::kBLE,
  SG::EGroveType::kSerialBluetoothV3,
  SG::EGroveType::kBLEDualModel,
  SG::EGroveType::kUartWifi,
  SG::EGroveType::k433MHzSimpleRFLinkKit = 9998,
  SG::EGroveType::kServo = 9999
}
 Grove types ordered by Seeed SKU: More...
 

Functions

uint32_t SG::get_sku_from_grove_type (const EGroveType &grove_type)
 Return the Seeed SKU for the given Grove type. More...
 
VGroveTypes SG::get_all_grove_types (void)
 Return a vector containing every possible Grove type. More...
 
MGroveTypeNames SG::get_grove_type_name_map (void)
 Get a map of all the grove types and the corresponding names. More...
 
std::string SG::to_string (const EGroveType &type)
 Get a short text name for the given type. More...
 
VGroveTypes SG::detect (void)