dwfpy.device_info.DeviceInfo
- class DeviceInfo(device_index=None)[source]
Bases:
objectDevice information gathered during device enumeration.
Methods
Gets the device name.
Read all device properties.
Gets the device serial number.
Gets the user-defined device name.
Normalizes the serial number, i.e. strip the leading 'SN:' and convert to uppercase.
Attributes
Returns a list of device configurations.
Returns True, if the device properties have been read.
Gets the device ID.
Returns true if the device has been opened.
Gets the device name.
Gets the device revision.
Gets the 12-digit, unique device serial number.
Gets the user-defined device name.
- property configurations: Tuple[Configuration, ...]
Returns a list of device configurations.
- Return type
Tuple[Configuration,...]
- property has_properties: bool
Returns True, if the device properties have been read.
- Return type
bool
- property id: int
Gets the device ID.
- Return type
int
- property is_open: bool
Returns true if the device has been opened.
- Return type
bool
- property name: str
Gets the device name.
- Return type
str
- static normalize_serial_number(serial_number)[source]
Normalizes the serial number, i.e. strip the leading ‘SN:’ and convert to uppercase.
- Return type
str
- property revision: int
Gets the device revision.
- Return type
int
- property serial_number: str
Gets the 12-digit, unique device serial number.
- Return type
str
- property user_name: str
Gets the user-defined device name.
- Return type
str