UniPRT SDK v1.0.0.0
 
载入中...
搜索中...
未找到
LabelMaker.Interfaces.RfidConvert.RfidConvert类 参考

静态 Public 成员函数

int to_uint (bytes bytes_from_rfid_tag)
 Convert 4 bytes read from RFID tag into 32-bit unsigned integer.
 
int to_ushort (bytes bytes_from_rfid_tag)
 Convert 2 bytes read from RFID tag into 16-bit unsigned integer.
 
str to_hex_from_uint (int uint_data)
 Convert a 4-byte unsigned integer into hex string that can be written on RFID tag.
 
str to_hex_from_ushort (int ushort_data)
 Convert a 2-byte unsigned integer into hex string that can be written on RFID tag.
 
bytes to_bytes_from_uint (int uint_data)
 Convert a 32-bit unsigned integer into a byte array that can be written to RFID tag.
 
bytes to_bytes_from_ushort (int ushort_data)
 将 16 位无符号短整数转换为可以写入 RFID 标签的字节数组。低索引为 MSB。
 
str to_hex_from_bytes (Union[bytes, int] data)
 将字节数组或整数转换为十六进制字符串。如果提供的是整数,则首先将其转换为字节。
 
str to_hex_from_ascii_string (str ascii_string)
 Convenience routine that takes an ASCII string and converts to hex.
 

成员函数说明

◆ to_bytes_from_uint()

bytes LabelMaker.Interfaces.RfidConvert.RfidConvert.to_bytes_from_uint ( int uint_data)
static

Convert a 32-bit unsigned integer into a byte array that can be written to RFID tag.

Lower index has MSB.

将 32 位无符号整数转换为可以写入 RFID 标签的字节数组。低索引为 MSB。

◆ to_bytes_from_ushort()

bytes LabelMaker.Interfaces.RfidConvert.RfidConvert.to_bytes_from_ushort ( int ushort_data)
static

将 16 位无符号短整数转换为可以写入 RFID 标签的字节数组。低索引为 MSB。

◆ to_hex_from_ascii_string()

str LabelMaker.Interfaces.RfidConvert.RfidConvert.to_hex_from_ascii_string ( str ascii_string)
static

Convenience routine that takes an ASCII string and converts to hex.

方便的例程,将 ASCII 字符串转换为十六进制。

◆ to_hex_from_bytes()

str LabelMaker.Interfaces.RfidConvert.RfidConvert.to_hex_from_bytes ( Union[bytes, int] data)
static

将字节数组或整数转换为十六进制字符串。如果提供的是整数,则首先将其转换为字节。

◆ to_hex_from_uint()

str LabelMaker.Interfaces.RfidConvert.RfidConvert.to_hex_from_uint ( int uint_data)
static

Convert a 4-byte unsigned integer into hex string that can be written on RFID tag.

将 4 字节无符号整数转换为可以写入 RFID 标签的十六进制字符串。

◆ to_hex_from_ushort()

str LabelMaker.Interfaces.RfidConvert.RfidConvert.to_hex_from_ushort ( int ushort_data)
static

Convert a 2-byte unsigned integer into hex string that can be written on RFID tag.

将 2 字节无符号整数转换为可以写入 RFID 标签的十六进制字符串。

◆ to_uint()

int LabelMaker.Interfaces.RfidConvert.RfidConvert.to_uint ( bytes bytes_from_rfid_tag)
static

Convert 4 bytes read from RFID tag into 32-bit unsigned integer.

将从 RFID 标签读取的 4 个字节转换为 32 位无符号整数。

◆ to_ushort()

int LabelMaker.Interfaces.RfidConvert.RfidConvert.to_ushort ( bytes bytes_from_rfid_tag)
static

Convert 2 bytes read from RFID tag into 16-bit unsigned integer.

将从 RFID 标签读取的 2 个字节转换为 16 位无符号整数。


该类的文档由以下文件生成: