STMicroelectronics' M24SR NFC Dynamic Tag Library.

Dependencies:   ST_INTERFACES

Dependents:   X_NUCLEO_NFC01A1

Fork of M24SR by ST Expansion SW Team

Embed: (wiki syntax)

« Back to documentation index

M24SR::Callbacks Class Reference

M24SR::Callbacks Class Reference

Object that contains all the callbacks fired by this class, each command has its own callback. More...

#include <M24SR.h>

Inherited by M24SR::ChangeAccessStateCallback, M24SR::ChangePasswordRequestStatusCallback, M24SR::ManageGPOCallback, M24SR::ReadIDCallback, M24SR::RemoveAllPasswordCallback, NDefNfcTagM24SR::CloseSessionCallBack, NDefNfcTagM24SR::OpenSessionCallBack, NDefNfcTagM24SR::ReadByteCallback, and NDefNfcTagM24SR::WriteByteCallback.

Public Member Functions

virtual void on_session_open (M24SR *nfc, StatusTypeDef status)
 called when GetSession or ForceGetSession completes
virtual void on_deselect (M24SR *nfc, StatusTypeDef status)
 called when Deselect completes
virtual void on_selected_application (M24SR *nfc, StatusTypeDef status)
 called when SelectedApplication completes
virtual void on_selected_CC_file (M24SR *nfc, StatusTypeDef status)
 called when SelectedCCFile completes
virtual void on_selected_NDEF_file (M24SR *nfc, StatusTypeDef status)
 called when SelectedNDEFFile completes
virtual void on_selected_system_file (M24SR *nfc, StatusTypeDef status)
 called when SelectedSystemFile completes
virtual void on_read_byte (M24SR *nfc, StatusTypeDef status, uint16_t offset, uint8_t *readByte, uint16_t nReadByte)
 called when read_binary or STReadBinary completes
virtual void on_updated_binary (M24SR *nfc, StatusTypeDef status, uint16_t offset, uint8_t *writeByte, uint16_t nWriteByte)
 called when UpdatedBinary completes
virtual void on_verified (M24SR *nfc, StatusTypeDef status, PasswordType_t uPwdId, const uint8_t *pwd)
 called when Verify completes
virtual void on_manage_I2C_GPO (M24SR *nfc, StatusTypeDef status, NFC_GPO_MGMT newStatus)
 called when ManageI2CGPO completes
virtual void on_manage_RF_GPO (M24SR *nfc, StatusTypeDef status, NFC_GPO_MGMT newStatus)
 called when ManageRFGPO completes
virtual void on_change_reference_data (M24SR *nfc, StatusTypeDef status, PasswordType_t type, uint8_t *data)
 called when ChangeReferenceData completes
virtual void on_enable_verification_requirement (M24SR *nfc, StatusTypeDef status, PasswordType_t type)
 called when EnableVerificationRequirement completes
virtual void on_disable_verification_requirement (M24SR *nfc, StatusTypeDef status, PasswordType_t type)
 called when disable_verification_requirement completes
virtual void on_enable_permanent_state (M24SR *nfc, StatusTypeDef status, PasswordType_t type)
 called when EnablePermanentState completes
virtual void on_disable_permanent_state (M24SR *nfc, StatusTypeDef status, PasswordType_t type)
 called when DisablePermanentState completes
virtual void on_read_id (M24SR *nfc, StatusTypeDef status, uint8_t *id)
 called when ReadId completes
virtual void on_enable_read_password (M24SR *nfc, StatusTypeDef status, const uint8_t *newPwd)
 called when EnableReadPassword completes
virtual void on_enable_write_password (M24SR *nfc, StatusTypeDef status, const uint8_t *newPwd)
 called when EnableWritePassword completes
virtual void on_disable_read_password (M24SR *nfc, StatusTypeDef status)
 called when DisableReadPassword completes
virtual void on_disable_write_password (M24SR *nfc, StatusTypeDef status)
 called when DisableWritePassword completes
virtual void on_disable_all_password (M24SR *nfc, StatusTypeDef status)
 called when DisableAllPassword completes
virtual void on_enable_read_only (M24SR *nfc, StatusTypeDef status)
 called when EnableReadOnly completes
virtual void on_enable_write_only (M24SR *nfc, StatusTypeDef status)
 called when EnableWriteOnly completes
virtual void on_disable_read_only (M24SR *nfc, StatusTypeDef status)
 called when DisableReadOnly completes
virtual void on_disable_write_only (M24SR *nfc, StatusTypeDef status)
 called when DisableWriteOnly completes

Detailed Description

Object that contains all the callbacks fired by this class, each command has its own callback.

The callback default implementation is an empty function.

Definition at line 154 of file M24SR.h.


Member Function Documentation

virtual void on_change_reference_data ( M24SR nfc,
StatusTypeDef  status,
PasswordType_t  type,
uint8_t *  data 
) [virtual]

called when ChangeReferenceData completes

See also:
M24SR::ChangeReferenceData

Definition at line 230 of file M24SR.h.

virtual void on_deselect ( M24SR nfc,
StatusTypeDef  status 
) [virtual]

called when Deselect completes

See also:
M24SR::Deselect

Definition at line 166 of file M24SR.h.

virtual void on_disable_all_password ( M24SR nfc,
StatusTypeDef  status 
) [virtual]

called when DisableAllPassword completes

See also:
M24SR::DisableAllPassword

Definition at line 291 of file M24SR.h.

virtual void on_disable_permanent_state ( M24SR nfc,
StatusTypeDef  status,
PasswordType_t  type 
) [virtual]

called when DisablePermanentState completes

See also:
M24SR::DisablePermanentState

