UniPRT SDK v1.0.0.0
 
載入中...
搜尋中...
無符合項目
LabelMaker.Interfaces.RfidConvert.RfidConvert 類別 參考文件

靜態公開方法(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.
 

函式成員說明文件

◆ 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 位無符號整數。


此類別(class) 文件是由下列檔案中產生: