![]() |
STM8L libraries for CR95HF 1.0
|
Functions | |
u8 | M24LRXX_Inventory (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 Tag_AFI, const u8 MaskLength, const u8 *Mask, u8 *Inventory_16_slots_Nb_UID_Retrieved) |
This function sends, through the CR95HF, to a contactless tag posssibly of the M24LRXX family, an inventory command and fills the Tag structure if some contactless tag answers. | |
u8 | M24LRXX_Stay_Quiet (const u8 Request_flags, const u8 *Tag_UID) |
This function sends, through the CR95HF, a stay quiet command to a unique contactless tag possibly belonging to the M24LRXX family designated by its UID. | |
u8 | M24LRXX_Read_Single_Block (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID, const u16 Block_number) |
This function sends, through the CR95HF, a read single block command to the contactless tag possibly of the M24LRX family in the field or to an unique contactless tag designated by its UID. Note that for more than 8kbits device, the protocol extension should be set within the request flags as the block number is on two bytes. | |
u8 | M24LRXX_Write_Single_Block (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID, const u16 Block_number, const u8 *Data) |
This function sends, through the CR95HF, a write single block command to the contactless tag opssibly from the M24LRXX family in the field or to an unique contactless tag designated by its UID.Note that for more than 8kbits device, the protocol extension should be set within the request flags as the block number is on two bytes. | |
u8 | M24LRXX_Read_Multiple_Block (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID, const u16 First_Block_number, const u8 Number_of_Blocks) |
This function sends, through the CR95HF, a read multiple block command to the contactless tag possibly belonging to the M24LRXX family in the field or to an unique contactless tag designated by its UID. Note that data received are stored into the internal EEPROM of the MCU. | |
u8 | M24LRXX_Select (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID) |
This function sends, through the CR95HF, a select command to the unique contactless tag designated by its UID possibly belonging to the M24LRXX family. | |
u8 | M24LRXX_Reset_to_Ready (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID) |
This function sends, through the CR95HF, a reset to ready state command to a contactless tag possibly belong to the M24LRXX family. This command could be used in two different case: | |
u8 | M24LRXX_Write_AFI (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID, const u8 Tag_AFI) |
This function sends, through the CR95HF, a write AFI command to the contacless tag in the field possibly belonging to the M24LRXX family or to an unique contactless tag designated by its UID. | |
u8 | M24LRXX_Lock_AFI (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID) |
This function sends, through the CR95HF, a Lock AFI command to the contacless tag in the field possibly from the M24LRXX family or to an unique contactless tag designated by its UID. | |
u8 | M24LRXX_Write_DSFID (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID, const u8 Tag_DSFID) |
This function sends, through the CR95HF, a write DSFID command to the contacless tag in the field possibly belonging to the M24LRXX family or to an unique contactless tag designated by its UID. | |
u8 | M24LRXX_Lock_DSFID (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID) |
This function sends, through the CR95HF, a Lock DSFID command to the contacless tag in the field possibly from the M24LRXX family or to an unique contactless tag designated by its UID. | |
u8 | M24LRXX_Get_System_Info (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID) |
This function sends, through the CR95HF, an get System Information command to the contacless tag ,possibly from the M24LRXX family, in the field or to an unique contactless tag designated by its UID. Note that here the protocol extension flag is set. | |
u8 | M24LRXX_Get_Multiple_Blocks_Security_Status (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID, const u16 First_Block_number, const u8 Number_of_Blocks) |
This function sends, through the CR95HF, a get multiple blocks security status command to the contactless tag in the field,possibly from the M24LRXX family, or to an unique contactless tag designated by its UID. note that data are stored into the eeprom. | |
u8 | M24LRXX_Write_Sector_Password (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID, const u8 Password_Number, const u8 *Password) |
This function sends, through the CR95HF, a write sector password command to a M24LRXX contactless tag in the field or designated by its UID . The password written will be usefull to protect data contained within the contactless tag. Note that on delivery state the passwords are 00.00.00.00 h and a present password must be issued whith this value before issuing the command and then when each time password is changed. | |
u8 | M24LRXX_Lock_Sector_Password (ISO15693_Tag *MyTag, u8 Request_flags, const u8 *Tag_UID, u16 Sector_Number, u8 Sector_Security_Status) |
This function sends, through the CR95HF, a lock sector password command to a M24LRXX contactless tag in the field or designated by its UID. Note that for devices with more than 8kbits memory this command locks a entire sector (i.e : 32 blocks). This command can also be used to lock only one block (less than 8kbits devices. | |
u8 | M24LRXX_Present_Sector_Password (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID, const u8 Password_Number, const u8 *Password) |
This function sends, through the CR95HF, a present sector password command to a M24LRXX contactless tag in the field or designated by its UID . The password provided is compared with the one within the conctactless tag. If they macth the access to all memory linked to the password is changed as set with the lock sector password command previously. | |
u8 | M24LRXX_Fast_Read_Single_Block (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID, const u16 Block_number) |
This function sends, through the CR95HF, a read single block command to the M24LRXX contactless tag in the field or to an unique contactless tag designated by its UID. The particularity of this command is the datatrate used by the contactless tag to answer which is 53kbits/s. | |
u8 | M24LRXX_Fast_Inventory_Initiated (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 Tag_AFI, const u8 MaskLength, const u8 *Mask, u8 *Inventory_16_slots_Nb_UID_Retrieved) |
This function sends, through the CR95HF, a fast inventory command to the M24LRXX contactless tags in the field. The datarate of the response is multiplied by 2 (here 52kbits/s). Note that a fast initiate command should be issued before calling this function. | |
u8 | M24LRXX_Fast_Initiate (ISO15693_Tag *MyTag, const u8 Request_flags) |
This function sends, through the CR95HF, a fast initiate command to a M24LRXX contactless tag in the field or designated by its UID . On receiving the fast initiate command the M24LRXX contactless tag set the internal initiate flag ( to send a inventory initited command) and returns its UID and its DSFID, with a datarate multiplied by two (here 52kbits/s). Note that the command should not be in addressed or selected mode, the flag is reset afther a power off. | |
u8 | M24LRXX_Fast_Read_Multiple_Block (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID, const u8 First_Block_number, const u8 Number_of_Blocks) |
This function sends, through the CR95HF, a read multiple block command a fast read multiple blocks command to a M24LRXX contactless tag in the field or designated by its UID . Note that data received are stored into the internal EEPROM of the MCU. | |
u8 | M24LRXX_Inventory_Initiated (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 Tag_AFI, const u8 MaskLength, const u8 *Mask, u8 *Inventory_16_slots_Nb_UID_Retrieved) |
This function sends, through the CR95HF, an inventory initiated command to the M24LRXX contactless tags in the field. On receiving the initiate command the M24LRXX contactless tag set the internal initiate flag ( to send a inventory initited command) and returns its UID and its DSFID. Note that a initiate command should be issued before calling this function. | |
u8 | M24LRXX_Initiate (ISO15693_Tag *MyTag, const u8 Request_flags) |
This function sends, through the CR95HF, an initiate command to a M24LRXX contactless tag in the field or designated by its UID . On receiving the initiate command the M24LRXX contactless tag set the internal initiate flag ( to send a inventory initited command) and returns its UID and its DSFID. Note that the command should not be in addressed or selected mode, the flag is reset afther a power off. |
u8 M24LRXX_Fast_Initiate | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags | ||
) |
This function sends, through the CR95HF, a fast initiate command to a M24LRXX contactless tag in the field or designated by its UID . On receiving the fast initiate command the M24LRXX contactless tag set the internal initiate flag ( to send a inventory initited command) and returns its UID and its DSFID, with a datarate multiplied by two (here 52kbits/s). Note that the command should not be in addressed or selected mode, the flag is reset afther a power off.
MyTag | : pointer on the structure to write command status |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. Here neither the addressed or select flag should be set. |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Fast_Inventory_Initiated | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 | Tag_AFI, | ||
const u8 | MaskLength, | ||
const u8 * | Mask, | ||
u8 * | Inventory_16_slots_Nb_UID_Retrieved | ||
) |
This function sends, through the CR95HF, a fast inventory command to the M24LRXX contactless tags in the field. The datarate of the response is multiplied by 2 (here 52kbits/s). Note that a fast initiate command should be issued before calling this function.
MyTag | : pointer on the structure to write command status |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. Here inventory flag should be set, if AFI is present, AFI flag should be set. |
Tag_AFI | : the optionnal AFI to select a contactless tag family ( Flag indicates if the field is present or not |
MaskLength | : Length of the mask for transmitting, for example to transmit a part of the UID of one contactless tag. MaskLength represents the number of significant bits . The user should ensure that others bits are reset for padding in order to transmit only whole bytes. |
Mask | : The mask to transmit. (Mask[0] = LSB) |
Inventory_16_slots_Nb_UID_Retrieved | : pointer to retrieve the number of tag seen during the inventory 16 slots. |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Fast_Read_Multiple_Block | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID, | ||
const u8 | First_Block_number, | ||
const u8 | Number_of_Blocks | ||
) |
This function sends, through the CR95HF, a read multiple block command a fast read multiple blocks command to a M24LRXX contactless tag in the field or designated by its UID . Note that data received are stored into the internal EEPROM of the MCU.
MyTag | : pointer of the structure to write the command status and eventual error code |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. If command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag for block reading (optionnal). |
First_Block_number | : address of the first block to read. |
Number_of_Blocks | : number of block to read after the first one. For instance 0x06 means that 7 seven blocks will be read, 0x00 : only one |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Fast_Read_Single_Block | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID, | ||
const u16 | Block_number | ||
) |
This function sends, through the CR95HF, a read single block command to the M24LRXX contactless tag in the field or to an unique contactless tag designated by its UID. The particularity of this command is the datatrate used by the contactless tag to answer which is 53kbits/s.
MyTag | : pointer of the structure to write data read |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. If command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag for block reading (optionnal). |
Block_number | : address of the block to read. |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Get_Multiple_Blocks_Security_Status | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID, | ||
const u16 | First_Block_number, | ||
const u8 | Number_of_Blocks | ||
) |
This function sends, through the CR95HF, a get multiple blocks security status command to the contactless tag in the field,possibly from the M24LRXX family, or to an unique contactless tag designated by its UID. note that data are stored into the eeprom.
MyTag | : pointer on the structure to write command status |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. If command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag for block reading (optionnal). |
First_Block_number | : address of the first block to read. |
Number_of_Blocks | : number of block to read after the first one. For instance 0x06 means that 7 seven blocks will be read, 0x00 : only one. Note that this number is limited to 32 blocks (status for 1kbits of data),furthermore the CR95HF datalength byte is on one byte, this means that frame of 255 bytes can be received. |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct ) |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Get_System_Info | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID | ||
) |
This function sends, through the CR95HF, an get System Information command to the contacless tag ,possibly from the M24LRXX family, in the field or to an unique contactless tag designated by its UID. Note that here the protocol extension flag is set.
MyTag | : pointer on the structure |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. If command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag for block writing (optionnal). |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Initiate | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags | ||
) |
This function sends, through the CR95HF, an initiate command to a M24LRXX contactless tag in the field or designated by its UID . On receiving the initiate command the M24LRXX contactless tag set the internal initiate flag ( to send a inventory initited command) and returns its UID and its DSFID. Note that the command should not be in addressed or selected mode, the flag is reset afther a power off.
MyTag | : pointer on the structure to write command status |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. Here neither the addressed or select flag should be set. |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Inventory | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 | Tag_AFI, | ||
const u8 | MaskLength, | ||
const u8 * | Mask, | ||
u8 * | Inventory_16_slots_Nb_UID_Retrieved | ||
) |
This function sends, through the CR95HF, to a contactless tag posssibly of the M24LRXX family, an inventory command and fills the Tag structure if some contactless tag answers.
MyTag | : pointer on the structure |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. Here inventory flag should be set, if AFI is present, AFI flag should be set. |
Tag_AFI | : the optionnal AFI to select a contactless tag family ( Flag indicates if the field is present or not |
MaskLength | : Length of the mask for transmitting, for example to transmit a part of the UID of one contactless tag. MaskLength represents the number of significant bits . The user should ensure that others bits are reset for padding in order to transmit only whole bytes. |
Mask | : The mask to transmit. (Mask[0] = LSB) |
Inventory_16_slots_Nb_UID_Retrieved | : pointer to retrieve the number of tag seen during the inventory 16 slots. |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the tag did not manage to perform the request. |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : The inventory flag is not set, the mask size overweight the limited size or there is an other eoor into the request flags parameters |
LM24LRXX_SUCCESS_CODE | : A contactless tag answered the command. |
u8 M24LRXX_Inventory_Initiated | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 | Tag_AFI, | ||
const u8 | MaskLength, | ||
const u8 * | Mask, | ||
u8 * | Inventory_16_slots_Nb_UID_Retrieved | ||
) |
This function sends, through the CR95HF, an inventory initiated command to the M24LRXX contactless tags in the field. On receiving the initiate command the M24LRXX contactless tag set the internal initiate flag ( to send a inventory initited command) and returns its UID and its DSFID. Note that a initiate command should be issued before calling this function.
MyTag | : pointer on the structure to write command status |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. Here inventory flag should be set, if AFI is present, AFI flag should be set. |
Tag_AFI | : the optionnal AFI to select a contactless tag family ( Flag indicates if the field is present or not |
MaskLength | : Length of the mask for transmitting, for example to transmit a part of the UID of one contactless tag. MaskLength represents the number of significant bits . The user should ensure that others bits are reset for padding in order to transmit only whole bytes. |
Mask | : The mask to transmit. (Mask[0] = LSB) |
Inventory_16_slots_Nb_UID_Retrieved | : pointer to retrieve the number of tag seen during the inventory 16 slots. |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Lock_AFI | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID | ||
) |
This function sends, through the CR95HF, a Lock AFI command to the contacless tag in the field possibly from the M24LRXX family or to an unique contactless tag designated by its UID.
MyTag | : pointer on the structure to write status of the command especially for error code |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. If command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag for block writing (optionnal). |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Lock_DSFID | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID | ||
) |
This function sends, through the CR95HF, a Lock DSFID command to the contacless tag in the field possibly from the M24LRXX family or to an unique contactless tag designated by its UID.
MyTag | : pointer on the structure to write status of the command especially for error code |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. If command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag for block writing (optionnal). |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Lock_Sector_Password | ( | ISO15693_Tag * | MyTag, |
u8 | Request_flags, | ||
const u8 * | Tag_UID, | ||
u16 | Sector_Number, | ||
u8 | Sector_Security_Status | ||
) |
This function sends, through the CR95HF, a lock sector password command to a M24LRXX contactless tag in the field or designated by its UID. Note that for devices with more than 8kbits memory this command locks a entire sector (i.e : 32 blocks). This command can also be used to lock only one block (less than 8kbits devices.
MyTag | : pointer on the structure to write command status |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. If command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag. |
Sector_Number | : one of the block addresses contained into the sector. For instance, as one sector gathers 32 blocks, blocks 0 to 31 refer to sector 0, blocks 32 to 63 refer to sector 1... |
Sector_Security_Status | : defines the read write protection and the number of the password protecting the sector. Please refer to datasheet and dedicated functions ( ) for further information and calculation of the byte |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Present_Sector_Password | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID, | ||
const u8 | Password_Number, | ||
const u8 * | Password | ||
) |
This function sends, through the CR95HF, a present sector password command to a M24LRXX contactless tag in the field or designated by its UID . The password provided is compared with the one within the conctactless tag. If they macth the access to all memory linked to the password is changed as set with the lock sector password command previously.
MyTag | : pointer on the structure to write command status |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. If command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag to write the kill code if addressed flag is set within the request flags. |
Password_Number | : number identifying the password (between 1 and 3) |
Password | : password to compare |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Read_Multiple_Block | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID, | ||
const u16 | First_Block_number, | ||
const u8 | Number_of_Blocks | ||
) |
This function sends, through the CR95HF, a read multiple block command to the contactless tag possibly belonging to the M24LRXX family in the field or to an unique contactless tag designated by its UID. Note that data received are stored into the internal EEPROM of the MCU.
MyTag | : pointer of the structure to write the command status and eventual error code |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. If command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag for block reading (optionnal). |
First_Block_number | : address of the first block to read. |
Number_of_Blocks | : number of block to read after the first one. For instance 0x06 means that 7 seven blocks will be read, 0x00 : only one. Limited to 32 blocks for device with more than 8kibts memory assuming that the blocks are located in the same sector, an error is returned if it is not the case |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct ) |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Read_Single_Block | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID, | ||
const u16 | Block_number | ||
) |
This function sends, through the CR95HF, a read single block command to the contactless tag possibly of the M24LRX family in the field or to an unique contactless tag designated by its UID. Note that for more than 8kbits device, the protocol extension should be set within the request flags as the block number is on two bytes.
MyTag | : pointer of the structure to write data read |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. If command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag for block reading (optionnal). |
Block_number | : address of the block to read. |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct ) |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Reset_to_Ready | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID | ||
) |
This function sends, through the CR95HF, a reset to ready state command to a contactless tag possibly belong to the M24LRXX family. This command could be used in two different case:
MyTag | : pointer on the structure to write status of the command especially for error code |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. If command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag for block writing (optionnal). |
M24LRXX_ERROR_CODE | :the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Select | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID | ||
) |
This function sends, through the CR95HF, a select command to the unique contactless tag designated by its UID possibly belonging to the M24LRXX family.
MyTag | : pointer on the structure to write status of the command especially for error code |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. Here command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag for block writing (optionnal). |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Stay_Quiet | ( | const u8 | Request_flags, |
const u8 * | Tag_UID | ||
) |
This function sends, through the CR95HF, a stay quiet command to a unique contactless tag possibly belonging to the M24LRXX family designated by its UID.
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. Here command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag to put in quiet mode. |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the tag did not manage to perform the request. |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : The inventory flag is set or request is not well addressesed |
M24LRXX_SUCCESS_CODE | : contactless tag is supposed to be in quiet mode. |
u8 M24LRXX_Write_AFI | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID, | ||
const u8 | Tag_AFI | ||
) |
This function sends, through the CR95HF, a write AFI command to the contacless tag in the field possibly belonging to the M24LRXX family or to an unique contactless tag designated by its UID.
MyTag | : pointer on the structure to write status of the command especially for error code |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. If command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag for block writing (optionnal). |
Tag_AFI | : AFI of the contacless tag, refer to datasheet for further information. |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Write_DSFID | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID, | ||
const u8 | Tag_DSFID | ||
) |
This function sends, through the CR95HF, a write DSFID command to the contacless tag in the field possibly belonging to the M24LRXX family or to an unique contactless tag designated by its UID.
MyTag | : pointer on the structure to write status of the command especially for error code |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. If command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag for block writing (optionnal). |
Tag_DSFID | : DSFID of the contacless tag, refer to datasheet for further information. |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Write_Sector_Password | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID, | ||
const u8 | Password_Number, | ||
const u8 * | Password | ||
) |
This function sends, through the CR95HF, a write sector password command to a M24LRXX contactless tag in the field or designated by its UID . The password written will be usefull to protect data contained within the contactless tag. Note that on delivery state the passwords are 00.00.00.00 h and a present password must be issued whith this value before issuing the command and then when each time password is changed.
MyTag | : pointer on the structure to write command status |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. If command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag to write the kill code if addressed flag is set within the request flags. |
Password_Number | : number identifying the password (between 1 and 3) |
Password | : password to write |
M24LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct). |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |
u8 M24LRXX_Write_Single_Block | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID, | ||
const u16 | Block_number, | ||
const u8 * | Data | ||
) |
This function sends, through the CR95HF, a write single block command to the contactless tag opssibly from the M24LRXX family in the field or to an unique contactless tag designated by its UID.Note that for more than 8kbits device, the protocol extension should be set within the request flags as the block number is on two bytes.
MyTag | : pointer on the structure to write status of the command especially for error code |
Request_flags | : specifies how the contactless shall perform the command and answer. Also indicates whether corresponding fields are present or not. If command is addressed UID should be present and address flag set. |
Tag_UID | : pointer on the UID of the contactless tag for block writing (optionnal). |
Block_number | : address of the block to write. |
Data | : data to write. |
M14LRXX_ERROR_CODE | : the command failed. Either there is no contactless tag or the answer is not valid (CR95HF returns an error or CRC residue is not correct) |
M24LRXX_ERROR_PARAMETERS_REQUEST_FLAGS | : there is an error within the request flags parameters |
M24LRXX_SUCCESS_CODE | : contactless tag answered the command. |