C++ wrapper for the C ca_device_info struct, which owns its own memory.
More...
#include <posix/app/chilictl/common/DeviceInfo.hpp>
C++ wrapper for the C ca_device_info struct, which owns its own memory.
◆ DeviceInfo() [1/4]
ca::DeviceInfo::DeviceInfo |
( |
| ) |
|
|
inline |
Default constructor for empty instance.
◆ DeviceInfo() [2/4]
Constructor to copy from the c-style struct passed by lower levels.
- Parameters
-
◆ DeviceInfo() [3/4]
ca::DeviceInfo::DeviceInfo |
( |
const DeviceInfo & |
aDeviceInfo | ) |
|
Copy constructor.
- Parameters
-
aDeviceInfo | instance to copy from |
◆ DeviceInfo() [4/4]
ca::DeviceInfo::DeviceInfo |
( |
DeviceInfo && |
aDeviceInfo | ) |
|
Move constructor.
- Parameters
-
aDeviceInfo | instance to move from |
◆ ~DeviceInfo()
ca::DeviceInfo::~DeviceInfo |
( |
| ) |
|
|
inline |
Destructor to free owned memory.
◆ GetAppName()
const char* ca::DeviceInfo::GetAppName |
( |
| ) |
const |
|
inline |
Name of the application running on the device, eg 'ot-cli'.
- Returns
◆ GetDeviceName()
const char* ca::DeviceInfo::GetDeviceName |
( |
| ) |
const |
|
inline |
Name of the device, eg 'Chili2'.
- Returns
◆ GetExchangeType()
Exchange type for this device.
- Returns
◆ GetExchangeTypeAsString()
const char * ca::DeviceInfo::GetExchangeTypeAsString |
( |
| ) |
|
Get the exchange type in a string format.
- Returns
- Exchange type in string format
◆ GetPath()
const char* ca::DeviceInfo::GetPath |
( |
| ) |
const |
|
inline |
Exchange & system specific 'path', unique to this device.
- Returns
◆ GetSerialNo()
const char* ca::DeviceInfo::GetSerialNo |
( |
| ) |
const |
|
inline |
Serial number of the device.
- Returns
◆ GetVersion()
const char* ca::DeviceInfo::GetVersion |
( |
| ) |
const |
|
inline |
Version string of the device.
- Returns
◆ IsAvailable()
bool ca::DeviceInfo::IsAvailable |
( |
| ) |
const |
|
inline |
Is the device available for use (or not, eg.
- Returns
- in use by other application)
◆ IsExternalFlashChipAvailable()
bool ca::DeviceInfo::IsExternalFlashChipAvailable |
( |
| ) |
const |
|
inline |
Does the device have an external flash chip.
- Returns
◆ operator=() [1/2]
Copy assignment.
- Parameters
-
other | instance to copy from |
- Returns
- reference to this
◆ operator=() [2/2]
Move assignment.
- Parameters
-
other | instance to move from |
- Returns
- reference to this
The documentation for this class was generated from the following files: