UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
LabelMaker.Interfaces.RfidConvert.RfidConvert Class Reference

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.
 

Member Function Documentation

◆ 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.

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

◆ to_bytes_from_ushort()

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

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

Lower index has 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.

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

◆ to_hex_from_bytes()

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

Converts a bytes array or an int to a hex string.

If an integer is provided, it is converted to bytes first.

◆ 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.

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

◆ 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.

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

◆ 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.

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

◆ 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.

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


The documentation for this class was generated from the following file: