Static Public Member Functions | |
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) |
Convert a 16-bit unsigned short integer into a byte array that can be written to RFID tag. | |
str | to_hex_from_bytes (Union[bytes, int] data) |
Converts a bytes array or an int to a hex string. | |
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.
Convert a 32-bit unsigned integer into a byte array that can be written to RFID tag. Lower index has MSB.
|
static |
Convert a 16-bit unsigned short integer into a byte array that can be written to RFID tag.
Lower index has MSB.
|
static |
Convenience routine that takes an ASCII string and converts to hex.
Convenience routine that takes an ASCII string and converts to hex.
|
static |
Converts a bytes array or an int to a hex string.
If an integer is provided, it is converted to bytes first.
|
static |
Convert a 4-byte unsigned integer into hex string that can be written on RFID tag.
Convert a 4-byte unsigned integer into hex string that can be written on RFID tag.
|
static |
Convert a 2-byte unsigned integer into hex string that can be written on RFID tag.
Convert a 2-byte unsigned integer into hex string that can be written on RFID tag.
|
static |
Convert 4 bytes read from RFID tag into 32-bit unsigned integer.
Convert 4 bytes read from RFID tag into 32-bit unsigned integer.
|
static |
Convert 2 bytes read from RFID tag into 16-bit unsigned integer.
Convert 2 bytes read from RFID tag into 16-bit unsigned integer.