Definition at line 255 of file M24SR.h.

virtual void on_disable_read_only ( M24SR nfc,
StatusTypeDef  status 
) [virtual]

called when DisableReadOnly completes

See also:
M24SR::DisableReadOnly

Definition at line 311 of file M24SR.h.

virtual void on_disable_read_password ( M24SR nfc,
StatusTypeDef  status 
) [virtual]

called when DisableReadPassword completes

See also:
M24SR::DisableReadPassword

Definition at line 279 of file M24SR.h.

virtual void on_disable_verification_requirement ( M24SR nfc,
StatusTypeDef  status,
PasswordType_t  type 
) [virtual]

called when disable_verification_requirement completes

See also:
M24SR::disable_verification_requirement

Definition at line 243 of file M24SR.h.

virtual void on_disable_write_only ( M24SR nfc,
StatusTypeDef  status 
) [virtual]

called when DisableWriteOnly completes

See also:
M24SR::DisableWriteOnly

Definition at line 317 of file M24SR.h.

virtual void on_disable_write_password ( M24SR nfc,
StatusTypeDef  status 
) [virtual]

called when DisableWritePassword completes

See also:
M24SR::DisableWritePassword

Definition at line 285 of file M24SR.h.

virtual void on_enable_permanent_state ( M24SR nfc,
StatusTypeDef  status,
PasswordType_t  type 
) [virtual]

called when EnablePermanentState completes

See also:
M24SR::EnablePermanentState

Definition at line 249 of file M24SR.h.

virtual void on_enable_read_only ( M24SR nfc,
StatusTypeDef  status 
) [virtual]

called when EnableReadOnly completes

See also:
M24SR::EnableReadOnly

Definition at line 298 of file M24SR.h.

virtual void on_enable_read_password ( M24SR nfc,
StatusTypeDef  status,
const uint8_t *  newPwd 
) [virtual]

called when EnableReadPassword completes

See also:
M24SR::EnableReadPassword

Definition at line 267 of file M24SR.h.

virtual void on_enable_verification_requirement ( M24SR nfc,
StatusTypeDef  status,
PasswordType_t  type 
) [virtual]

called when EnableVerificationRequirement completes

See also:
M24SR::EnableVerificationRequirement

Definition at line 237 of file M24SR.h.

virtual void on_enable_write_only ( M24SR nfc,
StatusTypeDef  status 
) [virtual]

called when EnableWriteOnly completes

See also:
M24SR::EnableWriteOnly

Definition at line 304 of file M24SR.h.

virtual void on_enable_write_password ( M24SR nfc,
StatusTypeDef  status,
const uint8_t *  newPwd 
) [virtual]

called when EnableWritePassword completes

See also:
M24SR::EnableWritePassword

Definition at line 273 of file M24SR.h.

virtual void on_manage_I2C_GPO ( M24SR nfc,
StatusTypeDef  status,
NFC_GPO_MGMT  newStatus 
) [virtual]

called when ManageI2CGPO completes

See also:
M24SR::ManageI2CGPO

Definition at line 218 of file M24SR.h.

virtual void on_manage_RF_GPO ( M24SR nfc,
StatusTypeDef  status,
NFC_GPO_MGMT  newStatus 
) [virtual]

called when ManageRFGPO completes

See also:
M24SR::ManageRFGPO

Definition at line 224 of file M24SR.h.

virtual void on_read_byte ( M24SR nfc,
StatusTypeDef  status,
uint16_t  offset,
uint8_t *  readByte,
uint16_t  nReadByte 
) [virtual]

called when read_binary or STReadBinary completes

See also:
M24SR::read_binary
M24SR::STReadBinary

Definition at line 197 of file M24SR.h.

virtual void on_read_id ( M24SR nfc,
StatusTypeDef  status,
uint8_t *  id 
) [virtual]

called when ReadId completes

See also:
M24SR::ReadId

Definition at line 261 of file M24SR.h.

virtual void on_selected_application ( M24SR nfc,
StatusTypeDef  status 
) [virtual]

called when SelectedApplication completes

See also:
M24SR::SelectedApplication

Definition at line 172 of file M24SR.h.

virtual void on_selected_CC_file ( M24SR nfc,
StatusTypeDef  status 
) [virtual]

called when SelectedCCFile completes

See also:
M24SR::SelectedCCFile

Definition at line 178 of file M24SR.h.

virtual void on_selected_NDEF_file ( M24SR nfc,
StatusTypeDef  status 
) [virtual]

called when SelectedNDEFFile completes

See also:
M24SR::SelectedNDEFFile

Definition at line 184 of file M24SR.h.

virtual void on_selected_system_file ( M24SR nfc,
StatusTypeDef  status 
) [virtual]

called when SelectedSystemFile completes

See also:
M24SR::SelectedSystemFile

Definition at line 190 of file M24SR.h.

virtual void on_session_open ( M24SR nfc,
StatusTypeDef  status 
) [virtual]

called when GetSession or ForceGetSession completes

See also:
M24SR::GetSession
M24SR::ForceGetSession

Definition at line 160 of file M24SR.h.

virtual void on_updated_binary ( M24SR nfc,
StatusTypeDef  status,
uint16_t  offset,
uint8_t *  writeByte,
uint16_t  nWriteByte 
) [virtual]

called when UpdatedBinary completes

See also:
M24SR::UpdatedBinary

Definition at line 204 of file M24SR.h.

virtual void on_verified ( M24SR nfc,
StatusTypeDef  status,
PasswordType_t  uPwdId,
const uint8_t *  pwd 
) [virtual]

called when Verify completes

See also:
M24SR::Verify

Definition at line 211 of file M24SR.h.