Renesas PTX1xxR IoT-Reader API (non-OS) Version 7.3.1
Renesas Software Stack for IoT-Reader Applications (non-OS)
Data Structures | Typedefs | Enumerations | Functions
PTX NSC Stack Core
Collaboration diagram for PTX NSC Stack Core:

Data Structures

struct  ptxNSC_RfConfigTlv
 Parameters for NSC_RF_CONFIG_CMD. More...
 
struct  ptxNSC_InitPars
 Parameters for NSC_INIT_CMD. More...
 
struct  ptxNSC_RfDiscPars
 Parameters for NSC_DISCOVER_CMD. More...
 
struct  ptxNSC_RfPar_RfTech
 NSC Rf Parameter Rf Tech. More...
 
struct  ptxNSC_RfPar_Fwt
 NSC Rf Parameter Fwt. More...
 
struct  ptxNSC_RfPar_TxBitRate
 NSC Rf Parameter Tx_Bit_Rate. More...
 
struct  ptxNSC_RfPar_RxBitRate
 NSC Rf Parameter Rx_Bit_Rate. More...
 
struct  ptxNSC_RfPar_TxParity
 NSC Rf Parameter Tx_Parity. More...
 
struct  ptxNSC_RfPar_RxParity
 NSC Rf Parameter Rx_Parity. More...
 
struct  ptxNSC_RfPar_TxCRC
 NSC Rf Parameter Tx_CRC. More...
 
struct  ptxNSC_RfPar_RxCRC
 NSC Rf Parameter Rx_Parity. More...
 
struct  ptxNsc_RfPar_ResLimit
 NSC Rf Parameter Res(ponse)_Limit. More...
 
struct  ptxNsc_RfPar_TxResidualBits
 NSC Rf Parameter Tx_Residual_Bits. More...
 
struct  ptxNsc_RfPar_RfField
 NSC Rf Parameter Rf_Field. More...
 
union  ptxNSC_RfPar_Params
 Union Rf Parameters. More...
 
struct  ptxNSC_RfPar
 Rf Param. More...
 
struct  ptxNSC_RfSetParams_Par
 NSC Rf Set Parameters CMD parameter structure. More...
 
struct  ptxNSC_RfActTech_A_Param
 NSC Rf Tech A Activation Parameters. More...
 
struct  ptxNSC_RfActTech_B_Param
 NSC Rf Tech B Activation Parameters. More...
 
struct  ptxNSC_RfActTech_F_Param
 NSC Rf Tech F Activation Parameters. More...
 
struct  ptxNSC_RfActTech_V_Param
 NSC Rf Tech V Activation Parameters. More...
 
union  ptxNSC_RfActTech_Param
 NSC Rf Tech Activation Parameters. More...
 
union  ptxNSC_RfActProt_ISODEP_Param
 NSC Rf Prot ISO-DEP (Type-A) Activation Parameters. More...
 
union  ptxNSC_RfActProt_Param_t
 NSC Rf Prot Activation Parameters. More...
 
struct  ptxNSC_RfActiv_Param
 NSC Rf Activate structure. More...
 
struct  ptxNSC_RfDeactPars
 NSC RF deactivate parameters. More...
 
struct  ptxNSC_ReadCmd_Par
 NSC Read CMD parameter structure. More...
 
struct  ptxNSC_WriteCmd_Par
 
struct  ptxNSC_Rsp
 NSC RSP Handler. More...
 
struct  ptxNSC_RfConfig_Regs
 NSC Rf Config Registers Structures. More...
 
struct  ptxNSC_RfConfig_Param
 NSC Rf Config Parameters. More...
 
struct  ptxNSC_RFMiscConfig_Param
 NSC Misc. Rf Config Parameters (Shadow-Copy) More...
 
struct  ptxNSC_ConfigPars
 Configuration parameters for the NSC Component. More...
 
struct  ptxNSC_Custom_Extension
 Extension Prototype (RFU): Extension Component Structure. More...
 
struct  ptxNSC
 Main NSC component structure. More...
 

Typedefs

typedef void(* pptxNSC_WfeCallBack_t) (void *ctx, ptxNSC_Event_t *event)
 Callback function for Waiting For Events (asynchronously).
 
typedef void(* pptxNSC_Process_Ext_NTF_t) (void *ctx, uint8_t *pld, size_t pldLen)
 Processing function for Extension Notifications.
 
typedef void(* pptxNSC_ExtCallBack_t) (void *ctx, void *events, uint8_t *pld, size_t pldLen)
 Callback function used for processing extension NTF (i.e. WLC extensions).
 
typedef enum ptxNSC_Rsp_ErrorCodes ptxNSC_Rsp_ErrorCodes_t
 NSC response Eror Codes.
 
typedef enum ptxNSC_RfConfig_ParamList ptxNSC_RfConfig_ParamList_t
 NSC RF CONFIG Parameter Type List.
 
typedef struct ptxNSC_RfConfigTlv ptxNSC_RfConfigTlv_t
 Parameters for NSC_RF_CONFIG_CMD.
 
typedef struct ptxNSC_InitPars ptxNSC_InitPars_t
 Parameters for NSC_INIT_CMD.
 
typedef struct ptxNSC_RfDiscPars ptxNSC_RfDiscPars_t
 Parameters for NSC_DISCOVER_CMD.
 
typedef enum ptxNSC_PollType ptxNSC_PollType_t
 Enum for Polling-Loop type.
 
typedef enum ptxNSC_InitTechPoll ptxNSC_InitTechPoll_t
 Enum for initial technology in the discovery loop.
 
typedef enum ptxNSC_RfDiscovery_Mode ptxNSC_RfDiscovery_Mode_t
 NSC Rf Discovery Con_Poll_Disc_Mode parameter settings.
 
typedef enum ptxNSC_RfParameter_Id ptxNSC_RfParameter_Id_t
 NSC Rf Parameter Id.
 
typedef struct ptxNSC_RfPar_RfTech ptxNSC_RfPar_RfTech_t
 NSC Rf Parameter Rf Tech.
 
typedef struct ptxNSC_RfPar_Fwt ptxNSC_RfPar_Fwt_t
 NSC Rf Parameter Fwt.
 
typedef struct ptxNSC_RfPar_TxBitRate ptxNSC_RfPar_TxBitRate_t
 NSC Rf Parameter Tx_Bit_Rate.
 
typedef struct ptxNSC_RfPar_RxBitRate ptxNSC_RfPar_RxBitRate_t
 NSC Rf Parameter Rx_Bit_Rate.
 
typedef struct ptxNSC_RfPar_TxParity ptxNSC_RfPar_TxParity_t
 NSC Rf Parameter Tx_Parity.
 
typedef struct ptxNSC_RfPar_RxParity ptxNSC_RfPar_RxParity_t
 NSC Rf Parameter Rx_Parity.
 
typedef struct ptxNSC_RfPar_TxCRC ptxNSC_RfPar_TxCRC_t
 NSC Rf Parameter Tx_CRC.
 
typedef struct ptxNSC_RfPar_RxCRC ptxNSC_RfPar_RxCRC_t
 NSC Rf Parameter Rx_Parity.
 
typedef struct ptxNsc_RfPar_ResLimit ptxNsc_RfPar_ResLimit_t
 NSC Rf Parameter Res(ponse)_Limit.
 
typedef struct ptxNsc_RfPar_TxResidualBits ptxNsc_RfPar_TxResidualBits_t
 NSC Rf Parameter Tx_Residual_Bits.
 
typedef struct ptxNsc_RfPar_RfField ptxNsc_RfPar_RfField_t
 NSC Rf Parameter Rf_Field.
 
typedef union ptxNSC_RfPar_Params ptxNSC_RfPar_Params_t
 Union Rf Parameters.
 
typedef struct ptxNSC_RfPar ptxNSC_RfPar_t
 Rf Param.
 
typedef struct ptxNSC_RfSetParams_Par ptxNSC_RfSetParams_Par_t
 NSC Rf Set Parameters CMD parameter structure.
 
typedef struct ptxNSC_RfActTech_A_Param ptxNSC_RfActTech_A_Param_t
 NSC Rf Tech A Activation Parameters.
 
typedef struct ptxNSC_RfActTech_B_Param ptxNSC_RfActTech_B_Param_t
 NSC Rf Tech B Activation Parameters.
 
typedef struct ptxNSC_RfActTech_F_Param ptxNSC_RfActTech_F_Param_t
 NSC Rf Tech F Activation Parameters.
 
typedef struct ptxNSC_RfActTech_V_Param ptxNSC_RfActTech_V_Param_t
 NSC Rf Tech V Activation Parameters.
 
typedef union ptxNSC_RfActTech_Param ptxNSC_RfActTech_Param_t
 NSC Rf Tech Activation Parameters.
 
typedef union ptxNSC_RfActProt_ISODEP_Param ptxNSC_RfActProt_ISODEP_Param_t
 NSC Rf Prot ISO-DEP (Type-A) Activation Parameters.
 
typedef union ptxNSC_RfActProt_Param_t ptxNSC_RfActProt_Param_t
 NSC Rf Prot Activation Parameters.
 
typedef struct ptxNSC_RfActiv_Param ptxNSC_RfActiv_Param_t
 NSC Rf Activate structure.
 
typedef enum ptxNSC_RfDeact_Type ptxNSC_RfDeact_Type_t
 NSC Rf Deactivate procedure type.
 
typedef enum ptxNSC_RfDeact_State ptxNSC_RfDeact_State_t
 NSC RF state-machine state after command execution.
 
typedef struct ptxNSC_RfDeactPars ptxNSC_RfDeactPars_t
 NSC RF deactivate parameters.
 
typedef enum ptxNSC_ReadCmd_Type ptxNSC_ReadCmd_Type_t
 Types of NSC Read CMD.
 
typedef struct ptxNSC_ReadCmd_Par ptxNSC_ReadCmd_Par_t
 NSC Read CMD parameter structure.
 
typedef enum ptxNSC_WriteCmd_Type ptxNSC_WriteCmd_Type_t
 
typedef struct ptxNSC_WriteCmd_Par ptxNSC_WriteCmd_Par_t
 
typedef enum ptxNSC_RevisionType ptxNSC_RevisionType_t
 NSC Revision-Info Types.
 
typedef enum ptxNSC_Power_Mode ptxNSC_Power_Mode_t
 NSC chip power modes.
 
typedef enum ptxNSC_System_State ptxNSC_System_State_t
 System States in PTX100x.
 
typedef enum ptxNSC_Mode ptxNSC_Mode_t
 NSC Mode. (Just used for UART Interface).
 
typedef enum ptxNSC_RfTest_ID ptxNSC_RfTest_ID_t
 Test-IDs for RF-Test command.
 
typedef struct ptxNSC_Rsp ptxNSC_Rsp_t
 NSC RSP Handler.
 
typedef struct ptxNSC_RfConfig_Regs ptxNSC_RfConfig_Regs_t
 NSC Rf Config Registers Structures.
 
typedef struct ptxNSC_RfConfig_Param ptxNSC_RfConfig_Param_t
 NSC Rf Config Parameters.
 
typedef struct ptxNSC_RFMiscConfig_Param ptxNSC_RFMiscConfig_Param_t
 NSC Misc. Rf Config Parameters (Shadow-Copy)
 
typedef struct ptxNSC_ConfigPars ptxNSC_ConfigPars_t
 Configuration parameters for the NSC Component.
 
typedef ptxStatus_t(* pExtNSCDiscoverCmd_t) (void *extCtx, uint8_t *cmdBuffer)
 Extension Prototype (RFU): Handler for NSC RF-Discover Command.
 
typedef ptxStatus_t(* pExtNSCDiscoverNtf_t) (void *extCtx, struct ptxNSC *nscCtx, uint8_t *payload, size_t lengthOfPayload, ptxNSC_Event_t *event)
 Extension Prototype (RFU): Handler for NSC RF-Discover Notification.
 
typedef ptxStatus_t(* pExtNSCActivateNtf_t) (void *extCtx, struct ptxNSC *nscCtx, uint8_t *payload, size_t lengthOfPayload, ptxNSC_Event_t *event)
 Extension Prototype (RFU): Handler for NSC RF-Activate Notification.
 
typedef struct ptxNSC_Custom_Extension ptxNSC_Custom_Extension_t
 Extension Prototype (RFU): Extension Component Structure.
 
typedef struct ptxNSC ptxNSC_t
 Main NSC component structure.
 

Enumerations

enum  ptxNSC_Rsp_ErrorCodes {
  ptxNscRsp_Sucessful = (0x00u) , ptxNscRsp_UnknownError = (0x01u) , ptxNscRsp_NotAllowedCmd = (0x02u) , ptxNscRsp_UnknownErrorCmd = (0x03u) ,
  ptxNscRsp_InvalidParameter = (0x04u) , ptxNscRsp_RouteNotFound = (0x05u) , ptxNscRsp_PAThermalProtError = (0x06u) , ptxNscRsp_PAOvercurProtError = (0x07u) ,
  ptxNscRsp_DeviceInStandby = (0x08u) , ptxNscRsp_RfCollisionError = (0x11u) , ptxNscRsp_RfTimeoutError = (0x12u) , ptxNscRsp_RfTransmissionError = (0x13u) ,
  ptxNscRsp_RfProtocolError = (0x14u) , ptxNscRsp_RfPollModNotSupported = (0x15u) , ptxNscRsp_RfListModNotSupported = (0x16u) , ptxNscRsp_SwpUiccNotPresent = (0x21u) ,
  ptxNscRsp_SwpInterfaceError = (0x22u) , ptxNscRsp_SwpIdentityCheckFail = (0x23u) , ptxNscRsp_SwpModeNotSupported = (0x24u)
}
 NSC response Eror Codes. More...
 
enum  ptxNSC_RfConfig_ParamList {
  RfCfgParam_Undefined , RfCfgParam_Wavebank_0 , RfCfgParam_Wavebank_1 , RfCfgParam_Wavebank_2 ,
  RfCfgParam_Wavebank_3 , RfCfgParam_Wavebank_4 , RfCfgParam_Wavebank_5 , RfCfgParam_Wavebank_6 ,
  RfCfgParam_Wavebank_7 , RfCfgParam_Wavebank_8 , RfCfgParam_Wavebank_9 , RfCfgParam_Wavebank_10 ,
  RfCfgParam_Wavebank_11 , RfCfgParam_Wavebank_12 , RfCfgParam_Wavebank_13 , RfCfgParam_Wavebank_14 ,
  RfCfgParam_Wavebank_15 , RfCfgParam_Wavebank_16 , RfCfgParam_Wavebank_17 , RfCfgParam_Wavebank_18 ,
  RfCfgParam_Wavebank_19 , RfCfgParam_RegsPollA106 , RfCfgParam_RegsPollA212 , RfCfgParam_RegsPollA424 ,
  RfCfgParam_RegsPollA848 , RfCfgParam_RegsPollB106 , RfCfgParam_RegsPollB212 , RfCfgParam_RegsPollB424 ,
  RfCfgParam_RegsPollB848 , RfCfgParam_RegsPollF212 , RfCfgParam_RegsPollF424 , RfCfgParam_RegsPollV ,
  RfCfgParam_Listen , RfCfgParam_RegsMisc , RfCfgParam_MaxNum
}
 NSC RF CONFIG Parameter Type List.
 
enum  ptxNSC_PollType {
  PollModeDisabled , ConstantField , NfcForumMode , EmvPollMode ,
  EmvPollMode_TransacA , EmvPollMode_TransacB , IsoPollMode
}
 Enum for Polling-Loop type. More...
 
enum  ptxNSC_InitTechPoll {
  Init_Poll_ACM , Init_Poll_A , Init_Poll_B , Init_Poll_F ,
  Init_Poll_V
}
 Enum for initial technology in the discovery loop. More...
 
enum  ptxNSC_RfDiscovery_Mode { DiscoveryMode_Regular = 0x00u , DiscoveryMode_Lpcd = 0x01u , DiscoveryMode_Hybrid_Start = 0x02u , DiscoveryMode_Hybrid_End = 0xFFu }
 NSC Rf Discovery Con_Poll_Disc_Mode parameter settings. More...
 
enum  ptxNSC_RfParameter_Id {
  RfParameter_EoC , RfParameter_Rf_Tech , RfParameter_Fwt , RfParameter_Tx_Bit_Rate ,
  RfParameter_Rx_Bit_Rate , RfParameter_Tx_PAR , RfParameter_Rx_PAR , RfParameter_Tx_CRC ,
  RfParameter_Rx_CRC , RfParameter_Res_Limit , RfParameter_Tx_Residual_Bits , RfParameter_Rf_Field
}
 NSC Rf Parameter Id. More...
 
enum  ptxNSC_RfDeact_Type { DeactType_Generic = 0x01u , DeactType_Protocol_Specific = 0x02u }
 NSC Rf Deactivate procedure type. More...
 
enum  ptxNSC_RfDeact_State { RfIdle = 0x01u , RfDiscovery = 0x02u , RfPollSleep = 0x03u , RfDiscoverNoFieldOff = 0x05u }
 NSC RF state-machine state after command execution. More...
 
enum  ptxNSC_ReadCmd_Type { ReadRandomAdd = 1u }
 Types of NSC Read CMD. More...
 
enum  ptxNSC_WriteCmd_Type { WriteRandomAdd = 1u }
 
enum  ptxNSC_RevisionType {
  ptxNSC_Info_C_Stack , ptxNSC_Info_Local_Changes , ptxNSC_Info_DFY_Code , ptxNSC_Info_DFY_Toolchain ,
  ptxNSC_Info_ChipID , ptxNSC_Info_ProductID
}
 NSC Revision-Info Types.
 
enum  ptxNSC_Power_Mode { PowerMode_Active = 0x00u , PowerMode_StandBy = 0x01u }
 NSC chip power modes. More...
 
enum  ptxNSC_System_State { SystemState_OK , SystemState_ERR_Overcurrent , SystemState_ERR_Temperature , SystemState_ERR_CurrentLimit }
 System States in PTX100x.
 
enum  ptxNSC_Mode { NscMode_HW , NscMode_SYS }
 NSC Mode. (Just used for UART Interface). More...
 
enum  ptxNSC_RfTest_ID {
  RfTest_TRANSAC_A = 1 , RfTest_TRANSAC_B = 2 , RfTest_Carrier = 3 , RfTest_PRBS_9 = 4 ,
  RfTest_PRBS_15 = 5
}
 Test-IDs for RF-Test command. More...
 

Functions

ptxStatus_t ptxNSC_Init (ptxNSC_t **nscCtx, ptxNSC_ConfigPars_t *configPars)
 Initialize the NSC Component.
 
ptxStatus_t ptxNSC_Deinit (ptxNSC_t *nscCtx)
 De-Initialize the NSC Component.
 
ptxStatus_t ptxNSC_SoftReset (ptxNSC_t *nscCtx)
 NSC Soft Reset on the PTX1K.
 
ptxStatus_t ptxNSC_HardReset (ptxNSC_t *nscCtx)
 NSC Hard Reset on the PTX1K via the SEN-pin.
 
ptxStatus_t ptxNSC_Reset (ptxNSC_t *nscCtx)
 Performs either an caller-agnostic NSC Hard (if SEN-pin is connected) or Soft Reset.
 
ptxStatus_t ptxNSC_FwDownloader (ptxNSC_t *nscCtx)
 NSC FW Downloading on the PTX1K.
 
ptxStatus_t ptxNSC_DFY_Activation (ptxNSC_t *nscCtx)
 NSC DFY Activation.
 
ptxStatus_t ptxNSC_InitCmd (ptxNSC_t *nscCtx, ptxNSC_InitPars_t *nscInitPars)
 NSC_INIT_CMD.
 
ptxStatus_t ptxNSC_StandbyCmd (ptxNSC_t *nscCtx)
 NSC_STANDY_CMD.
 
ptxStatus_t ptxNSC_WakeupCmd (ptxNSC_t *nscCtx)
 NSC_WAKEUP_CMD.
 
ptxStatus_t ptxNSC_RfConfig (ptxNSC_t *nscCtx, ptxNSC_RfConfigTlv_t *nscRfCfgParams, uint8_t rfConfigTlvCount)
 NSC_RF_CONFIG_CMD.
 
ptxStatus_t ptxNSC_RfDiscovery (ptxNSC_t *nscCtx, ptxNSC_RfDiscPars_t *nscRfDiscPars)
 NSC_RF_DISCOVER_CMD.
 
ptxStatus_t ptxNSC_RfSetParams (ptxNSC_t *nscCtx, ptxNSC_RfPar_t *nscRfParams, size_t nscRfParamsLen)
 NSC_RF_DISCOVER_CMD.
 
ptxStatus_t ptxNSC_RfActivate (ptxNSC_t *nscCtx, ptxNSC_RfActiv_Param_t *nscRfActPars, uint8_t *activationData, size_t *activationDataLen)
 NSC_RF_ACTIVATE_CMD.
 
ptxStatus_t ptxNSC_RfDeactivate (ptxNSC_t *nscCtx, ptxNSC_RfDeactPars_t *nscRfDeactPars)
 NSC_RF_DEACTIVATE_CMD.
 
ptxStatus_t ptxNSC_RfDataMsgTx (ptxNSC_t *nscCtx, uint8_t *msgData, size_t msgDataLen, uint8_t isChained)
 Transmission of a NSC_RF_MSG to a remote RF device such as a reader.
 
ptxStatus_t ptxNSC_Get_Mtu (ptxNSC_t *nscCtx, uint32_t *maxTransferUnit)
 Get Maximum Transfer Unit.
 
ptxStatus_t ptxNSC_GetRevisionInfo (ptxNSC_t *nscCtx, ptxNSC_RevisionType_t revisionType, uint32_t *revisionInfo)
 Get various revisions of system (C-Stack, DFY-Code/-Toochain, Chip-ID, Local changes etc.
 
ptxStatus_t ptxNSC_CheckSystemState (ptxNSC_t *nscCtx, ptxStatus_t currentStatus)
 Checks System-State during initialization phase of IC.
 
ptxStatus_t ptxNSC_ReadTempSensor (ptxNSC_t *nscCtx, uint8_t *sensVal)
 Read out IC temperature sensor.
 
ptxStatus_t ptxNSC_GetInitConfigParams (ptxNSC_t *nscCtx, uint32_t baudRate, uint8_t *uartConfig)
 Get uart configuration parameters for NSC init command.
 
ptxStatus_t ptxNSC_GetMiscRFConfig (ptxNSC_t *nscCtx, uint8_t *configBuffer, uint8_t *configBufferLen)
 NSC Get last loaded Misc. RF-Configuration.
 
ptxStatus_t ptxNSC_Read (ptxNSC_t *nscCtx, uint16_t address, uint8_t *value)
 Reads a (register) value from the chip.
 
ptxStatus_t ptxNSC_Write (ptxNSC_t *nscCtx, uint16_t address, uint8_t value)
 Writes a single (register/memory) value to the chip.
 
ptxStatus_t ptxNSC_WriteN (ptxNSC_t *nscCtx, uint16_t *addresses, uint8_t *values, size_t nrWrites)
 Writes multiple (register/memory) values to the chip.
 
ptxStatus_t ptxNSC_RfTestRun (ptxNSC_t *nscCtx, ptxNSC_RfTest_ID_t rfTestId, uint8_t *rfTestParams, size_t rfTestParamsLen)
 Function for NSC_RF_RUN_CMD.
 
ptxStatus_t ptxNSC_RfTestStop (ptxNSC_t *nscCtx)
 Function for NSC_RF_STOP_CMD.
 
ptxStatus_t ptxNSC_GetDeactivateTimeout (ptxNSC_t *nscCtx, uint32_t *currentTimeout)
 Function to retrieve the current timeout value in [ms] to wait for a NSC.RF_DEACTIVATE_RSP.
 
ptxStatus_t ptxNSC_SetDeactivateTimeout (ptxNSC_t *nscCtx, uint32_t *currentTimeout)
 Function to set the current timeout value in [ms] to wait for a NSC.RF_DEACTIVATE_RSP.
 
ptxStatus_t ptxNSC_SetNrResidualTxBits (ptxNSC_t *nscCtx, uint8_t transparentModeEnabled, uint8_t nrTxBits)
 Enables or disables the NFC Type-A Transparent Mode and allows to set the number of residual Tx-bits if enabled.
 
ptxStatus_t ptxNSC_RegisterExtension (ptxNSC_t *nscCtx, ptxNSC_Custom_Extension_t *extension)
 Register an NSC-Extension (Prototype/RFU).
 
ptxStatus_t ptxNSC_DeRegisterExtension (ptxNSC_t *nscCtx, uint8_t extensionID)
 De-Register an NSC-Extension (Prototype/RFU).
 
ptxStatus_t ptxNSC_ProcessRspErrorCode (ptxNSC_Rsp_ErrorCodes_t NscRspErrorCode)
 
ptxStatus_t ptxNSC_Send (ptxNSC_t *nscCtx, ptxNscHal_BufferId_t bufferId, uint8_t *txBuf[], size_t txLen[], size_t numBuffers)
 
ptxStatus_t ptxNSC_ReceiveRsp (ptxNSC_t *nscCtx, uint8_t **rsp, size_t *rspLen, uint32_t timeOut)
 
ptxStatus_t ptxNSC_Process (ptxNSC_t *nscCtx, uint8_t *buff, size_t buffLen)
 
ptxStatus_t ptxNSC_SetMode (ptxNSC_t *nscCtx, ptxNSC_Mode_t newMode)
 
ptxStatus_t ptxNSC_GetMode (ptxNSC_t *nscCtx, ptxNSC_Mode_t *currentMode)
 
ptxStatus_t ptxNSC_Stop_WaitForRx (ptxNSC_t *nscCtx)
 
ptxStatus_t ptxNSC_Start_WaitForRx (ptxNSC_t *nscCtx)
 

PTX1K Communication parameters.

#define PTX_NSC_TYPE_FRAME_MASK   (0xC0)
 
#define PTX_NSC_TYPE_FRAME_CMD   (0x00)
 
#define PTX_NSC_TYPE_FRAME_RSP   (0x01)
 
#define PTX_NSC_TYPE_FRAME_NTF   (0x02)
 
#define PTX_NSC_TYPE_FRAME_TRANSP   (0x03)
 
#define PTX_NSC_MAX_MTU_SIZE   (253u)
 
#define PTX_NSC_TRANSFER_TO   (500u)
 
#define PTX_NSC_MAX_RSP_LEN   (256u)
 

NSC Standby command opcode and length definitions.

#define PTX_NSC_STANDBY_CMD_OPCODE   (0x05u)
 
#define PTX_NSC_STANDBY_RSP_OPCODE   (0x45u)
 
#define PTX_NSC_STANDBY_RESP_LEN   (0x02u)
 
#define PTX_NSC_STANDBY_PARAMETERS_LEN   (0x00u)
 

NSC Wakeup command opcode and length definitions.

#define PTX_NSC_WAKEUP_CMD_OPCODE   (0x06u)
 
#define PTX_NSC_WAKEUP_RSP_OPCODE   (0x46u)
 
#define PTX_NSC_WAKEUP_RESP_LEN   (0x02u)
 
#define PTX_NSC_WAKEUP_PARAMETERS_LEN   (0x00u)
 

NSC DATA.

#define PTX_NSC_DATA_MSG_MAX_PAYLOAD_LEN   PTX_NSC_MAX_MTU_SIZE
 
#define PTX_NSC_DATA_MSG_OPCODE_INDEX   (0x00u)
 
#define PTX_NSC_DATA_MSG_OPCODE   (0xC2u)
 
#define PTX_NSC_DATA_MSG_OPCODE_CHAINING   (0xE2u)
 
#define PTX_NSC_DATA_MSG_OPCODE_LENGTH   (0x01u)
 
#define PTX_NSC_DATA_MSG_CON_MSG_LEN_INDEX   (0x01u)
 
#define PTX_NSC_DATA_MSG_CON_MSG_LENGTH   (0x01u)
 
#define PTX_NSC_DATA_MSG_CON_MSG_LENGTH_VALUE_ACK   (0x00u)
 
#define PTX_NSC_DATA_MSG_CON_MSG_INDEX   (0x02u)
 

NSC DATA CONTROL.

#define PTX_NSC_RFD_CTRL_OPCODE   (0xD2u)
 
#define PTX_NSC_RFD_CTRL_ACK   (0x00u)
 
#define PTX_NSC_RFD_CTRL_NACK   (0x01u)
 
#define PTX_NSC_RFD_CTRL_EOF   (0x02u)
 
#define PTX_NSC_RFD_CTRL_ATTENTION   (0x03u)
 
#define PTX_NSC_RFD_CTRL_NR   (0x04u)
 

Ensure that the DFY is reset after FW download.

#define PTX_NSC_FWDOWN_FORCED   (1u)
 
#define PTX_NSC_FWDOWN_NOT_FORCED   (0u)
 

NSC command opcode and length definitions.

#define PTX_NSC_INIT_CMD_OPCODE   (0x02u)
 
#define PTX_NSC_INIT_RSP_OPCODE   (0x42u)
 
#define PTX_NSC_INIT_RESP_LEN   (0x02u)
 

NSC Init command parameters values

#define PTX_NSC_INIT_CON_HOST_LENGTH   (4U)
 
#define PTX_NSC_INIT_CON_HOST_CE_LENGTH   (4U)
 
#define PTX_NSC_INIT_CON_UART_CONFIG   (2U)
 
#define PTX_NSC_INIT_CON_PRNG_SEED   (4U)
 
#define PTX_NSC_INIT_CON_N_ALM_MAX   (4U)
 
#define PTX_NSC_INIT_CON_N_ALM_MIN   (4U)
 

NSC RF Config command parameters values

#define PTX_NSC_RFCONF_CMD_OPCODE   (0x11u)
 
#define PTX_NSC_RFCONF_RSP_OPCODE   (0x51u)
 
#define PTX_NSC_RFCONF_RESP_LEN   (0x02u)
 
#define PTX_NSC_RFCONF_TX_POWER_MODE   (0x02u)
 
#define PTX_NSC_RFCONF_WAVEBANK_0   (0x00u)
 
#define PTX_NSC_RFCONF_WAVEBANK_1   (0x01u)
 
#define PTX_NSC_RFCONF_WAVEBANK_2   (0x02u)
 
#define PTX_NSC_RFCONF_WAVEBANK_3   (0x03u)
 
#define PTX_NSC_RFCONF_WAVEBANK_4   (0x04u)
 
#define PTX_NSC_RFCONF_WAVEBANK_5   (0x05u)
 
#define PTX_NSC_RFCONF_WAVEBANK_6   (0x06u)
 
#define PTX_NSC_RFCONF_WAVEBANK_7   (0x07u)
 
#define PTX_NSC_RFCONF_WAVEBANK_8   (0x08u)
 
#define PTX_NSC_RFCONF_WAVEBANK_9   (0x09u)
 
#define PTX_NSC_RFCONF_WAVEBANK_10   (0x0Au)
 
#define PTX_NSC_RFCONF_WAVEBANK_11   (0x0Bu)
 
#define PTX_NSC_RFCONF_WAVEBANK_12   (0x0Cu)
 
#define PTX_NSC_RFCONF_WAVEBANK_13   (0x0Du)
 
#define PTX_NSC_RFCONF_WAVEBANK_14   (0x0Eu)
 
#define PTX_NSC_RFCONF_WAVEBANK_15   (0x0Fu)
 
#define PTX_NSC_RFCONF_WAVEBANK_16   (0x10u)
 
#define PTX_NSC_RFCONF_WAVEBANK_17   (0x11u)
 
#define PTX_NSC_RFCONF_WAVEBANK_18   (0x12u)
 
#define PTX_NSC_RFCONF_WAVEBANK_19   (0x13u)
 
#define PTX_NSC_RFCONF_MISC   (0x04u)
 
#define PTX_NSC_RFCONF_POLL_A_106   (0x11u)
 
#define PTX_NSC_RFCONF_POLL_A_212   (0x12u)
 
#define PTX_NSC_RFCONF_POLL_A_424   (0x13u)
 
#define PTX_NSC_RFCONF_POLL_A_848   (0x14u)
 
#define PTX_NSC_RFCONF_POLL_B_106   (0x15u)
 
#define PTX_NSC_RFCONF_POLL_B_212   (0x16u)
 
#define PTX_NSC_RFCONF_POLL_B_424   (0x17u)
 
#define PTX_NSC_RFCONF_POLL_B_848   (0x18u)
 
#define PTX_NSC_RFCONF_POLL_F_212   (0x19u)
 
#define PTX_NSC_RFCONF_POLL_F_424   (0x1Au)
 
#define PTX_NSC_RFCONF_POLL_V   (0x1Eu)
 
#define PTX_NSC_RFCONF_LISTEN   (0x20u)
 
#define PTX_NSC_RFCONF_LAST_PARAM   (0x00u)
 

NSC RF Discovery command parameters values

#define PTX_NSC_DISC_CMD_OPCODE   (0x12u)
 
#define PTX_NSC_DISC_RESP_LEN   (0x02u)
 
#define PTX_NSC_DISC_OPCODE   (0x52u)
 
#define PTX_NSC_DISC_CON_POLLB_CMD_LEN   (3u)
 
#define PTX_NSC_DISC_CON_POLLF_CMD_LEN   (6u)
 
#define PTX_NSC_DISC_CON_POLLV_CMD_LEN   (11u)
 
#define PTX_NSC_DISC_CON_POLLB_ATTRIB_INF_LEN   (15u)
 
#define PTX_NSC_DISC_CON_POLL_NFCDEP_ATR_REQ_G_LEN   (20u)
 
#define PTX_NSC_DISC_CON_LIS_SENSRESP_LEN   (2u)
 
#define PTX_NSC_DISC_CON_LISA_NFCID1_LEN   (15u)
 
#define PTX_NSC_DISC_CON_LISB_SENSBRESP_LEN   (13u)
 
#define PTX_NSC_DISC_CON_LISF_SENSFRESP_LEN   (19u)
 
#define PTX_NSC_DISC_CON_LISV_INVRESP_LEN   (10u)
 
#define PTX_NSC_DISC_CON_LIS_ISODEP_ATS_LEN   (21u)
 
#define PTX_NSC_DISC_CON_LIS_ISODEP_ATTRIB_RES_LEN   (16u)
 
#define PTX_NSC_DISC_CON_LIS_NFCDEP_ATR_RES_G_LEN   (20u)
 
#define PTX_NSC_DISC_CON_IDLE_TIME_LEN   (3u)
 
#define PTX_NSC_TYPES_RFU_1_LEN   (23U)
 
#define PTX_NSC_SET_PARAMS_DISC_CMD_OPCODE   (0x16u)
 
#define PTX_NSC_SET_PARAMS_DISC_RSP_OPCODE   (0x56u)
 
#define PTX_NSC_SET_PARAMS_DISC_RSP_LEN   (0x02u)
 
#define PTX_NSC_SET_PARAM_CMD_EOC   (0x00u)
 

NSC RF Deactivate command parameters values

#define PTX_NSC_DEACT_CMD_OPCODE   (0x14u)
 
#define PTX_NSC_DEACT_RESP_LEN   (0x03u)
 
#define PTX_NSC_DEACT_RSP_OPCODE   (0x54u)
 

NSC RF Activate command parameters values

#define PTX_NSC_RF_ACTIVATE_CMD_OPCODE_INDEX   (0x00u)
 
#define PTX_NSC_RF_ACTIVATE_CMD_OPCODE   (0x13u)
 
#define PTX_NSC_RF_ACTIVATE_CMD_OPCODE_LENGTH   (0x01u)
 
#define PTX_NSC_RF_ACTIVATE_CMD_PARAMS_MAXLENGTH   (0x18u)
 
#define PTX_NSC_RF_ACTIVATE_RSP_LENGTH   (0x02u)
 
#define PTX_NSC_RF_ACTIVATE_RSP_OPCODE   (0x53u)
 

NSC RF Set Routing Table command parameters values

#define PTX_NSC_RF_SET_ROUTING_TABLE_CMD_OPCODE   (0x15u)
 
#define PTX_NSC_RF_SET_ROUTING_TABLE_CMD_LENGTH   (0x0Cu)
 
#define PTX_NSC_RF_SET_ROUTING_TABLE_RSP_LENGTH   (0x02u)
 
#define PTX_NSC_RF_SET_ROUTING_TABLE_RSP_OPCODE   (0x55u)
 

Definitions for NSC RST RESPONSE.

#define PTX_NSC_RESET_RSP_LENGTH   (0x02u)
 
#define PTX_NSC_RESET_RSP_OPCODE   (0x41u)
 

Definitions for OpCodes NTFs.

#define PTX_NSC_OPCODE_RFFIELDNTF   (0x91u)
 
#define PTX_NSC_OPCODE_RFDISCNTF   (0x92u)
 
#define PTX_NSC_OPCODE_RFACTNTF   (0x93u)
 
#define PTX_NSC_OPCODE_RFDEACTNTF   (0x94u)
 
#define PTX_NSC_OPCODE_RFERRORNTF   (0x95u)
 
#define PTX_NSC_OPCODE_LPCDNTF   (0x97u)
 
#define PTX_NSC_RFERRORNTF_LENGTH   (0x02u)
 

Definitions for NSC types of frames.

#define PTX_NSC_FRAMETYPE   (0xC0u)
 
#define PTX_NSC_FRAMETYPE_CMD   (0x00u)
 
#define PTX_NSC_FRAMETYPE_RSP   (0x40u)
 
#define PTX_NSC_FRAMETYPE_NTF   (0x80u)
 
#define PTX_NSC_FRAMETYPE_TRANSPARENT   (0xC0u)
 
#define PTX_NSC_FRAMETYPE_TRANSP_HCP   (0xC1u)
 

Definitions for NSC Activate command parameters.

#define PTX_NSC_TYPES_LISBSENSRES_LEN   (13U)
 
#define PTX_NSC_MAXIMUM_NFCID1_LEN   (10u)
 
#define PTX_NSC_NFCID0_LEN   (4u)
 
#define PTX_NSC_NFCID2_LEN   (8u)
 
#define PTX_NSC_TYPEV_UID_LEN   (8u)
 

Common Type of Rf Tech for the Stack

#define PTX_NSC_TYPES_TECH_A   (0x00u)
 
#define PTX_NSC_TYPES_TECH_B   (0x01u)
 
#define PTX_NSC_TYPES_TECH_F   (0x02u)
 
#define PTX_NSC_TYPES_TECH_V   (0x06u)
 

RF_TECH parameter of NSC_RF_ACTIVATE_NTF.

#define PTX_NSC_TYPES_TECH_POLL_A   (0x00u)
 
#define PTX_NSC_TYPES_TECH_POLL_B   (0x01u)
 
#define PTX_NSC_TYPES_TECH_POLL_F   (0x02u)
 
#define PTX_NSC_TYPES_TECH_POLL_ACT   (0x03u)
 
#define PTX_NSC_TYPES_TECH_POLL_V   (0x06u)
 
#define PTX_NSC_TYPES_TECH_LISTEN_A   (0x80u)
 

ERROR_CODE parameter of NSC_RF_ERROR_NTF.

#define PTX_NSC_RF_ERROR_NTF_CODE_OK   (0x00u)
 
#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_THERMAL   (0x06u)
 
#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_OVERCURRENT   (0x07u)
 
#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_CURRENT_LIMIT   (0x09u)
 
#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_EXT_CURRENT_SENSOR   (0x0Au)
 
#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_EMV_COLL   (0x11u)
 
#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_TIMEOUT   (0x12u)
 
#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_TRANSMISSION   (0x13u)
 
#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_PROTOCOL   (0x14u)
 

Maximum Number of Rf Parameters to set.

#define PTX_NSC_RF_SET_PARAMS_MAX   (11u)
 

Definitions for NSC Read Command.

#define PTX_NSC_TYPES_RD_OP_MAX   (3u)
 
#define PTX_NSC_READ_CMD_HD_LENGTH   (0x03u)
 
#define PTX_NSC_READ_CMD_OPCODE   (0x03u)
 
#define PTX_NSC_READ_RSP_HD_LENGTH   (0x03u)
 
#define PTX_NSC_READ_RSP_OPCODE   (0x43u)
 

Definitions for NSC Write Command.

#define PTX_NSC_TYPES_WR_OP_MAX   (70u)
 
#define PTX_NSC_WRITE_CMD_HD_LENGTH   (0x03u)
 
#define PTX_NSC_WRITE_CMD_OPCODE   (0x04u)
 
#define PTX_NSC_WRITE_RSP_LENGTH   (0x02u)
 
#define PTX_NSC_WRITE_RSP_OPCODE   (0x44u)
 

Generic / Misc. Defines

#define PTX_NSC_MISC_RF_CONFIG_BUFFER_SIZE   (uint8_t)37
 
#define PTX_NSC_MISC_RF_CONFIG_FLAGS_SET   (uint8_t)0x01
 
#define PTX_NSC_MISC_RF_CONFIG_FLAGS_LOADED   (uint8_t)0x02
 

Definitions for NSC RF RUN TEST CMD

#define PTX_NSC_RF_RUN_TEST_CMD_OPCODE   (0x17u)
 
#define PTX_NSC_RF_RUN_TEST_CMD_RSP_OPCODE   (0x57u)
 
#define PTX_NSC_RF_RUN_TEST_CMD_RSP_LENGTH   (0x02u)
 

Definitions for NSC RF STOP TEST CMD

#define PTX_NSC_RF_STOP_TEST_CMD_OPCODE   (0x18u)
 
#define PTX_NSC_RF_STOP_TEST_CMD_RSP_OPCODE   (0x58u)
 
#define PTX_NSC_RF_STOP_TEST_CMD_RSP_LENGTH   (0x02u)
 

Definitions for NSC INIT CMD

#define PTX_NSC_INIT_EXT_PROTECTION_EN_MASK   (0x03u)
 

NSC Extension Definitions

#define PTX_NSC_MAX_EXTENSIONS   (uint8_t)(1u)
 

Detailed Description

Macro Definition Documentation

◆ PTX_NSC_DATA_MSG_CON_MSG_INDEX

#define PTX_NSC_DATA_MSG_CON_MSG_INDEX   (0x02u)

NSC Message CON message index

◆ PTX_NSC_DATA_MSG_CON_MSG_LEN_INDEX

#define PTX_NSC_DATA_MSG_CON_MSG_LEN_INDEX   (0x01u)

NSC Message CON message length index

◆ PTX_NSC_DATA_MSG_CON_MSG_LENGTH

#define PTX_NSC_DATA_MSG_CON_MSG_LENGTH   (0x01u)

NSC Message CON message length

◆ PTX_NSC_DATA_MSG_CON_MSG_LENGTH_VALUE_ACK

#define PTX_NSC_DATA_MSG_CON_MSG_LENGTH_VALUE_ACK   (0x00u)

NSC Message CON acknowledge message length

◆ PTX_NSC_DATA_MSG_MAX_PAYLOAD_LEN

#define PTX_NSC_DATA_MSG_MAX_PAYLOAD_LEN   PTX_NSC_MAX_MTU_SIZE

NSC Message maximum payload length

◆ PTX_NSC_DATA_MSG_OPCODE

#define PTX_NSC_DATA_MSG_OPCODE   (0xC2u)

NSC Message opcode

◆ PTX_NSC_DATA_MSG_OPCODE_CHAINING

#define PTX_NSC_DATA_MSG_OPCODE_CHAINING   (0xE2u)

NSC Message opcode chaining

◆ PTX_NSC_DATA_MSG_OPCODE_INDEX

#define PTX_NSC_DATA_MSG_OPCODE_INDEX   (0x00u)

NSC Message opcode index

◆ PTX_NSC_DATA_MSG_OPCODE_LENGTH

#define PTX_NSC_DATA_MSG_OPCODE_LENGTH   (0x01u)

NSC Message opcode length

◆ PTX_NSC_DEACT_CMD_OPCODE

#define PTX_NSC_DEACT_CMD_OPCODE   (0x14u)

NSC RF Deactivate command opcode

◆ PTX_NSC_DEACT_RESP_LEN

#define PTX_NSC_DEACT_RESP_LEN   (0x03u)

NSC RF Deactivate response length

◆ PTX_NSC_DEACT_RSP_OPCODE

#define PTX_NSC_DEACT_RSP_OPCODE   (0x54u)

NSC RF Deactivate response opcode

◆ PTX_NSC_DISC_CMD_OPCODE

#define PTX_NSC_DISC_CMD_OPCODE   (0x12u)

NSC Discovery command opcode

◆ PTX_NSC_DISC_CON_IDLE_TIME_LEN

#define PTX_NSC_DISC_CON_IDLE_TIME_LEN   (3u)

NSC Discovery IDLE time length

◆ PTX_NSC_DISC_CON_LIS_ISODEP_ATS_LEN

#define PTX_NSC_DISC_CON_LIS_ISODEP_ATS_LEN   (21u)

NSC Discovery Listen ISODEP ATS length

◆ PTX_NSC_DISC_CON_LIS_ISODEP_ATTRIB_RES_LEN

#define PTX_NSC_DISC_CON_LIS_ISODEP_ATTRIB_RES_LEN   (16u)

NSC Discovery Listen ISODEP ATTRIB RES length

◆ PTX_NSC_DISC_CON_LIS_NFCDEP_ATR_RES_G_LEN

#define PTX_NSC_DISC_CON_LIS_NFCDEP_ATR_RES_G_LEN   (20u)

NSC Discovery Listen NFCDEP ATR RES length

◆ PTX_NSC_DISC_CON_LIS_SENSRESP_LEN

#define PTX_NSC_DISC_CON_LIS_SENSRESP_LEN   (2u)

NSC Discovery Listen SENSRESP length

◆ PTX_NSC_DISC_CON_LISA_NFCID1_LEN

#define PTX_NSC_DISC_CON_LISA_NFCID1_LEN   (15u)

NSC Discovery Listen A NFCID1 length

◆ PTX_NSC_DISC_CON_LISB_SENSBRESP_LEN

#define PTX_NSC_DISC_CON_LISB_SENSBRESP_LEN   (13u)

NSC Discovery Listen B SENSBRESP length

◆ PTX_NSC_DISC_CON_LISF_SENSFRESP_LEN

#define PTX_NSC_DISC_CON_LISF_SENSFRESP_LEN   (19u)

NSC Discovery Listen F SENSBRESP length

◆ PTX_NSC_DISC_CON_LISV_INVRESP_LEN

#define PTX_NSC_DISC_CON_LISV_INVRESP_LEN   (10u)

NSC Discovery Listen V INVRESP length

◆ PTX_NSC_DISC_CON_POLL_NFCDEP_ATR_REQ_G_LEN

#define PTX_NSC_DISC_CON_POLL_NFCDEP_ATR_REQ_G_LEN   (20u)

NSC Discovery Poll NFCDEP ATR REQ length

◆ PTX_NSC_DISC_CON_POLLB_ATTRIB_INF_LEN

#define PTX_NSC_DISC_CON_POLLB_ATTRIB_INF_LEN   (15u)

NSC Discovery Poll B ATTRIB INF command length

◆ PTX_NSC_DISC_CON_POLLB_CMD_LEN

#define PTX_NSC_DISC_CON_POLLB_CMD_LEN   (3u)

NSC Discovery Poll B command length

◆ PTX_NSC_DISC_CON_POLLF_CMD_LEN

#define PTX_NSC_DISC_CON_POLLF_CMD_LEN   (6u)

NSC Discovery Poll F command length

◆ PTX_NSC_DISC_CON_POLLV_CMD_LEN

#define PTX_NSC_DISC_CON_POLLV_CMD_LEN   (11u)

NSC Discovery Poll V command length

◆ PTX_NSC_DISC_OPCODE

#define PTX_NSC_DISC_OPCODE   (0x52u)

NSC Discovery opcode

◆ PTX_NSC_DISC_RESP_LEN

#define PTX_NSC_DISC_RESP_LEN   (0x02u)

NSC Discovery response length

◆ PTX_NSC_FRAMETYPE

#define PTX_NSC_FRAMETYPE   (0xC0u)

NSC Frametype

◆ PTX_NSC_FRAMETYPE_CMD

#define PTX_NSC_FRAMETYPE_CMD   (0x00u)

NSC Frametype command

◆ PTX_NSC_FRAMETYPE_NTF

#define PTX_NSC_FRAMETYPE_NTF   (0x80u)

NSC Frametype NTF

◆ PTX_NSC_FRAMETYPE_RSP

#define PTX_NSC_FRAMETYPE_RSP   (0x40u)

NSC Frametype response

◆ PTX_NSC_FRAMETYPE_TRANSP_HCP

#define PTX_NSC_FRAMETYPE_TRANSP_HCP   (0xC1u)

NSC Frametype transparent HCP

◆ PTX_NSC_FRAMETYPE_TRANSPARENT

#define PTX_NSC_FRAMETYPE_TRANSPARENT   (0xC0u)

NSC Frametype transparent

◆ PTX_NSC_FWDOWN_FORCED

#define PTX_NSC_FWDOWN_FORCED   (1u)

NSC FW download forced

◆ PTX_NSC_FWDOWN_NOT_FORCED

#define PTX_NSC_FWDOWN_NOT_FORCED   (0u)

NSC FW download not forced

◆ PTX_NSC_INIT_CMD_OPCODE

#define PTX_NSC_INIT_CMD_OPCODE   (0x02u)

NSC Init command opcode

◆ PTX_NSC_INIT_CON_HOST_CE_LENGTH

#define PTX_NSC_INIT_CON_HOST_CE_LENGTH   (4U)

NSC Init CON host CE length

◆ PTX_NSC_INIT_CON_HOST_LENGTH

#define PTX_NSC_INIT_CON_HOST_LENGTH   (4U)

NSC Init CON host length

◆ PTX_NSC_INIT_CON_N_ALM_MAX

#define PTX_NSC_INIT_CON_N_ALM_MAX   (4U)

NSC Init maximum N_ALM value

◆ PTX_NSC_INIT_CON_N_ALM_MIN

#define PTX_NSC_INIT_CON_N_ALM_MIN   (4U)

NSC Init minimum N_ALM value

◆ PTX_NSC_INIT_CON_PRNG_SEED

#define PTX_NSC_INIT_CON_PRNG_SEED   (4U)

NSC Init CON PRNG seed

◆ PTX_NSC_INIT_CON_UART_CONFIG

#define PTX_NSC_INIT_CON_UART_CONFIG   (2U)

NSC Init CON UART config

◆ PTX_NSC_INIT_EXT_PROTECTION_EN_MASK

#define PTX_NSC_INIT_EXT_PROTECTION_EN_MASK   (0x03u)

NSC Ext. Current Protection Enable-Flag mask

◆ PTX_NSC_INIT_RESP_LEN

#define PTX_NSC_INIT_RESP_LEN   (0x02u)

NSC Init response length

◆ PTX_NSC_INIT_RSP_OPCODE

#define PTX_NSC_INIT_RSP_OPCODE   (0x42u)

NSC Init response opcode

◆ PTX_NSC_MAX_EXTENSIONS

#define PTX_NSC_MAX_EXTENSIONS   (uint8_t)(1u)

NSC Max. amount of Extensions supported in parallel

◆ PTX_NSC_MAX_MTU_SIZE

#define PTX_NSC_MAX_MTU_SIZE   (253u)

NSC Maximum MTU size

◆ PTX_NSC_MAX_RSP_LEN

#define PTX_NSC_MAX_RSP_LEN   (256u)

NSC Maximum response length

◆ PTX_NSC_MAXIMUM_NFCID1_LEN

#define PTX_NSC_MAXIMUM_NFCID1_LEN   (10u)

NSC maximum NFCID1 length

◆ PTX_NSC_MISC_RF_CONFIG_BUFFER_SIZE

#define PTX_NSC_MISC_RF_CONFIG_BUFFER_SIZE   (uint8_t)37

NSC Miscellaneous RF Config Buffer size

◆ PTX_NSC_MISC_RF_CONFIG_FLAGS_LOADED

#define PTX_NSC_MISC_RF_CONFIG_FLAGS_LOADED   (uint8_t)0x02

NSC Miscellaneous RF Config Flags loaded

◆ PTX_NSC_MISC_RF_CONFIG_FLAGS_SET

#define PTX_NSC_MISC_RF_CONFIG_FLAGS_SET   (uint8_t)0x01

NSC Miscellaneous RF Config Flags set

◆ PTX_NSC_NFCID0_LEN

#define PTX_NSC_NFCID0_LEN   (4u)

NSC NFCID0 length

◆ PTX_NSC_NFCID2_LEN

#define PTX_NSC_NFCID2_LEN   (8u)

NSC NFCID2 length

◆ PTX_NSC_OPCODE_LPCDNTF

#define PTX_NSC_OPCODE_LPCDNTF   (0x97u)

NSC LPCDNTF opcode

◆ PTX_NSC_OPCODE_RFACTNTF

#define PTX_NSC_OPCODE_RFACTNTF   (0x93u)

NSC RFACTNTF opcode

◆ PTX_NSC_OPCODE_RFDEACTNTF

#define PTX_NSC_OPCODE_RFDEACTNTF   (0x94u)

NSC RFDEACTNTF opcode

◆ PTX_NSC_OPCODE_RFDISCNTF

#define PTX_NSC_OPCODE_RFDISCNTF   (0x92u)

NSC RFDISCNTF opcode

◆ PTX_NSC_OPCODE_RFERRORNTF

#define PTX_NSC_OPCODE_RFERRORNTF   (0x95u)

NSC RFERRORNTF opcode

◆ PTX_NSC_OPCODE_RFFIELDNTF

#define PTX_NSC_OPCODE_RFFIELDNTF   (0x91u)

NSC RFFIELDNTF opcode

◆ PTX_NSC_READ_CMD_HD_LENGTH

#define PTX_NSC_READ_CMD_HD_LENGTH   (0x03u)

NSC Read command HD length

◆ PTX_NSC_READ_CMD_OPCODE

#define PTX_NSC_READ_CMD_OPCODE   (0x03u)

NSC Read command opcode

◆ PTX_NSC_READ_RSP_HD_LENGTH

#define PTX_NSC_READ_RSP_HD_LENGTH   (0x03u)

NSC Read response HD length

◆ PTX_NSC_READ_RSP_OPCODE

#define PTX_NSC_READ_RSP_OPCODE   (0x43u)

NSC Read response opcode

◆ PTX_NSC_RESET_RSP_LENGTH

#define PTX_NSC_RESET_RSP_LENGTH   (0x02u)

NSC Reset response length

◆ PTX_NSC_RESET_RSP_OPCODE

#define PTX_NSC_RESET_RSP_OPCODE   (0x41u)

NSC reset response opcode

◆ PTX_NSC_RF_ACTIVATE_CMD_OPCODE

#define PTX_NSC_RF_ACTIVATE_CMD_OPCODE   (0x13u)

NSC RF Activate command opcode

◆ PTX_NSC_RF_ACTIVATE_CMD_OPCODE_INDEX

#define PTX_NSC_RF_ACTIVATE_CMD_OPCODE_INDEX   (0x00u)

NSC RF Activate command opcode index

◆ PTX_NSC_RF_ACTIVATE_CMD_OPCODE_LENGTH

#define PTX_NSC_RF_ACTIVATE_CMD_OPCODE_LENGTH   (0x01u)

NSC RF Activate command opcode length

◆ PTX_NSC_RF_ACTIVATE_CMD_PARAMS_MAXLENGTH

#define PTX_NSC_RF_ACTIVATE_CMD_PARAMS_MAXLENGTH   (0x18u)

NSC RF Activate command params maximum length

◆ PTX_NSC_RF_ACTIVATE_RSP_LENGTH

#define PTX_NSC_RF_ACTIVATE_RSP_LENGTH   (0x02u)

NSC RF Activate response length

◆ PTX_NSC_RF_ACTIVATE_RSP_OPCODE

#define PTX_NSC_RF_ACTIVATE_RSP_OPCODE   (0x53u)

NSC RF Activate response opcode

◆ PTX_NSC_RF_ERROR_NTF_CODE_ERR_CURRENT_LIMIT

#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_CURRENT_LIMIT   (0x09u)

NSC RF Error NTF Current limit error

◆ PTX_NSC_RF_ERROR_NTF_CODE_ERR_EMV_COLL

#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_EMV_COLL   (0x11u)

NSC RF Error NTF EMV Coll error

◆ PTX_NSC_RF_ERROR_NTF_CODE_ERR_EXT_CURRENT_SENSOR

#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_EXT_CURRENT_SENSOR   (0x0Au)

NSC RF Error NTF External current sensor

◆ PTX_NSC_RF_ERROR_NTF_CODE_ERR_OVERCURRENT

#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_OVERCURRENT   (0x07u)

NSC RF Error NTF Overcurrent error

◆ PTX_NSC_RF_ERROR_NTF_CODE_ERR_PROTOCOL

#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_PROTOCOL   (0x14u)

NSC RF Error NTF Protocol error

◆ PTX_NSC_RF_ERROR_NTF_CODE_ERR_THERMAL

#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_THERMAL   (0x06u)

NSC RF Error NTF Thermal error

◆ PTX_NSC_RF_ERROR_NTF_CODE_ERR_TIMEOUT

#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_TIMEOUT   (0x12u)

NSC RF Error NTF Timeout error

◆ PTX_NSC_RF_ERROR_NTF_CODE_ERR_TRANSMISSION

#define PTX_NSC_RF_ERROR_NTF_CODE_ERR_TRANSMISSION   (0x13u)

NSC RF Error NTF Transmission error

◆ PTX_NSC_RF_ERROR_NTF_CODE_OK

#define PTX_NSC_RF_ERROR_NTF_CODE_OK   (0x00u)

NSC RF Error NTF OK

◆ PTX_NSC_RF_RUN_TEST_CMD_OPCODE

#define PTX_NSC_RF_RUN_TEST_CMD_OPCODE   (0x17u)

NSC RF Run Test command opcode

◆ PTX_NSC_RF_RUN_TEST_CMD_RSP_LENGTH

#define PTX_NSC_RF_RUN_TEST_CMD_RSP_LENGTH   (0x02u)

NSC RF Run Test Command response length

◆ PTX_NSC_RF_RUN_TEST_CMD_RSP_OPCODE

#define PTX_NSC_RF_RUN_TEST_CMD_RSP_OPCODE   (0x57u)

NSC RF Run Test Command response opcode

◆ PTX_NSC_RF_SET_PARAMS_MAX

#define PTX_NSC_RF_SET_PARAMS_MAX   (11u)

NSC RF Set Params maximum amount

◆ PTX_NSC_RF_SET_ROUTING_TABLE_CMD_LENGTH

#define PTX_NSC_RF_SET_ROUTING_TABLE_CMD_LENGTH   (0x0Cu)

NSC RF Set Routing Table command lenght

◆ PTX_NSC_RF_SET_ROUTING_TABLE_CMD_OPCODE

#define PTX_NSC_RF_SET_ROUTING_TABLE_CMD_OPCODE   (0x15u)

NSC RF Set Routing Table command opcode

◆ PTX_NSC_RF_SET_ROUTING_TABLE_RSP_LENGTH

#define PTX_NSC_RF_SET_ROUTING_TABLE_RSP_LENGTH   (0x02u)

NSC RF Set Routing Table response length

◆ PTX_NSC_RF_SET_ROUTING_TABLE_RSP_OPCODE

#define PTX_NSC_RF_SET_ROUTING_TABLE_RSP_OPCODE   (0x55u)

NSC RF Set Routing Table response opcode

◆ PTX_NSC_RF_STOP_TEST_CMD_OPCODE

#define PTX_NSC_RF_STOP_TEST_CMD_OPCODE   (0x18u)

NSC RF Stop Test command opcode

◆ PTX_NSC_RF_STOP_TEST_CMD_RSP_LENGTH

#define PTX_NSC_RF_STOP_TEST_CMD_RSP_LENGTH   (0x02u)

NSC RF Run Test Command response length

◆ PTX_NSC_RF_STOP_TEST_CMD_RSP_OPCODE

#define PTX_NSC_RF_STOP_TEST_CMD_RSP_OPCODE   (0x58u)

NSC RF Run Test Command response opcode

◆ PTX_NSC_RFCONF_CMD_OPCODE

#define PTX_NSC_RFCONF_CMD_OPCODE   (0x11u)

NSC RF Config command opcode

◆ PTX_NSC_RFCONF_LAST_PARAM

#define PTX_NSC_RFCONF_LAST_PARAM   (0x00u)

NSC RF Config last parameter

◆ PTX_NSC_RFCONF_LISTEN

#define PTX_NSC_RFCONF_LISTEN   (0x20u)

NSC RF Config Listen

◆ PTX_NSC_RFCONF_MISC

#define PTX_NSC_RFCONF_MISC   (0x04u)

NSC RF Config miscellaneous

◆ PTX_NSC_RFCONF_POLL_A_106

#define PTX_NSC_RFCONF_POLL_A_106   (0x11u)

NSC RF Config Poll A 106

◆ PTX_NSC_RFCONF_POLL_A_212

#define PTX_NSC_RFCONF_POLL_A_212   (0x12u)

NSC RF Config Poll A 212

◆ PTX_NSC_RFCONF_POLL_A_424

#define PTX_NSC_RFCONF_POLL_A_424   (0x13u)

NSC RF Config Poll A 424

◆ PTX_NSC_RFCONF_POLL_A_848

#define PTX_NSC_RFCONF_POLL_A_848   (0x14u)

NSC RF Config Poll A 848

◆ PTX_NSC_RFCONF_POLL_B_106

#define PTX_NSC_RFCONF_POLL_B_106   (0x15u)

NSC RF Config Poll B 106

◆ PTX_NSC_RFCONF_POLL_B_212

#define PTX_NSC_RFCONF_POLL_B_212   (0x16u)

NSC RF Config Poll B 212

◆ PTX_NSC_RFCONF_POLL_B_424

#define PTX_NSC_RFCONF_POLL_B_424   (0x17u)

NSC RF Config Poll B 424

◆ PTX_NSC_RFCONF_POLL_B_848

#define PTX_NSC_RFCONF_POLL_B_848   (0x18u)

NSC RF Config Poll B 848

◆ PTX_NSC_RFCONF_POLL_F_212

#define PTX_NSC_RFCONF_POLL_F_212   (0x19u)

NSC RF Config Poll F 212

◆ PTX_NSC_RFCONF_POLL_F_424

#define PTX_NSC_RFCONF_POLL_F_424   (0x1Au)

NSC RF Config Poll F 424

◆ PTX_NSC_RFCONF_POLL_V

#define PTX_NSC_RFCONF_POLL_V   (0x1Eu)

NSC RF Config Poll V

◆ PTX_NSC_RFCONF_RESP_LEN

#define PTX_NSC_RFCONF_RESP_LEN   (0x02u)

NSC RF Config response length

◆ PTX_NSC_RFCONF_RSP_OPCODE

#define PTX_NSC_RFCONF_RSP_OPCODE   (0x51u)

NSC RF Config response opcode

◆ PTX_NSC_RFCONF_TX_POWER_MODE

#define PTX_NSC_RFCONF_TX_POWER_MODE   (0x02u)

NSC RF Config TX power mode

◆ PTX_NSC_RFCONF_WAVEBANK_0

#define PTX_NSC_RFCONF_WAVEBANK_0   (0x00u)

NSC RF Config Wavebank 00

◆ PTX_NSC_RFCONF_WAVEBANK_1

#define PTX_NSC_RFCONF_WAVEBANK_1   (0x01u)

NSC RF Config Wavebank 01

◆ PTX_NSC_RFCONF_WAVEBANK_10

#define PTX_NSC_RFCONF_WAVEBANK_10   (0x0Au)

NSC RF Config Wavebank 10

◆ PTX_NSC_RFCONF_WAVEBANK_11

#define PTX_NSC_RFCONF_WAVEBANK_11   (0x0Bu)

NSC RF Config Wavebank 11

◆ PTX_NSC_RFCONF_WAVEBANK_12

#define PTX_NSC_RFCONF_WAVEBANK_12   (0x0Cu)

NSC RF Config Wavebank 12

◆ PTX_NSC_RFCONF_WAVEBANK_13

#define PTX_NSC_RFCONF_WAVEBANK_13   (0x0Du)

NSC RF Config Wavebank 13

◆ PTX_NSC_RFCONF_WAVEBANK_14

#define PTX_NSC_RFCONF_WAVEBANK_14   (0x0Eu)

NSC RF Config Wavebank 14

◆ PTX_NSC_RFCONF_WAVEBANK_15

#define PTX_NSC_RFCONF_WAVEBANK_15   (0x0Fu)

NSC RF Config Wavebank 15

◆ PTX_NSC_RFCONF_WAVEBANK_16

#define PTX_NSC_RFCONF_WAVEBANK_16   (0x10u)

NSC RF Config Wavebank 16

◆ PTX_NSC_RFCONF_WAVEBANK_17

#define PTX_NSC_RFCONF_WAVEBANK_17   (0x11u)

NSC RF Config Wavebank 17

◆ PTX_NSC_RFCONF_WAVEBANK_18

#define PTX_NSC_RFCONF_WAVEBANK_18   (0x12u)

NSC RF Config Wavebank 18

◆ PTX_NSC_RFCONF_WAVEBANK_19

#define PTX_NSC_RFCONF_WAVEBANK_19   (0x13u)

NSC RF Config Wavebank 19

◆ PTX_NSC_RFCONF_WAVEBANK_2

#define PTX_NSC_RFCONF_WAVEBANK_2   (0x02u)

NSC RF Config Wavebank 02

◆ PTX_NSC_RFCONF_WAVEBANK_3

#define PTX_NSC_RFCONF_WAVEBANK_3   (0x03u)

NSC RF Config Wavebank 03

◆ PTX_NSC_RFCONF_WAVEBANK_4

#define PTX_NSC_RFCONF_WAVEBANK_4   (0x04u)

NSC RF Config Wavebank 04

◆ PTX_NSC_RFCONF_WAVEBANK_5

#define PTX_NSC_RFCONF_WAVEBANK_5   (0x05u)

NSC RF Config Wavebank 05

◆ PTX_NSC_RFCONF_WAVEBANK_6

#define PTX_NSC_RFCONF_WAVEBANK_6   (0x06u)

NSC RF Config Wavebank 06

◆ PTX_NSC_RFCONF_WAVEBANK_7

#define PTX_NSC_RFCONF_WAVEBANK_7   (0x07u)

NSC RF Config Wavebank 07

◆ PTX_NSC_RFCONF_WAVEBANK_8

#define PTX_NSC_RFCONF_WAVEBANK_8   (0x08u)

NSC RF Config Wavebank 08

◆ PTX_NSC_RFCONF_WAVEBANK_9

#define PTX_NSC_RFCONF_WAVEBANK_9   (0x09u)

NSC RF Config Wavebank 09

◆ PTX_NSC_RFD_CTRL_ACK

#define PTX_NSC_RFD_CTRL_ACK   (0x00u)

NSC Data control ACK

◆ PTX_NSC_RFD_CTRL_ATTENTION

#define PTX_NSC_RFD_CTRL_ATTENTION   (0x03u)

NSC Data control Attention

◆ PTX_NSC_RFD_CTRL_EOF

#define PTX_NSC_RFD_CTRL_EOF   (0x02u)

NSC Data control EOF

◆ PTX_NSC_RFD_CTRL_NACK

#define PTX_NSC_RFD_CTRL_NACK   (0x01u)

NSC Data control NACK

◆ PTX_NSC_RFD_CTRL_NR

#define PTX_NSC_RFD_CTRL_NR   (0x04u)

NSC Data control NR

◆ PTX_NSC_RFD_CTRL_OPCODE

#define PTX_NSC_RFD_CTRL_OPCODE   (0xD2u)

NSC Data control opcode

◆ PTX_NSC_RFERRORNTF_LENGTH

#define PTX_NSC_RFERRORNTF_LENGTH   (0x02u)

NSC RFERRORNTF length

◆ PTX_NSC_SET_PARAM_CMD_EOC

#define PTX_NSC_SET_PARAM_CMD_EOC   (0x00u)

NSC RF Discovery set params command EOC

◆ PTX_NSC_SET_PARAMS_DISC_CMD_OPCODE

#define PTX_NSC_SET_PARAMS_DISC_CMD_OPCODE   (0x16u)

NSC RF Discovery set params command opcode

◆ PTX_NSC_SET_PARAMS_DISC_RSP_LEN

#define PTX_NSC_SET_PARAMS_DISC_RSP_LEN   (0x02u)

NSC RF Discovery set params response length

◆ PTX_NSC_SET_PARAMS_DISC_RSP_OPCODE

#define PTX_NSC_SET_PARAMS_DISC_RSP_OPCODE   (0x56u)

NSC RF Discovery set params response opcode

◆ PTX_NSC_STANDBY_CMD_OPCODE

#define PTX_NSC_STANDBY_CMD_OPCODE   (0x05u)

NSC Standby command opcode

◆ PTX_NSC_STANDBY_PARAMETERS_LEN

#define PTX_NSC_STANDBY_PARAMETERS_LEN   (0x00u)

NSC Standby parameters length

◆ PTX_NSC_STANDBY_RESP_LEN

#define PTX_NSC_STANDBY_RESP_LEN   (0x02u)

NSC Standby response length

◆ PTX_NSC_STANDBY_RSP_OPCODE

#define PTX_NSC_STANDBY_RSP_OPCODE   (0x45u)

NSC Standby response opcode

◆ PTX_NSC_TRANSFER_TO

#define PTX_NSC_TRANSFER_TO   (500u)

NSC Transfer

◆ PTX_NSC_TYPE_FRAME_CMD

#define PTX_NSC_TYPE_FRAME_CMD   (0x00)

NSC Frame Command communication type

◆ PTX_NSC_TYPE_FRAME_MASK

#define PTX_NSC_TYPE_FRAME_MASK   (0xC0)

NSC Frame Mask communication type

◆ PTX_NSC_TYPE_FRAME_NTF

#define PTX_NSC_TYPE_FRAME_NTF   (0x02)

NSC Frame NTF communication type

◆ PTX_NSC_TYPE_FRAME_RSP

#define PTX_NSC_TYPE_FRAME_RSP   (0x01)

NSC Frame Response communication type

◆ PTX_NSC_TYPE_FRAME_TRANSP

#define PTX_NSC_TYPE_FRAME_TRANSP   (0x03)

NSC Frame Transp communication type

◆ PTX_NSC_TYPES_LISBSENSRES_LEN

#define PTX_NSC_TYPES_LISBSENSRES_LEN   (13U)

NSC Types LISBSENSRES length

◆ PTX_NSC_TYPES_RD_OP_MAX

#define PTX_NSC_TYPES_RD_OP_MAX   (3u)

NSC Read RDRP maximum OP

◆ PTX_NSC_TYPES_RFU_1_LEN

#define PTX_NSC_TYPES_RFU_1_LEN   (23U)

RFU

◆ PTX_NSC_TYPES_TECH_A

#define PTX_NSC_TYPES_TECH_A   (0x00u)

NSC RF Tech type A

◆ PTX_NSC_TYPES_TECH_B

#define PTX_NSC_TYPES_TECH_B   (0x01u)

NSC RF Tech type B

◆ PTX_NSC_TYPES_TECH_F

#define PTX_NSC_TYPES_TECH_F   (0x02u)

NSC RF Tech type F

◆ PTX_NSC_TYPES_TECH_LISTEN_A

#define PTX_NSC_TYPES_TECH_LISTEN_A   (0x80u)

NSC RF Activate NTF tech type Listen A

◆ PTX_NSC_TYPES_TECH_POLL_A

#define PTX_NSC_TYPES_TECH_POLL_A   (0x00u)

NSC RF Activate NTF tech type Poll A

◆ PTX_NSC_TYPES_TECH_POLL_ACT

#define PTX_NSC_TYPES_TECH_POLL_ACT   (0x03u)

NSC RF Activate NTF tech type Poll ACT

◆ PTX_NSC_TYPES_TECH_POLL_B

#define PTX_NSC_TYPES_TECH_POLL_B   (0x01u)

NSC RF Activate NTF tech type Poll B

◆ PTX_NSC_TYPES_TECH_POLL_F

#define PTX_NSC_TYPES_TECH_POLL_F   (0x02u)

NSC RF Activate NTF tech type Poll F

◆ PTX_NSC_TYPES_TECH_POLL_V

#define PTX_NSC_TYPES_TECH_POLL_V   (0x06u)

NSC RF Activate NTF tech type Poll V

◆ PTX_NSC_TYPES_TECH_V

#define PTX_NSC_TYPES_TECH_V   (0x06u)

NSC RF Tech type V

◆ PTX_NSC_TYPES_WR_OP_MAX

#define PTX_NSC_TYPES_WR_OP_MAX   (70u)

NSC Write WRRP maximum OP

◆ PTX_NSC_TYPEV_UID_LEN

#define PTX_NSC_TYPEV_UID_LEN   (8u)

NSC Type V UID length

◆ PTX_NSC_WAKEUP_CMD_OPCODE

#define PTX_NSC_WAKEUP_CMD_OPCODE   (0x06u)

NSC Wakeup command opcode

◆ PTX_NSC_WAKEUP_PARAMETERS_LEN

#define PTX_NSC_WAKEUP_PARAMETERS_LEN   (0x00u)

NSC Wakeup parameter length

◆ PTX_NSC_WAKEUP_RESP_LEN

#define PTX_NSC_WAKEUP_RESP_LEN   (0x02u)

NSC Wakeup response length

◆ PTX_NSC_WAKEUP_RSP_OPCODE

#define PTX_NSC_WAKEUP_RSP_OPCODE   (0x46u)

NSC Wakeup response opcode

◆ PTX_NSC_WRITE_CMD_HD_LENGTH

#define PTX_NSC_WRITE_CMD_HD_LENGTH   (0x03u)

NSC Write command HD length

◆ PTX_NSC_WRITE_CMD_OPCODE

#define PTX_NSC_WRITE_CMD_OPCODE   (0x04u)

NSC Write command opcode

◆ PTX_NSC_WRITE_RSP_LENGTH

#define PTX_NSC_WRITE_RSP_LENGTH   (0x02u)

NSC Write response length

◆ PTX_NSC_WRITE_RSP_OPCODE

#define PTX_NSC_WRITE_RSP_OPCODE   (0x44u)

NSC Write response opcode

Typedef Documentation

◆ ptxNSC_WriteCmd_Par_t

NSC Read CMD parameter structure.

◆ ptxNSC_WriteCmd_Type_t

Types of NSC Read CMD.

Enumeration Type Documentation

◆ ptxNSC_InitTechPoll

Enum for initial technology in the discovery loop.

Enumerator
Init_Poll_ACM 

In case of enabled, first technology to poll for NFC-ACM.

Init_Poll_A 

In case of enabled, first technology to poll for NFC-A.

Init_Poll_B 

In case of enabled, first technology to poll for NFC-B.

Init_Poll_F 

In case of enabled, first technology to poll for NFC-F.

Init_Poll_V 

In case of enabled, first technology to poll for NFC-V.

◆ ptxNSC_Mode

NSC Mode. (Just used for UART Interface).

Enumerator
NscMode_HW 

HW Mode. HW operations allowed and "uart rx thread" disabled.

NscMode_SYS 

HW Mode. HW operations not allowed and "uart rx thread" enabled.

◆ ptxNSC_PollType

Enum for Polling-Loop type.

Enumerator
PollModeDisabled 

Disables any polling activity

ConstantField 

Turns on RF-field (but no modulation!).

NfcForumMode 

NFC-Forum polling mode

EmvPollMode 

EMVCo polling mode (standard)

EmvPollMode_TransacA 

EMVCo polling mode (TRANSAC_A)

EmvPollMode_TransacB 

EMVCo polling mode (TRANSAC_B)

IsoPollMode 

ISO polling mode

◆ ptxNSC_Power_Mode

NSC chip power modes.

Enumerator
PowerMode_Active 

Active mode. Default mode of operation.

PowerMode_StandBy 

StandBy mode. Low power mode, RF communication turned off.

◆ ptxNSC_ReadCmd_Type

Types of NSC Read CMD.

Enumerator
ReadRandomAdd 

Read Random Addres.

◆ ptxNSC_RfDeact_State

NSC RF state-machine state after command execution.

Enumerator
RfIdle 

Rf Idle State.

RfDiscovery 

Rf Discovery State.

RfPollSleep 

Rf Poll State.

RfDiscoverNoFieldOff 

Rf Discovery No Field Off.

◆ ptxNSC_RfDeact_Type

NSC Rf Deactivate procedure type.

Enumerator
DeactType_Generic 

Generic Deactivation - no specific deactivation

DeactType_Protocol_Specific 

Protocol Specific Deactivation - managed by the uCode itself

◆ ptxNSC_RfDiscovery_Mode

NSC Rf Discovery Con_Poll_Disc_Mode parameter settings.

Enumerator
DiscoveryMode_Regular 

Regular RF discovery mode.

DiscoveryMode_Lpcd 

Low power card detection (LPCD) mode.

DiscoveryMode_Hybrid_Start 

Hybrid mode: regular/full-power RF poll phase is used in every n-th discovery period and LPCD is used in other periods. Acceptable values: 2 - 255.

◆ ptxNSC_RfParameter_Id

NSC Rf Parameter Id.

Enumerator
RfParameter_EoC 

End-of-Command parameter indicates the end of a command.

RfParameter_Rf_Tech 

Set RF technology.

RfParameter_Fwt 

Set Frame Waiting Time in 128/fc time units in big-endian format (most significant byte first).

RfParameter_Tx_Bit_Rate 

Set transmission bitrate

RfParameter_Rx_Bit_Rate 

Set reception bitrate

RfParameter_Tx_PAR 

Enable or disable RF PARITY on tx automatically handled by PTX1K (enabled by default).

RfParameter_Rx_PAR 

Enable or disable RF PARITY on rx automatically handled by PTX1K (enabled by default).

RfParameter_Tx_CRC 

Enable or disable RF CRC on tx automatically handled by PTX1K (enabled by default).

RfParameter_Rx_CRC 

Enable or disable RF CRC on rx automatically handled by PTX1K (enabled by default).

RfParameter_Res_Limit 

Set max. response limit for NSC to receive on RF (0 == wait until Frame Waiting Time expires).

RfParameter_Tx_Residual_Bits 

Defines residual bits for the last transmitted byte. In case the parameter is 0 a full byte is transmitted. Valid values are 0 to 7

RfParameter_Rf_Field 

Enables or disables the RF Field (1 == enabled, 0 == disabled)

◆ ptxNSC_RfTest_ID

Test-IDs for RF-Test command.

Enumerator
RfTest_TRANSAC_A 

RF-Test Identifier TRANSAC-A.

RfTest_TRANSAC_B 

RF-Test Identifier TRANSAC-B.

RfTest_Carrier 

RF-Test Identifier CARRIER.

RfTest_PRBS_9 

RF-Test Identifier PRBS-9.

RfTest_PRBS_15 

RF-Test Identifier PRBS-15.

◆ ptxNSC_Rsp_ErrorCodes

NSC response Eror Codes.

Enumerator
ptxNscRsp_Sucessful 

Command successfully executed without errors.

ptxNscRsp_UnknownError 

Command failed due to an unknown error.

ptxNscRsp_NotAllowedCmd 

Command not allowed in the current state.

ptxNscRsp_UnknownErrorCmd 

Command unknown.

ptxNscRsp_InvalidParameter 

Invalid parameter.

ptxNscRsp_RouteNotFound 

Route not found.

ptxNscRsp_PAThermalProtError 

PA Thermal protection error.

ptxNscRsp_PAOvercurProtError 

PA Overcurrent protection error.

ptxNscRsp_DeviceInStandby 

Device is in Standby mode.

ptxNscRsp_RfCollisionError 

RF Collision error (valid for EMVCo poll mode).

ptxNscRsp_RfTimeoutError 

RF Timeout error.

ptxNscRsp_RfTransmissionError 

RF Transmission error.

ptxNscRsp_RfProtocolError 

RF Protocol error.

ptxNscRsp_RfPollModNotSupported 

RF Poll mode not supported.

ptxNscRsp_RfListModNotSupported 

RF Listen mode not supported.

ptxNscRsp_SwpUiccNotPresent 

SWP error. UICC not present.

ptxNscRsp_SwpInterfaceError 

SWP error. Interface error.

ptxNscRsp_SwpIdentityCheckFail 

SWP identity check failed.

ptxNscRsp_SwpModeNotSupported 

SWP mode not supported.

◆ ptxNSC_WriteCmd_Type

Types of NSC Read CMD.

Enumerator
WriteRandomAdd 

Write Random Address.

Function Documentation

◆ ptxNSC_CheckSystemState()

ptxStatus_t ptxNSC_CheckSystemState ( ptxNSC_t * nscCtx,
ptxStatus_t currentStatus )

Checks System-State during initialization phase of IC.

Parameters
[in]nscCtxPointer to the component structure.
[in]currentStatusStatus of currently executed function.
Returns
Status, indicating whether the operation was successful. See ptxStatus_t.

◆ ptxNSC_Deinit()

ptxStatus_t ptxNSC_Deinit ( ptxNSC_t * nscCtx)

De-Initialize the NSC Component.

This function has to be called last one at this Component. This function cleans up the resources used by NSC.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_DeRegisterExtension()

ptxStatus_t ptxNSC_DeRegisterExtension ( ptxNSC_t * nscCtx,
uint8_t extensionID )

De-Register an NSC-Extension (Prototype/RFU).

Parameters
[in]nscCtxPointer to the component structure.
[in]extensionIDID of Extension to be de-registered within component.
Returns
Status, indicating whether the operation was successful. See ptxStatus_t.

◆ ptxNSC_DFY_Activation()

ptxStatus_t ptxNSC_DFY_Activation ( ptxNSC_t * nscCtx)

NSC DFY Activation.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_FwDownloader()

ptxStatus_t ptxNSC_FwDownloader ( ptxNSC_t * nscCtx)

NSC FW Downloading on the PTX1K.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_Get_Mtu()

ptxStatus_t ptxNSC_Get_Mtu ( ptxNSC_t * nscCtx,
uint32_t * maxTransferUnit )

Get Maximum Transfer Unit.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
[out]maxTransferUnitPointer where the maximum payload of NSC Component is provided.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_GetDeactivateTimeout()

ptxStatus_t ptxNSC_GetDeactivateTimeout ( ptxNSC_t * nscCtx,
uint32_t * currentTimeout )

Function to retrieve the current timeout value in [ms] to wait for a NSC.RF_DEACTIVATE_RSP.

Parameters
[in]nscCtxPointer to the component structure.
[out]currentTimeoutPointer to store the current timeout value.
Returns
Status, indicating whether the operation was successful. See ptxStatus_t.

◆ ptxNSC_GetInitConfigParams()

ptxStatus_t ptxNSC_GetInitConfigParams ( ptxNSC_t * nscCtx,
uint32_t baudRate,
uint8_t * uartConfig )

Get uart configuration parameters for NSC init command.

Parameters are calculated based on expected baudrate and flow control. The result is stored in provided uartConfig array. UartConfig parameters are part of NSC_INIT_CMD and have to be provided always, no matter of the actual interface used.

Parameters
[in]nscCtxPointer to the component structure.
[in]baudRateExpected baudrate for uart interface.
[out]uartConfigArray holding the resulting parameters, which have tobe provided in NSC init cmd.
Returns
Status, indicating whether the operation was successful. See ptxStatus_t.

◆ ptxNSC_GetMiscRFConfig()

ptxStatus_t ptxNSC_GetMiscRFConfig ( ptxNSC_t * nscCtx,
uint8_t * configBuffer,
uint8_t * configBufferLen )

NSC Get last loaded Misc. RF-Configuration.

This function is used to retrieve a copy of the last loaded miscellaneous RF-Configuration settings.

Parameters
[in]nscCtxPointer to the component structure.
[in]configBufferPointer to buffer where Misc. settings should be stored.
[in,out]configBufferLenSize of configBuffer (in), Length of stored Misc. settings (out).
Returns
Status, indicating whether the operation was successful. See ptxStatus_t.

◆ ptxNSC_GetMode()

ptxStatus_t ptxNSC_GetMode ( ptxNSC_t * nscCtx,
ptxNSC_Mode_t * currentMode )
Note
Internal function

◆ ptxNSC_GetRevisionInfo()

ptxStatus_t ptxNSC_GetRevisionInfo ( ptxNSC_t * nscCtx,
ptxNSC_RevisionType_t revisionType,
uint32_t * revisionInfo )

Get various revisions of system (C-Stack, DFY-Code/-Toochain, Chip-ID, Local changes etc.

Parameters
[in]nscCtxPointer to the component structure.
[in]revisionTypeType of Revision.
[out]revisionInfoRevision information.
Returns
Status, indicating whether the operation was successful. See ptxStatus_t.

◆ ptxNSC_HardReset()

ptxStatus_t ptxNSC_HardReset ( ptxNSC_t * nscCtx)

NSC Hard Reset on the PTX1K via the SEN-pin.

This function cleans up the resources used by NSC.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_Init()

ptxStatus_t ptxNSC_Init ( ptxNSC_t ** nscCtx,
ptxNSC_ConfigPars_t * configPars )

Initialize the NSC Component.

This function has to be called before any other API functions at this Component.

Parameters
[in]nscCtxPointer to a pointer where the NSC Content is going to be provided.
[in]configParsNsc configuration parameters.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_InitCmd()

ptxStatus_t ptxNSC_InitCmd ( ptxNSC_t * nscCtx,
ptxNSC_InitPars_t * nscInitPars )

NSC_INIT_CMD.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
[in]nscInitParsPointer to parameters for NSC_INIT_CMD.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_Process()

ptxStatus_t ptxNSC_Process ( ptxNSC_t * nscCtx,
uint8_t * buff,
size_t buffLen )
Note
Internal function

◆ ptxNSC_ProcessRspErrorCode()

ptxStatus_t ptxNSC_ProcessRspErrorCode ( ptxNSC_Rsp_ErrorCodes_t NscRspErrorCode)
Note
Internal function

◆ ptxNSC_Read()

ptxStatus_t ptxNSC_Read ( ptxNSC_t * nscCtx,
uint16_t address,
uint8_t * value )

Reads a (register) value from the chip.

This function is used to read a (register) value from the chip.

Parameters
[in]nscCtxPointer to the component structure.
[in]addressAddress to read
[out]valueRead value
Returns
Status, indicating whether the operation was successful. See ptxStatus_t.

◆ ptxNSC_ReadTempSensor()

ptxStatus_t ptxNSC_ReadTempSensor ( ptxNSC_t * nscCtx,
uint8_t * sensVal )

Read out IC temperature sensor.

Parameters
[in]nscCtxPointer to the component structure.
[out]sensValTemperature sensor read-out value.
Returns
Status, indicating whether the operation was successful. See ptxStatus_t.

◆ ptxNSC_ReceiveRsp()

ptxStatus_t ptxNSC_ReceiveRsp ( ptxNSC_t * nscCtx,
uint8_t ** rsp,
size_t * rspLen,
uint32_t timeOut )
Note
Internal function

◆ ptxNSC_RegisterExtension()

ptxStatus_t ptxNSC_RegisterExtension ( ptxNSC_t * nscCtx,
ptxNSC_Custom_Extension_t * extension )

Register an NSC-Extension (Prototype/RFU).

Parameters
[in]nscCtxPointer to the component structure.
[in]extensionPointer to Extension parameter structure.
Returns
Status, indicating whether the operation was successful. See ptxStatus_t.

◆ ptxNSC_Reset()

ptxStatus_t ptxNSC_Reset ( ptxNSC_t * nscCtx)

Performs either an caller-agnostic NSC Hard (if SEN-pin is connected) or Soft Reset.

This function cleans up the resources used by NSC.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_RfActivate()

ptxStatus_t ptxNSC_RfActivate ( ptxNSC_t * nscCtx,
ptxNSC_RfActiv_Param_t * nscRfActPars,
uint8_t * activationData,
size_t * activationDataLen )

NSC_RF_ACTIVATE_CMD.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
[in]nscRfActParsPointer to parameters for NSC_RF_ACTIVATE_CMD.
[out]activationDataPointer to the buffer which will hold received card data.
[out]activationDataLenPointer to the variable holding received activation data length.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_RfConfig()

ptxStatus_t ptxNSC_RfConfig ( ptxNSC_t * nscCtx,
ptxNSC_RfConfigTlv_t * nscRfCfgParams,
uint8_t rfConfigTlvCount )

NSC_RF_CONFIG_CMD.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
[in]nscRfCfgParamsPointer to one (or more) RF-/SYS-Configuration parameter instance(s).
[in]rfConfigTlvCountNumber of RF-/SYS-Configuration parameter instance(s).
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_RfDataMsgTx()

ptxStatus_t ptxNSC_RfDataMsgTx ( ptxNSC_t * nscCtx,
uint8_t * msgData,
size_t msgDataLen,
uint8_t isChained )

Transmission of a NSC_RF_MSG to a remote RF device such as a reader.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
[in]msgDataBuffer for the data to transmit
[in]msgDataLenLength of buffer for the data is going to transmit. Length of /ref msgData
[in]isChainedBoolean for data chaining. 1 = chained or 0 = not-chained.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_RfDeactivate()

ptxStatus_t ptxNSC_RfDeactivate ( ptxNSC_t * nscCtx,
ptxNSC_RfDeactPars_t * nscRfDeactPars )

NSC_RF_DEACTIVATE_CMD.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
[in]nscRfDeactParsPointer to parameters for NSC_RF_DEACTIVATE_CMD.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_RfDiscovery()

ptxStatus_t ptxNSC_RfDiscovery ( ptxNSC_t * nscCtx,
ptxNSC_RfDiscPars_t * nscRfDiscPars )

NSC_RF_DISCOVER_CMD.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
[in]nscRfDiscParsPointer to parameters for NSC_DISCOVER_CMD.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_RfSetParams()

ptxStatus_t ptxNSC_RfSetParams ( ptxNSC_t * nscCtx,
ptxNSC_RfPar_t * nscRfParams,
size_t nscRfParamsLen )

NSC_RF_DISCOVER_CMD.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
[in]nscRfParamsPointer to parameters for NSC_RF_SET_PARAMETER_CMD.
[in]nscRfParamsLenLenght of /ref nscRfParamsLen.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_RfTestRun()

ptxStatus_t ptxNSC_RfTestRun ( ptxNSC_t * nscCtx,
ptxNSC_RfTest_ID_t rfTestId,
uint8_t * rfTestParams,
size_t rfTestParamsLen )

Function for NSC_RF_RUN_CMD.

This function builds the NSC_RF_RUN_CMD accordingly to inputParams and send it to the chip.

Parameters
[in]nscCtxPointer to the component structure.
[in]rfTestIdTest Identifier.
[in]rfTestParamsTest Parameters.
[in]rfTestParamsLenNumber of Test Parameters.
Returns
Status, indicating whether the operation was successful. See ptxStatus_t.

◆ ptxNSC_RfTestStop()

ptxStatus_t ptxNSC_RfTestStop ( ptxNSC_t * nscCtx)

Function for NSC_RF_STOP_CMD.

This function builds the NSC_RF_STOP_CMD accordingly to inputParams and send it to the chip.

Parameters
[in]nscCtxPointer to the component structure.
Returns
Status, indicating whether the operation was successful. See ptxStatus_t.

◆ ptxNSC_Send()

ptxStatus_t ptxNSC_Send ( ptxNSC_t * nscCtx,
ptxNscHal_BufferId_t bufferId,
uint8_t * txBuf[],
size_t txLen[],
size_t numBuffers )
Note
Internal function

◆ ptxNSC_SetDeactivateTimeout()

ptxStatus_t ptxNSC_SetDeactivateTimeout ( ptxNSC_t * nscCtx,
uint32_t * currentTimeout )

Function to set the current timeout value in [ms] to wait for a NSC.RF_DEACTIVATE_RSP.

Parameters
[in]nscCtxPointer to the component structure.
[in]currentTimeoutPointer to variable holding new timeout value. If set to NULL, default value will be used.
Returns
Status, indicating whether the operation was successful. See ptxStatus_t.

◆ ptxNSC_SetMode()

ptxStatus_t ptxNSC_SetMode ( ptxNSC_t * nscCtx,
ptxNSC_Mode_t newMode )
Note
Internal function

◆ ptxNSC_SetNrResidualTxBits()

ptxStatus_t ptxNSC_SetNrResidualTxBits ( ptxNSC_t * nscCtx,
uint8_t transparentModeEnabled,
uint8_t nrTxBits )

Enables or disables the NFC Type-A Transparent Mode and allows to set the number of residual Tx-bits if enabled.

Parameters
[in]nscCtxPointer to the component structure.
[in]transparentModeEnabledEnables/Disables Type-A Transparent-Mode..
[in]nrTxBitsSet number of residual Tx-bits if Type-A Transparent-Mode is enabled..
Returns
Status, indicating whether the operation was successful. See ptxStatus_t.

◆ ptxNSC_SoftReset()

ptxStatus_t ptxNSC_SoftReset ( ptxNSC_t * nscCtx)

NSC Soft Reset on the PTX1K.

This function has to be called last one at this Component. This function cleans up the resources used by NSC.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_StandbyCmd()

ptxStatus_t ptxNSC_StandbyCmd ( ptxNSC_t * nscCtx)

NSC_STANDY_CMD.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_Start_WaitForRx()

ptxStatus_t ptxNSC_Start_WaitForRx ( ptxNSC_t * nscCtx)
Note
Internal function

◆ ptxNSC_Stop_WaitForRx()

ptxStatus_t ptxNSC_Stop_WaitForRx ( ptxNSC_t * nscCtx)
Note
Internal function

◆ ptxNSC_WakeupCmd()

ptxStatus_t ptxNSC_WakeupCmd ( ptxNSC_t * nscCtx)

NSC_WAKEUP_CMD.

Parameters
[in]nscCtxPointer to an initialized instance of the NSC.
Returns
Status, indicating whether the operation was successful.See ptxStatus_t.

◆ ptxNSC_Write()

ptxStatus_t ptxNSC_Write ( ptxNSC_t * nscCtx,
uint16_t address,
uint8_t value )

Writes a single (register/memory) value to the chip.

This function is used to write a (register) value to the chip.

Parameters
[in]nscCtxPointer to the component structure.
[in]addressAddress to write
[in]valueWrite value
Returns
Status, indicating whether the operation was successful. See ptxStatus_t.

◆ ptxNSC_WriteN()

ptxStatus_t ptxNSC_WriteN ( ptxNSC_t * nscCtx,
uint16_t * addresses,
uint8_t * values,
size_t nrWrites )

Writes multiple (register/memory) values to the chip.

This function is used to write multiple register/memory values to to the chip.

Parameters
[in]nscCtxPointer to the component structure.
[in]addressesAddresses to write
[in]valuesWrite values
[in]nrWritesNumber of Write addresses/values
Returns
Status, indicating whether the operation was successful. See ptxStatus_t.