![]() |
STM8L libraries for CR95HF 1.0
|
Functions | |
u8 | M24LRXX_ReadCfg (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID) |
This function sends, through the CR95HF, an read Config command to a M24LRXX-E contactless tag in the field or designated by its UID . On receiving the read Config command the M24LRXX-E contactless tag reads the configuration byte and sends back its value. | |
u8 | M24LRXX_Write_EH_Cfg (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID, u8 Configuration_Byte) |
This function sends, through the CR95HF, an WriteEHCfg command to a M24LRXX-E contactless tag in the field or designated by its UID . On receiving the write Energy Harvesting Configuration command the M24LRXX-E contactless tag writes the data provided to the configuration byte and reports the status of the command.Note that only bits 0 to 2 are written bit 3 is ignored. | |
u8 | M24LRXX_Write_DO_Cfg (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID, u8 Configuration_Byte) |
This function sends, through the CR95HF, an WriteDOCfg command to a M24LRXX-E contactless tag in the field or designated by its UID . On receiving the write Data Out Configuration command the M24LRXX-E contactless tag writes the data provided to the configuration byte and reports the status of the command. Note that only the fourth bit (bit 3) is written, bits 0 to 2 are ignored. | |
u8 | M24LRXX_SetRst_EH_en (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID, u8 Set_Reset) |
This function sends, through the CR95HF, an setRstEHen command to a M24LRXX-E contactless tag in the field or designated by its UID . On receiving the set reset Energy Harvesting Enable command the M24LRXX-E contactless tag set or reset the EHenable bit, within the volatile control register. | |
u8 | M24LRXX_Check_EH_En (ISO15693_Tag *MyTag, const u8 Request_flags, const u8 *Tag_UID) |
This function sends, through the CR95HF, an Check EH En command to a M24LRXX-E contactless tag in the field or designated by its UID . On receiving the Check Energy Harvesting enabled command the M24LRXX-E contactless tag reads the control register and sends back its value. Note that as this command is a RF command the bit 1 (field on ) is expected to be set, the main purpose of this command is detemrine if the Energy Harvesting mode is enabled. |
u8 M24LRXX_Check_EH_En | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID | ||
) |
This function sends, through the CR95HF, an Check EH En command to a M24LRXX-E contactless tag in the field or designated by its UID . On receiving the Check Energy Harvesting enabled command the M24LRXX-E contactless tag reads the control register and sends back its value. Note that as this command is a RF command the bit 1 (field on ) is expected to be set, the main purpose of this command is detemrine if the Energy Harvesting mode is enabled.
MyTag | : pointer on the structure to write command status and the configuration byte. |
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). |
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_ReadCfg | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID | ||
) |
This function sends, through the CR95HF, an read Config command to a M24LRXX-E contactless tag in the field or designated by its UID . On receiving the read Config command the M24LRXX-E contactless tag reads the configuration byte and sends back its value.
MyTag | : pointer on the structure to write command status and the configuration byte. |
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). |
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_SetRst_EH_en | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID, | ||
u8 | Set_Reset | ||
) |
This function sends, through the CR95HF, an setRstEHen command to a M24LRXX-E contactless tag in the field or designated by its UID . On receiving the set reset Energy Harvesting Enable command the M24LRXX-E contactless tag set or reset the EHenable bit, within the volatile control register.
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). |
Set_Reset | : Enable the energy harvesting (M24LRXX_CONTROL_BYTE_EH_ENABLE) or disable (M24LRXX_CONTROL_BYTE_EH_DISABLE) |
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_DO_Cfg | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID, | ||
u8 | Configuration_Byte | ||
) |
This function sends, through the CR95HF, an WriteDOCfg command to a M24LRXX-E contactless tag in the field or designated by its UID . On receiving the write Data Out Configuration command the M24LRXX-E contactless tag writes the data provided to the configuration byte and reports the status of the command. Note that only the fourth bit (bit 3) is written, bits 0 to 2 are ignored.
MyTag | : pointer on the structure to write command status and the configuration byte. |
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). |
Configuration_Byte | : the byte to write to the configuration 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_Write_EH_Cfg | ( | ISO15693_Tag * | MyTag, |
const u8 | Request_flags, | ||
const u8 * | Tag_UID, | ||
u8 | Configuration_Byte | ||
) |
This function sends, through the CR95HF, an WriteEHCfg command to a M24LRXX-E contactless tag in the field or designated by its UID . On receiving the write Energy Harvesting Configuration command the M24LRXX-E contactless tag writes the data provided to the configuration byte and reports the status of the command.Note that only bits 0 to 2 are written bit 3 is ignored.
MyTag | : pointer on the structure to write command status and the configuration byte. |
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). |
Configuration_Byte | : the byte to write to the configuration 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. |