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

Namespaces

 SG
 
 SG::BeagleBone
 
 SG::BeagleBone::Detect
 The Detect namespace contains several related functions to help determine if the device where the code is running is a BeagleBone Black, BeagleBone Green, or some other type of device.
 

Typedefs

typedef std::vector< ECompatibility > SG::BeagleBone::Detect::Compatibilities
 A vector of capabilities describing a device. More...
 

Enumerations

enum  SG::BeagleBone::Detect::ECompatibility {
  SG::BeagleBone::Detect::ECompatibility::invalid = 0,
  SG::BeagleBone::Detect::ECompatibility::other,
  SG::BeagleBone::Detect::ECompatibility::ti_am33xx,
  SG::BeagleBone::Detect::ECompatibility::ti_am335x_bone,
  SG::BeagleBone::Detect::ECompatibility::ti_am335x_bone_black,
  SG::BeagleBone::Detect::ECompatibility::ti_am335x_bone_green,
  SG::BeagleBone::Detect::ECompatibility::ti_am335x_bone_green_wireless
}
 Compability enums for this device. More...
 

Functions

std::string SG::BeagleBone::Detect::to_string (const ECompatibility type)
 Convert a single compatibility to a text string. More...
 
VStr SG::BeagleBone::Detect::to_string (const Compatibilities &compabilities)
 Convert a vector of capabilities to a vector of strings. More...
 
Compatibilities SG::BeagleBone::Detect::get_compatibilities (void)
 Get the vector of compabilities for this device. More...
 
bool SG::BeagleBone::Detect::has (const ECompatibility type)
 Determine if the device compatibilities contains the given type. More...
 
std::string SG::BeagleBone::Detect::get_model (void)
 Return the device model or product name as a text string. More...
 
bool SG::BeagleBone::Detect::is_beaglebone_compatible (void)
 Determine if the device is compatible with the given type. More...
 
bool SG::BeagleBone::Detect::is_beaglebone_black_compatible (void)
 Determine if the device is compatible with the given type. More...
 
bool SG::BeagleBone::Detect::is_beaglebone_green_compatible (void)
 Determine if the device is compatible with the given type. More...
 
bool SG::BeagleBone::Detect::is_beaglebone_green_wireless_compatible (void)
 Determine if the device is compatible with the given type. More...