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:40
const char * GetAppName() const
Name of the application running on the device, eg 'ot-cli'.
Definition: DeviceInfo.hpp:111
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:146
~DeviceInfo()
Destructor to free owned memory.
Definition: DeviceInfo.hpp:71
const char * GetDeviceName() const
Name of the device, eg 'Chili2'.
Definition: DeviceInfo.hpp:106
const char * GetPath() const
Exchange & system specific 'path', unique to this device.
Definition: DeviceInfo.hpp:101
const char * GetSerialNo() const
Serial number of the device.
Definition: DeviceInfo.hpp:121
DeviceInfo()
Default constructor for empty instance.
Definition: DeviceInfo.hpp:45
ca821x_exchange_type GetExchangeType() const
Exchange type for this device.
Definition: DeviceInfo.hpp:96
const char * GetVersion() const
Version string of the device.
Definition: DeviceInfo.hpp:116
bool IsAvailable() const
Is the device available for use (or not, eg.
Definition: DeviceInfo.hpp:126
bool IsExternalFlashChipAvailable() const
Does the device have an external flash chip.
Definition: DeviceInfo.hpp:131
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