29#ifndef POSIX_APP_CHILICTL_COMMON_DEVICEINFO_HPP_
30#define POSIX_APP_CHILICTL_COMMON_DEVICEINFO_HPP_
Various types used by the cascoda posix api.
ca821x_exchange_type
Enumeration for identifying the underlying exchange interface type.
Definition ca821x-types.h:166
C++ wrapper for the C ca_device_info struct, which owns its own memory.
Definition DeviceInfo.hpp:42
const char * GetVersion() const
Definition DeviceInfo.hpp:118
const char * GetDeviceName() const
Definition DeviceInfo.hpp:108
DeviceInfo & operator=(const DeviceInfo &other)
Copy assignment.
Definition DeviceInfo.cpp:51
const char * GetExchangeTypeAsString()
Get the exchange type in a string format.
Definition DeviceInfo.cpp:149
~DeviceInfo()
Destructor to free owned memory.
Definition DeviceInfo.hpp:73
const char * GetAppName() const
Definition DeviceInfo.hpp:113
const char * GetSerialNo() const
Definition DeviceInfo.hpp:123
DeviceInfo()
Default constructor for empty instance.
Definition DeviceInfo.hpp:47
ca821x_exchange_type GetExchangeType() const
Definition DeviceInfo.hpp:98
const char * GetPath() const
Definition DeviceInfo.hpp:103
bool IsAvailable() const
Definition DeviceInfo.hpp:128
bool IsExternalFlashChipAvailable() const
Definition DeviceInfo.hpp:133
Struct for getting info of connected devices (primarily for enumerating them).
Definition ca821x-types.h:224
bool available
Is the device available for use (or not, eg.
Definition ca821x-types.h:233
const char * serialno
Serial number of the device.
Definition ca821x-types.h:230
bool external_flash_available
Does the device have an external flash chip.
Definition ca821x-types.h:232
const char * version
Version string of the device.
Definition ca821x-types.h:229
enum ca821x_exchange_type exchange_type
Exchange type for this device.
Definition ca821x-types.h:225
const char * app_name
Name of the application running on the device, eg 'ot-cli'.
Definition ca821x-types.h:228
const char * device_name
Name of the device, eg 'Chili2'.
Definition ca821x-types.h:227
const char * path
Exchange & system specific 'path', unique to this device.
Definition ca821x-types.h:226