Wrapper class providing peripheral information
Classes can extend Peripheral to inherit peripheral properties.
Used on kodi::addon::CInstancePeripheral::PerformDeviceScan().
The following table contains values that can be set with class Peripheral :
Further are following included:
◆ Peripheral()
◆ ~Peripheral()
◆ operator==()
Comparison operator.
- Note
- The index is not included in the comparison because it is affected by the presence of other peripherals
◆ Type()
◆ Name()
const std::string & Name |
( |
void | | ) |
const |
|
inline |
Get peripheral name.
- Returns
- Name string of peripheral
◆ VendorID()
uint16_t VendorID |
( |
void | | ) |
const |
|
inline |
Get peripheral vendor id.
- Returns
- Vendor id
◆ ProductID()
uint16_t ProductID |
( |
void | | ) |
const |
|
inline |
Get peripheral product id.
- Returns
- Product id
◆ Index()
unsigned int Index |
( |
void | | ) |
const |
|
inline |
Get peripheral index identifier.
- Returns
- Index number
◆ IsVidPidKnown()
bool IsVidPidKnown |
( |
void | | ) |
const |
|
inline |
Check VID and PID are known.
- Returns
- true if VID and PID are not 0
- Note
- Derived property: VID and PID are
0x0000
if unknown
◆ SetType()
Set peripheral type.
- Parameters
-
◆ SetName()
void SetName |
( |
const std::string & | strName | ) |
|
|
inline |
Set peripheral name.
- Parameters
-
◆ SetVendorID()
void SetVendorID |
( |
uint16_t | vendorId | ) |
|
|
inline |
Set peripheral vendor id.
- Parameters
-
◆ SetProductID()
void SetProductID |
( |
uint16_t | productId | ) |
|
|
inline |
Set peripheral product identifier.
- Parameters
-
◆ SetIndex()
void SetIndex |
( |
unsigned int | index | ) |
|
|
inline |
Set peripheral index.
- Parameters
-