靜態公開方法(Static Public Methods) | |
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 位無符號整數。