静态 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. | |
|
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。
|
static |
将 16 位无符号短整数转换为可以写入 RFID 标签的字节数组。低索引为 MSB。
|
static |
Convenience routine that takes an ASCII string and converts to hex.
方便的例程,将 ASCII 字符串转换为十六进制。
|
static |
将字节数组或整数转换为十六进制字符串。如果提供的是整数,则首先将其转换为字节。
|
static |
Convert a 4-byte unsigned integer into hex string that can be written on RFID tag.
将 4 字节无符号整数转换为可以写入 RFID 标签的十六进制字符串。
|
static |
Convert a 2-byte unsigned integer into hex string that can be written on RFID tag.
将 2 字节无符号整数转换为可以写入 RFID 标签的十六进制字符串。
|
static |
Convert 4 bytes read from RFID tag into 32-bit unsigned integer.
将从 RFID 标签读取的 4 个字节转换为 32 位无符号整数。
|
static |
Convert 2 bytes read from RFID tag into 16-bit unsigned integer.
将从 RFID 标签读取的 2 个字节转换为 16 位无符号整数。