⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hms800.h

📁 LP830 无线识别卡 读写程序demo
💻 H
📖 第 1 页 / 共 2 页
字号:
extern void ContReadTx(WORD start_add, WORD data_size);

// ****************************************************************************
// Transmit Enter Continuous Block Read mode Command 
// Input:        Begin read tag address.
//               Number of bytes to read from tag.
// Return:       None.
// Side effects: None.
extern void ContinuousTx(WORD start_add, WORD data_size, BYTE Idelay);

// ****************************************************************************
// Transmit a proteced mode Block Write Command 
// Input:        Begin write at this start address in the tag.
//               Number of bytes to be written from tag.
//               Antenna timeout time.
//               Pointer to the bytes to be written.
// Return:       None.
// Side effects: None.
extern void BLWriteTx(WORD start_add, WORD data_size, 
   WORD timeout, unsigned char *data_buf);

// ****************************************************************************
// Transmit get tag's identification number Command 
// Input:        Antenna timeout time.
// Return:       None.
// Side effects: None.
extern void Get_Tag_IDTx(WORD timeout);

// ****************************************************************************
// Transmit Tag Search Command 
// Input:        Antenna timeout time.
// Return:       None.
// Side effects: None.
extern void SearchTx(WORD timeout);

// ****************************************************************************
// Transmit the Change baud rate
// Input:        New baud rate value. (See Operators's Manual for antenna.)
// Return:       None.
// Side effects: None.
extern void BaudrateTx(WORD baudrate);

// --------------------------------------------------------------------------
// Command Received from HMS RF R/W Controller. -----------------------------

// ****************************************************************************
// Recevive response form Non-Contiguous read.
// Input:        Pointer to where the data can be place.
//               Do not more than the data size number of bytes.
// Return:       Read status.
// Side effects: None.
extern BYTE NCReadRx(BYTE *data_buf, WORD data_size);

// ****************************************************************************
// Receive response from Non-Contiguous write.
// Input:        None.
// Return:       Was the command echoed?
// Side effects: None.
extern BYTE NCWriteRx(void);

// ****************************************************************************
// Receive response from Non-Contiguous configuration.
// Input:        None.
// Return:       Was the command echoed?
// Side effects: None.
extern BYTE NCConfRx(void);

// ****************************************************************************
// Receive response from fill command.
// Input:        None.
// Return:       Was the command echoed?
// Side effects: None.
extern BYTE FillRx(void);

// ****************************************************************************
// Receive response from Block Read.
// Input:        where to place the data.
//               Receive no more data than this. Note: BYTE received in a WORD.
// Return:       Command status.
// Side effects: None.
extern BYTE BLReadRx(BYTE *data_buf, WORD data_size);

// ****************************************************************************
// Receive response from Continual Block Read.
// NOTE: This was renamed and is called the 
// HMS827 Initiate/Cancel Infinite Block Read command.
//
// Input:        where to place the data.
//               Receive no more data than this. Note: BYTE received in a WORD.
// Return:       Command status.
// Side effects: None.
extern BYTE ContBLReadRx(BYTE *data_buf, WORD data_size);

// ****************************************************************************
// Receive a data response from Continuous Block Read command.
// NOTE: This is the new Continuous Block Read mode data response packet.
//
// Input:        where to place the data.
//               Receive no more data than this. Note: BYTE received in a WORD.
// Return:       Command status.
// Side effects: None.
BYTE BLReadContinuousRx(BYTE *data_buf, WORD data_size);

// ****************************************************************************
// Receive response from Enter Continual Read mode command.
// Input:        None.
// Return:       Was the command echoed? Tag present?
// Side effects: None.
extern BYTE ContReadRx(void);

// ****************************************************************************
// Receive response from Enter Continuous Block Read mode command.
// Input:        None.
// Return:       Was the command echoed? Tag present?
// Side effects: None.
extern BYTE ContinuousRx(void);

// ****************************************************************************
// Receive response from block write.
// Input:        None.
// Return:       Was the command echoed?
// Side effects: None.
extern BYTE BLWriteRx(void);

// ****************************************************************************
// Receive response from Protected Write Block command.
// Input:        None.
// Return:       Was the command echoed? Tag present?
// Side effects: None.
extern BYTE pro_BLWriteRx(void);

// ****************************************************************************
// Receive response from COM2 write command.
// Input:        Pointer to where to place the response packet data.
// Return:       Command status.
// Side effects: None.
extern BYTE COM2_inpx_Rx(BYTE *rx_buf, WORD time_out, BYTE max_length);

// ****************************************************************************
// Receive response from COM2 write line command.
// Input:        Pointer to where to place the response packet data.
//               Timeout value sent with the command. Wait atleast this long.
//               Maximun number of bytes to receive.
// Return:       Command status.
// Side effects: None.
extern BYTE COM2_line_Rx(BYTE *rx_buf, WORD time_out, BYTE max_length);

// ****************************************************************************
// Receive response from COM2 write command.
// Input:        None.
// Return:       Command status, BOOLEAN - TRUE command taken.
//                                         FALSE command not taken.
// Side effects: None.
extern BYTE write_COM2Rx(void);

// ****************************************************************************
// Receive response from COM2 clear receive buffer command.
// Input:        None.
// Return:       Command status.
// Side effects: None.
extern BYTE COM2clearRx(void);

// ****************************************************************************
// Receive response get tag's identification number command.
// Input:        Pointer to buffer to place the tag's ID in.
//               Number of bytes in this tag ID.
// Return:       Was the command echoed? Tag present?
// Side effects: None.
extern BYTE Get_Tag_IDRx(BYTE *data_buf, WORD id_size);

// ****************************************************************************
// Receive response from search tag.
// Input:        None.
// Return:       Was the command echoed? Tag present?
// Side effects: None.
extern BYTE SearchRx(void);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -