Kallisto Linux API
Library for interacting with Kallisto devices
|
#include <sensor.hpp>
Public Member Functions | |
unsigned int | getHandle () const |
std::string | getName () const |
std::string | getAddress () const |
std::string | getVendor () const |
unsigned int | getVersion () const |
SensorType | getType () const |
std::string | getStringType () const |
ReportingMode | getReportingMode () const |
unsigned int | getIdentifier () const |
float | getMaximumRange () const |
float | getResolution () const |
float | getPower () const |
std::chrono::microseconds | getMinDelay () const |
std::chrono::microseconds | getMaxDelay () const |
std::string | toString () |
bool | operator== (const Sensor &other) const |
bool | operator!= (const Sensor &other) const |
Static Public Member Functions | |
static unsigned int | getValueArraySize (SensorType type) |
Protected Member Functions | |
Sensor (unsigned int handle, std::string name, std::string address, std::string vendor, unsigned int version, SensorType type, std::string string_type, ReportingMode reporting_mode, unsigned int identifier, float max_range, float resolution, float power, std::chrono::microseconds min_delay, std::chrono::microseconds max_delay) | |
virtual | ~Sensor () |
Sensor (Sensor const &)=delete | |
Sensor (Sensor &&)=delete | |
void | operator= (Sensor const &)=delete |
void | operator= (Sensor &&)=delete |
Protected Attributes | |
const unsigned int | m_handle |
const std::string | m_name |
const std::string | m_address |
const std::string | m_vendor |
const unsigned int | m_version |
const SensorType | m_type |
const std::string | m_string_type |
const ReportingMode | m_reporting_mode |
const unsigned int | m_identifier |
const float | m_max_range |
const float | m_resolution |
const float | m_power |
const std::chrono::microseconds | m_min_delay |
const std::chrono::microseconds | m_max_delay |
Class representing a sensor.
|
strong |
Supported reporting modes.
See de.sensry.kallisto.hardware.listeners.events.SensorEvent#values for more details.
|
strong |
Supported sensor types.
See de.sensry.kallisto.hardware.listeners.events.SensorEvent#values for more details.
|
protected |
Constructor
|
protectedvirtual |
Destructor
std::string getAddress | ( | ) | const |
unsigned int getHandle | ( | ) | const |
unsigned int getIdentifier | ( | ) | const |
std::chrono::microseconds getMaxDelay | ( | ) | const |
This value is defined only for continuous and on-change sensors. It is the delay between two sensor events corresponding to the lowest frequency that this sensor supports. When lower frequencies are requested through registerListener() the events will be generated at this frequency instead.
float getMaximumRange | ( | ) | const |
std::chrono::microseconds getMinDelay | ( | ) | const |
std::string getName | ( | ) | const |
float getPower | ( | ) | const |
ReportingMode getReportingMode | ( | ) | const |
float getResolution | ( | ) | const |
std::string getStringType | ( | ) | const |
SensorType getType | ( | ) | const |
|
static |
Returns the size of the data array in the Sensor callback.
type | The sensor type. |
std::string getVendor | ( | ) | const |
unsigned int getVersion | ( | ) | const |
std::string toString | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |