|
Renesas PTX1xxR IoT-Reader API Version 7.3.1
Renesas Software Stack for IoT-Reader Applications
|

Data Structures | |
| struct | ptxTbInt |
Typedefs | |
| typedef void(* | pptxInt_Completion_t) (void *sysCtx, uint8_t *complData, size_t complDataLen, int32_t complStatus) |
| Completion function pointer for general calls and responses to calls. | |
| typedef void(* | pptxInt_CompletionNTF_t) (void *sysCtx, ptxNSC_Event_t *complData) |
| Completion function pointer for notifications. | |
Functions | |
| ptxStatus_t | ptxTbInt_GetIORQNtf (void *cpLayer, ptxIoRq_t *io_rq) |
| Integration get IO RQ Ntf (Not including NCI). | |
| void | ptxTbInt_ReturnIoRqItem (ptxTbInt_t *cInst, ptxIoRq_t *ioCpl, ptxStatus_t reqStatus) |
| Internal function to return I/O request objects in case of non-pending status. | |
| void | ptxTbInt_GetIORQNtfCompletion (ptxIoRq_t *ioCpl, void *cplLayer, void *data, size_t dataLength, ptxStatus_t cplStatus) |
| Completion function for ptxTbInt_GetIORQNtf. | |
| void | ptxTbInt_NSCCompletion (ptxIoRq_t *ioCpl, void *cplLayer, void *data, size_t dataLength, ptxStatus_t cplStatus) |
| Internal default completion function general purpose NSC. | |
| typedef struct ptxTbInt | ptxTbInt_t |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_SetUp (void *compCtx, pptxInt_Completion_t complFn, pptxInt_CompletionNTF_t complFnNtf, void *sysCtx) |
| Set up the stack. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_ShutDown (void *compCtx) |
| Shut down the stack. | |
| PTX_LIBFUNC const char * | ptxTbInt_GetVersionDescription (void) |
| Get Version Description. | |
| PTX_LIBFUNC ptxTbInt_t * | ptxTbInt_Allocate (void) |
| Allocate memory for ptxTbInt_t - the main struct for the stack that has to be sent from caller in all the calls. | |
| PTX_LIBFUNC void | ptxTbInt_Free (ptxTbInt_t *cInst) |
| Free the memory previously allocated by ptxTbInt_t. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_SetParameter (ptxTbInt_t *cInst, ptxNscFactory_P_t parType, uint8_t *parBuf, uint32_t parLenOrValue) |
| Set Factory Operating Parameter. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_BuildStack (ptxTbInt_t *cInst, void *systemContext) |
| Build the stack. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_DestroyStack (ptxTbInt_t *cInst) |
| Destroy the stack, except for basic objects such as LOG. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_DestroyStack_Finalize (ptxTbInt_t *cInst) |
| Destroy the basic stack objects. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSCFwDownloader (void *compCtx, uint8_t *pData, int length) |
| NSC download firmware image to the chip. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_DragonFlyActivation (void *compCtx) |
| NSC DFY Activation entry function at Int level. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_Init (void *compCtx, ptxNSC_Init_Param_t *initParams) |
| NSC Init entry function at Int level. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_RfConfig (void *compCtx, ptxNSC_RfConfig_Param_t *rfConfigParams) |
| NSC Rf Config. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_RfSetParams (void *compCtx, ptxNsc_RfPar_t *rfPar, size_t rfParLen) |
| NSC RF SET PARAMETER entry function at Int level. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_RfTestRun (void *compCtx, ptxNsc_RfTest_Id_t rfTestId, uint8_t *rfTestParams, size_t rfTestParamsLen) |
| Function for NSC_RF_RUN_CMD. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_RfTestStop (void *compCtx) |
| Function for NSC_RF_STOP_CMD. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSCGetMode (void *compCtx, uint8_t *mode) |
| NSC Get State. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSCGetMiscRFConfig (void *compCtx, uint8_t *configBuffer, size_t *configBufferLen) |
| NSC Get last loaded Misc. RF-Configuration. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_Read (void *compCtx, uint16_t *address, size_t addressLen, ptxNSC_ReadCmd_Type_t typeRd) |
| NSC Read entry function at Int level. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_Write (void *compCtx, uint16_t *address, size_t addressLen, uint8_t *value, size_t valueLen, ptxNSC_WriteCmd_Type_t typeWr) |
| NSC Write entry function at integration level. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_RfDiscover (void *compCtx, ptxNSC_Discover_Param_t *discoverParams) |
| NSC Discover entry function at Int level. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_RfDiscover_EmvCo_TRANSAC_A (void *compCtx) |
| NSC Rf Discover entry function at Int level, enabling the TRANSAC_A feature. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_RfDiscover_EmvCo_TRANSAC_B (void *compCtx) |
| NSC Rf Discover entry function at Int level, enabling the TRANSAC_B feature. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_SetField (void *compCtx, uint8_t enabled) |
| Turns the RF-field of the Reader on or off. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_RfConfig_NVMLoad (void *compCtx, ptxNSC_RfConfig_Param_t *rfConfigParams) |
| Loads the RF-Configuration from NVM. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_RfConfig_NVMUnLoad (void *compCtx, ptxNSC_RfConfig_Param_t *rfConfigParams) |
| (Un-)Loads the RF-Configuration from internal memory. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_DataMsg (void *compCtx, uint8_t *payload, size_t length, uint8_t isChained) |
| NSC Data Msg entry function at Int level. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_CltMsg (void *compCtx, uint8_t *pld, uint8_t *pldPar, size_t length) |
| NSC Clt Msg entry function at Int level. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_PresCheck_IsoDep_Nack (void *compCtx) |
| NSC Presence Check at ISO-DEP(Nack) at Int level. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_PresCheck_IsoDep_EmptyBlock (void *compCtx) |
| NSC Presence Check at ISO-DEP(Empty I-Frame) at Int level. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_PresCheck_NfcDep_AttentionCmd (void *compCtx) |
| NSC Presence Check at NFC-DEP(Attention Command) at Int level. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_T5T_IsolatedEoF (void *compCtx) |
| It sends an isolated EoF when T5T protocol is selected. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_RfActivate (void *compCtx, ptxNSC_RfActiv_Param_t *rfActivParams) |
| NSC Rf Activate. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_RfDeactivate (void *compCtx, ptxNSC_Rf_Deact_Param_t *rfDeactParam) |
| NSC Deactivate entry function at Int level. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_Standby (void *compCtx, uint8_t powerMode) |
| NSC Standby/WakeUp entry function at Int level. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NscSoftReset (void *compCtx) |
| Nsc Soft Reset at Integration layer. | |
| PTX_LIBFUNC size_t | ptxTbInt_GetMtU (void *cInst) |
| Get Maximum Transfer Unit (bytes that can be received) by the Stack. This setting is platform dependent. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_SetMtU (ptxTbInt_t *cInst, size_t MaxTransferUnit) |
| Set Maximum Unit Transfer(bytes that can be received) by the Stack. This setting is platform dependent. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_SetEMVParams (void *compCtx, ptxNSC_Discover_Param_t *discoverParams) |
| Sets up RF-Discover parameter structure for EMVCo. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_SetNFCForumParams (void *compCtx, ptxNSC_Discover_Param_t *discoverParams) |
| Sets up RF-Discover parameter structure for NFC Forum. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_GetRevisionInfo (void *compCtx, ptxNSC_RevisionType_t revisionType, uint32_t *revisionInfo) |
| Get various revisions of system (C-Stack, DFY-Code/-Toochain, Chip-ID, Local changes etc. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_WriteSystemConfig (void *compCtx, ptxNSC_System_t *sysConfigParams) |
| NSC System Config Set. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_ReadSystemConfig (void *compCtx, ptxNSC_System_t *sysConfigParams) |
| NSC System Config Get. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_ReadTempSensor (void *compCtx) |
| Reads current internal temperature sensor value. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_NSC_LoadSystemConfig (void *compCtx, ptxNSC_System_t *sysConfigParams, ptxNSC_System_LoadParams_t loadType) |
| Load NSC System Config. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_GPIO_Config (void *compCtx, uint8_t gpioNr, uint8_t gpioMode, uint8_t gpioFlags) |
| Configures a selected GPIO-pin to work as input or output. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_GPIO_Write (void *compCtx, uint8_t gpioNr, uint8_t gpioValue) |
| Writes the selected GPIO-pin high or low. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_GPIO_Read (void *compCtx, uint8_t gpioNr) |
| Reads the current value of a selected GPIO-pin. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_GetDeactivateTimeout (void *compCtx, uint32_t *currentTimeout) |
| Function to retrieve the current timeout value in [ms] to wait for a NSC.RF_DEACTIVATE_RSP. | |
| PTX_LIBFUNC ptxStatus_t | ptxTbInt_SetDeactivateTimeout (void *compCtx, uint32_t *currentTimeout) |
| Function to set the current timeout value in [ms] to wait for a NSC.RF_DEACTIVATE_RSP. | |
| ptxStatus_t | ptxTbInt_BuildStackCommon (ptxTbInt_t *cInst, void *systemContext, ptxLog_t *log) |
| Common function for building the Stack. | |
| typedef struct ptxTbInt ptxTbInt_t |
This structure must be allocated initially: statically or using system-specific memory allocation.
| PTX_LIBFUNC ptxTbInt_t * ptxTbInt_Allocate | ( | void | ) |
Allocate memory for ptxTbInt_t - the main struct for the stack that has to be sent from caller in all the calls.
| PTX_LIBFUNC ptxStatus_t ptxTbInt_BuildStack | ( | ptxTbInt_t * | cInst, |
| void * | systemContext ) |
Build the stack.
| [in] | cInst | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | systemContext | Pointer to arbitrary system context, used for internal resource management in OSAL. |
| ptxStatus_t ptxTbInt_BuildStackCommon | ( | ptxTbInt_t * | cInst, |
| void * | systemContext, | ||
| ptxLog_t * | log ) |
Common function for building the Stack.
It can be called providing Log from outside or taking the Log from the integration component.
| [in] | cInst | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | systemContext | Pointer to arbitrary system context, used for internal resource management in OSAL. |
| [in] | log | Logger component instance to be used by the stack. If NULL, use logger instance from integration component. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_DestroyStack | ( | ptxTbInt_t * | cInst | ) |
Destroy the stack, except for basic objects such as LOG.
| [in] | cInst | Instance of the stack allocated by the system. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_DestroyStack_Finalize | ( | ptxTbInt_t * | cInst | ) |
Destroy the basic stack objects.
| [in] | cInst | Instance of the stack allocated by the system. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_DragonFlyActivation | ( | void * | compCtx | ) |
NSC DFY Activation entry function at Int level.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| PTX_LIBFUNC void ptxTbInt_Free | ( | ptxTbInt_t * | cInst | ) |
Free the memory previously allocated by ptxTbInt_t.
| [in] | cInst | Pointer to an allocated instance of ptxTbInt_t. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_GetDeactivateTimeout | ( | void * | compCtx, |
| uint32_t * | currentTimeout ) |
Function to retrieve the current timeout value in [ms] to wait for a NSC.RF_DEACTIVATE_RSP.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [out] | currentTimeout | Pointer to store the current timeout value. |
| ptxStatus_t ptxTbInt_GetIORQNtf | ( | void * | cpLayer, |
| ptxIoRq_t * | io_rq ) |
Integration get IO RQ Ntf (Not including NCI).
| [in] | cpLayer | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | io_rq | io_rq object already allocated allocated by ptxTbInt_Allocate. |
| void ptxTbInt_GetIORQNtfCompletion | ( | ptxIoRq_t * | ioCpl, |
| void * | cplLayer, | ||
| void * | data, | ||
| size_t | dataLength, | ||
| ptxStatus_t | cplStatus ) |
Completion function for ptxTbInt_GetIORQNtf.
Generic path, in case of NSC-triggered action (NTF).
| [in] | ioCpl | Pointer to the I/O request object. |
| [in] | cplLayer | Pointer to a component further up the stack. |
| [in] | data | Pointer to data to be processed on the completion function. |
| [in] | dataLength | Length of the data to be processed on the completion function. |
| [in] | cplStatus | Status of the I/O completion. |
| PTX_LIBFUNC size_t ptxTbInt_GetMtU | ( | void * | cInst | ) |
Get Maximum Transfer Unit (bytes that can be received) by the Stack. This setting is platform dependent.
| [in] | cInst | Pointer to a valid component object. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_GetRevisionInfo | ( | void * | compCtx, |
| ptxNSC_RevisionType_t | revisionType, | ||
| uint32_t * | revisionInfo ) |
Get various revisions of system (C-Stack, DFY-Code/-Toochain, Chip-ID, Local changes etc.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | revisionType | Type of Revision. |
| [out] | revisionInfo | Revision information.. |
| PTX_LIBFUNC const char * ptxTbInt_GetVersionDescription | ( | void | ) |
Get Version Description.
| PTX_LIBFUNC ptxStatus_t ptxTbInt_GPIO_Config | ( | void * | compCtx, |
| uint8_t | gpioNr, | ||
| uint8_t | gpioMode, | ||
| uint8_t | gpioFlags ) |
Configures a selected GPIO-pin to work as input or output.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | gpioNr | GPIO number. |
| [in] | gpioMode | GPIO configuration (input, output, special function). |
| [in] | gpioFlags | GPIO flags (e.g. enable internal pull-up resistor, enable high driver strength). |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_GPIO_Read | ( | void * | compCtx, |
| uint8_t | gpioNr ) |
Reads the current value of a selected GPIO-pin.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | gpioNr | GPIO number. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_GPIO_Write | ( | void * | compCtx, |
| uint8_t | gpioNr, | ||
| uint8_t | gpioValue ) |
Writes the selected GPIO-pin high or low.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | gpioNr | GPIO number. |
| [in] | gpioValue | Value to set (!= 0 = High, 0 = Low). |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_CltMsg | ( | void * | compCtx, |
| uint8_t * | pld, | ||
| uint8_t * | pldPar, | ||
| size_t | length ) |
NSC Clt Msg entry function at Int level.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | pld | Array of bytes of payload. |
| [in] | pldPar | Array of parity bits (in byte form). |
| [in] | length | Length of pld and pldPar. pld and shall have same length. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_DataMsg | ( | void * | compCtx, |
| uint8_t * | payload, | ||
| size_t | length, | ||
| uint8_t | isChained ) |
NSC Data Msg entry function at Int level.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | payload | Payload data to send to device. |
| [in] | length | Length of payload. |
| [in] | isChained | 1 if it is chained data. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_Init | ( | void * | compCtx, |
| ptxNSC_Init_Param_t * | initParams ) |
NSC Init entry function at Int level.
In this function entry params are taken from a buffer. This buffer should contain all the parameters used in NSC_INIT_CMD in the order specified in specs.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | initParams | Pointer to a struct containing NSC_INIT parameters. If NULL, builder fn is called. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_LoadSystemConfig | ( | void * | compCtx, |
| ptxNSC_System_t * | sysConfigParams, | ||
| ptxNSC_System_LoadParams_t | loadType ) |
Load NSC System Config.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [out] | sysConfigParams | Pointer to a struct that will get System parameters |
| [in] | loadType | Source of config parameters: file or default hardcoded values. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_PresCheck_IsoDep_EmptyBlock | ( | void * | compCtx | ) |
NSC Presence Check at ISO-DEP(Empty I-Frame) at Int level.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_PresCheck_IsoDep_Nack | ( | void * | compCtx | ) |
NSC Presence Check at ISO-DEP(Nack) at Int level.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_PresCheck_NfcDep_AttentionCmd | ( | void * | compCtx | ) |
NSC Presence Check at NFC-DEP(Attention Command) at Int level.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_Read | ( | void * | compCtx, |
| uint16_t * | address, | ||
| size_t | addressLen, | ||
| ptxNSC_ReadCmd_Type_t | typeRd ) |
NSC Read entry function at Int level.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | address | Address where application wants to read from. |
| [in] | addressLen | Number of Address where application wants to read from. |
| [in] | typeRd | Type of read operation. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_ReadSystemConfig | ( | void * | compCtx, |
| ptxNSC_System_t * | sysConfigParams ) |
NSC System Config Get.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [out] | sysConfigParams | Pointer to a struct containing System parameters |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_ReadTempSensor | ( | void * | compCtx | ) |
Reads current internal temperature sensor value.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_RfActivate | ( | void * | compCtx, |
| ptxNSC_RfActiv_Param_t * | rfActivParams ) |
NSC Rf Activate.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | rfActivParams | Pointer to a struct containing NSC_RF_ACTIVATE parameters. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_RfConfig | ( | void * | compCtx, |
| ptxNSC_RfConfig_Param_t * | rfConfigParams ) |
NSC Rf Config.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | rfConfigParams | Pointer to a struct containing NSC_RF_CONFIG parameters. If NULL builder fn is called. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_RfConfig_NVMLoad | ( | void * | compCtx, |
| ptxNSC_RfConfig_Param_t * | rfConfigParams ) |
Loads the RF-Configuration from NVM.
| [in] | compCtx | Pointer to an initialized instance of the main component in the stack. |
| [in] | rfConfigParams | Pointer to RF-Configuration parameters. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_RfConfig_NVMUnLoad | ( | void * | compCtx, |
| ptxNSC_RfConfig_Param_t * | rfConfigParams ) |
(Un-)Loads the RF-Configuration from internal memory.
| [in] | compCtx | Pointer to an initialized instance of the main component in the stack. |
| [in] | rfConfigParams | Pointer to RF-Configuration parameters. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_RfDeactivate | ( | void * | compCtx, |
| ptxNSC_Rf_Deact_Param_t * | rfDeactParam ) |
NSC Deactivate entry function at Int level.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | rfDeactParam | Pointer to an rf Deact Parameters. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_RfDiscover | ( | void * | compCtx, |
| ptxNSC_Discover_Param_t * | discoverParams ) |
NSC Discover entry function at Int level.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | discoverParams | Pointer to discover parameters. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_RfDiscover_EmvCo_TRANSAC_A | ( | void * | compCtx | ) |
NSC Rf Discover entry function at Int level, enabling the TRANSAC_A feature.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_RfDiscover_EmvCo_TRANSAC_B | ( | void * | compCtx | ) |
NSC Rf Discover entry function at Int level, enabling the TRANSAC_B feature.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_RfSetParams | ( | void * | compCtx, |
| ptxNsc_RfPar_t * | rfPar, | ||
| size_t | rfParLen ) |
NSC RF SET PARAMETER entry function at Int level.
This function allows the application to write one, some or all available parameters for NSC_RF_SET_PARAMETERS
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | rfPar | Pointer to an array of Rf parameters available. |
| [in] | rfParLen | Length of /ref rfPar. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_RfTestRun | ( | void * | compCtx, |
| 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.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | rfTestId | Test Identifier. |
| [in] | rfTestParams | Test Parameters. |
| [in] | rfTestParamsLen | Number of Test Parameters. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_RfTestStop | ( | void * | compCtx | ) |
Function for NSC_RF_STOP_CMD.
This function builds the NSC_RF_STOP_CMD accordingly to inputParams and send it to the chip.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_SetEMVParams | ( | void * | compCtx, |
| ptxNSC_Discover_Param_t * | discoverParams ) |
Sets up RF-Discover parameter structure for EMVCo.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | discoverParams | Pointer to discover parameters. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_SetField | ( | void * | compCtx, |
| uint8_t | enabled ) |
Turns the RF-field of the Reader on or off.
Attention: This function shall be used for test purposes only (!). It shall not be mixed with other RF-functions from this library (e.g. activate Polling etc.). Once the RF-field has been turned on, it shall be disabled afterwards again by using this function call.
| [in] | compCtx | Pointer to an initialized instance of the main component in the stack. |
| [in] | enabled | If set to != 0, the RF-field gets enabled, disabled otherwise. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_SetNFCForumParams | ( | void * | compCtx, |
| ptxNSC_Discover_Param_t * | discoverParams ) |
Sets up RF-Discover parameter structure for NFC Forum.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | discoverParams | Pointer to discover parameters. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_Standby | ( | void * | compCtx, |
| uint8_t | powerMode ) |
NSC Standby/WakeUp entry function at Int level.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | powerMode | 1 = Standby, 0 = WakeUp. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_T5T_IsolatedEoF | ( | void * | compCtx | ) |
It sends an isolated EoF when T5T protocol is selected.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_Write | ( | void * | compCtx, |
| uint16_t * | address, | ||
| size_t | addressLen, | ||
| uint8_t * | value, | ||
| size_t | valueLen, | ||
| ptxNSC_WriteCmd_Type_t | typeWr ) |
NSC Write entry function at integration level.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | address | Buffer with the addresses to write to. |
| [in] | addressLen | Number of addresses to write to. |
| [in] | value | Buffer with the values to write. |
| [in] | valueLen | Number of values to write. |
| [in] | typeWr | Type of Write operations. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSC_WriteSystemConfig | ( | void * | compCtx, |
| ptxNSC_System_t * | sysConfigParams ) |
NSC System Config Set.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | sysConfigParams | Pointer to a struct containing System parameters |
| void ptxTbInt_NSCCompletion | ( | ptxIoRq_t * | ioCpl, |
| void * | cplLayer, | ||
| void * | data, | ||
| size_t | dataLength, | ||
| ptxStatus_t | cplStatus ) |
Internal default completion function general purpose NSC.
| [in] | ioCpl | Pointer to the I/O request object. |
| [in] | cplLayer | Pointer to a component further up the stack. |
| [in] | data | Pointer to data to be processed on the completion function. |
| [in] | dataLength | Length of the data to be processed on the completion function. |
| [in] | cplStatus | Status of the I/O completion. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSCFwDownloader | ( | void * | compCtx, |
| uint8_t * | pData, | ||
| int | length ) |
NSC download firmware image to the chip.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | pData | Pointer to data containing fw image. Already allocated. |
| [in] | length | Length of the data of the fw image. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSCGetMiscRFConfig | ( | void * | compCtx, |
| uint8_t * | configBuffer, | ||
| size_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.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | configBuffer | Pointer to buffer where Misc. settings should be stored. |
| [in,out] | configBufferLen | Size of configBuffer (in), Length of stored Misc. settings (out). |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NSCGetMode | ( | void * | compCtx, |
| uint8_t * | mode ) |
NSC Get State.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | mode | Pointer to NSC state / mode (Hardware Mode = 0, System Mode = 1). |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_NscSoftReset | ( | void * | compCtx | ) |
Nsc Soft Reset at Integration layer.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| void ptxTbInt_ReturnIoRqItem | ( | ptxTbInt_t * | cInst, |
| ptxIoRq_t * | ioCpl, | ||
| ptxStatus_t | reqStatus ) |
Internal function to return I/O request objects in case of non-pending status.
This releases internal buffer item (removes from the list) and frees the memory allocated for the object.
| [in] | cInst | Pointer to the allocated integration component structure. |
| [in,out] | ioCpl | Pointer to the I/O request object to be freed. |
| [in] | reqStatus | If reqStatus equals ptxStatus ptxStatus_Pending, ioCpl is not returned (freed). Otherwise, ioCpl is returned - memory allocated by that object is freed. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_SetDeactivateTimeout | ( | void * | compCtx, |
| uint32_t * | currentTimeout ) |
Function to set the current timeout value in [ms] to wait for a NSC.RF_DEACTIVATE_RSP.
| [in] | compCtx | Instance of the stack allocated by ptxTbInt_Allocate. |
| [in] | currentTimeout | Pointer to variable holding new timeout value. If set to NULL, default value will be used. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_SetMtU | ( | ptxTbInt_t * | cInst, |
| size_t | MaxTransferUnit ) |
Set Maximum Unit Transfer(bytes that can be received) by the Stack. This setting is platform dependent.
| [in] | cInst | Pointer to a valid component object. |
| [in] | MaxTransferUnit | Number of bytes that can be received in a single transfer by the stack. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_SetParameter | ( | ptxTbInt_t * | cInst, |
| ptxNscFactory_P_t | parType, | ||
| uint8_t * | parBuf, | ||
| uint32_t | parLenOrValue ) |
Set Factory Operating Parameter.
Set an operating parameter for the factory. This interface is intended to apply parameters that will be propagated to the individual components once they get instantiated. Call the function before ptxNscFactory_BuildStack for parameters needed by the components to properly initialize.
| [in] | cInst | Pointer to the allocated integration component structure. |
| [in] | parType | Type of the parameter to set. |
| [in] | parBuf | Use this to pass longer data types or strings (e.g. "/dev/ttyUSB0"). Set to NULL when not applicable. Caution: String zero-termination is not handled, always use the next parameter for string length. |
| [in] | parLenOrValue | Buffer length or integer parameter.
|
| PTX_LIBFUNC ptxStatus_t ptxTbInt_SetUp | ( | void * | compCtx, |
| pptxInt_Completion_t | complFn, | ||
| pptxInt_CompletionNTF_t | complFnNtf, | ||
| void * | sysCtx ) |
Set up the stack.
| [in] | compCtx | Instance of the stack allocated by the software that integrates the stack. |
| [in] | complFn | Callback function pointer to handle Responses. |
| [in] | complFnNtf | Callback function pointer to handle Notifications. |
| [in] | sysCtx | Pointer to arbitrary system context. May be NULL on some systems. |
| PTX_LIBFUNC ptxStatus_t ptxTbInt_ShutDown | ( | void * | compCtx | ) |
Shut down the stack.
| [in] | compCtx | Instance of the stack allocated by the software that integrates the stack. |