|
Renesas PTX1xxR IoT-Reader API (non-OS) Version 7.3.1
Renesas Software Stack for IoT-Reader Applications (non-OS)
|

Data Structures | |
| struct | ptxHce_DiscConfig_t |
| HCE RF-Discovery Configuration for Listen-Mode. More... | |
| struct | ptxHce_EventRecord_t |
| HCE Event Record Type. More... | |
| struct | ptxHce_EventQueue_t |
| HCE Event Queue. More... | |
| struct | ptxHce |
| HCE Main Structure (Context). More... | |
Typedefs | |
| typedef enum ptxHce_EventType | ptxHce_EventType_t |
| HCE Event Identifiers. | |
| typedef struct ptxHce | ptxHce_t |
| HCE Main Structure (Context). | |
Enumerations | |
| enum | ptxHce_RfProtocol_t { HceRfProt_Undefined = 0x00 , HceRfProt_T2T = 0x02 , HceRfProt_IsoDep = 0x04 } |
| HCE RF-Protocol Type(s) | |
| enum | ptxHce_EventQueueDimensions_t { e_MaxNrOfEventRecords = 32 , e_SizeOfShortMsgBuffer = 3 , e_SizeOfActivationBuffer = 16 } |
| HCE Event Queue Management (Dimensions) | |
| enum | ptxHce_EventQueueRanges_t { e_EvtRecordIndexMin = 0 , e_EvtRecordIndexMax = e_MaxNrOfEventRecords-1 , e_EvtMaxNrOfRecords , e_EvtRecIndexNotSet } |
| HCE Event Queue Management (Ranges) | |
| enum | ptxHce_EventType { HceEvent_ExtFieldOn , HceEvent_ExtFieldOff , HceEvent_Activated_ListenA , HceEvent_Data , HceEvent_Deactivated , HceEvent_NoEvent } |
| HCE Event Identifiers. | |
Functions | |
| ptxStatus_t | ptxHce_Init (ptxHce_t *hce, struct ptxPlat *plat, struct ptxNSC *nsc, uint8_t *appRxBuffer, uint16_t appRxBufferSize) |
| This function initializes the Host Card Emulation Component (HCE). | |
| ptxStatus_t | ptxHce_Deinit (ptxHce_t *hce) |
| This function De-initializes the Host Card Emulation Component. | |
| ptxStatus_t | ptxHce_Get_Event (ptxHce_t *hce, ptxHce_EventRecord_t **event) |
| This function allows the user to request latest event notification data received from the PTX card emulation device. | |
| ptxStatus_t | ptxHce_Send_Data (ptxHce_t *hce, uint8_t *tx, uint32_t txLength) |
| This function allows the currently activated card to send data to a nearby card reader. | |
| ptxStatus_t | ptxHce_ReserveEventRecord (ptxHce_t *hce, ptxHce_EventRecord_t **evtRecord, uint16_t *evtRecordIndex) |
| Reserves an Event Record at the Tail of the Event Queue. | |
| ptxStatus_t | ptxHce_AddNewEventPending (ptxHce_t *hce, uint16_t recordIndex) |
| Adds a new pending Event Record at the Tail of the Event Queue. | |
NSC DEACTIVATE-Reasons. | |
| #define | PTX_HCE_DEACTIVATE_REASON_DESELECT (uint8_t)0x01 |
| #define | PTX_HCE_DEACTIVATE_REASON_RELEASE (uint8_t)0x02 |
| #define | PTX_HCE_DEACTIVATE_REASON_FIELD_OFF (uint8_t)0x03 |
| #define PTX_HCE_DEACTIVATE_REASON_DESELECT (uint8_t)0x01 |
HCE Deactivate reason: Deselect
| #define PTX_HCE_DEACTIVATE_REASON_FIELD_OFF (uint8_t)0x03 |
HCE Deactivate reason: Field off
| #define PTX_HCE_DEACTIVATE_REASON_RELEASE (uint8_t)0x02 |
HCE Deactivate reason: Release
| ptxStatus_t ptxHce_AddNewEventPending | ( | ptxHce_t * | hce, |
| uint16_t | recordIndex ) |
Adds a new pending Event Record at the Tail of the Event Queue.
| [in] | hce | Pointer to an initialized instance of the HCE component. |
| [out] | recordIndex | Pointer to the Index of the added Event |
| ptxStatus_t ptxHce_Deinit | ( | ptxHce_t * | hce | ) |
This function De-initializes the Host Card Emulation Component.
| [in] | hce | Pointer to an initialized instance of the HCE component. |
| ptxStatus_t ptxHce_Get_Event | ( | ptxHce_t * | hce, |
| ptxHce_EventRecord_t ** | event ) |
This function allows the user to request latest event notification data received from the PTX card emulation device.
GET EVENT
Events relevant to the HCE application are;
| [in] | hce | Pointer to an initialized instance of the HCE component. |
| [in,out] | event | Reference to an event record supplied by the AP into which event details can be entered. |
| ptxStatus_t ptxHce_Init | ( | ptxHce_t * | hce, |
| struct ptxPlat * | plat, | ||
| struct ptxNSC * | nsc, | ||
| uint8_t * | appRxBuffer, | ||
| uint16_t | appRxBufferSize ) |
This function initializes the Host Card Emulation Component (HCE).
| [in] | hce | Pointer to an allocated instance of the HCE component. |
| [in] | plat | Pointer to an initialized instance of the PLAT component. |
| [in] | nsc | Pointer to an initialized instance of the NSC component. |
| [in] | appRxBuffer | Pointer to an application buffer which is used to receive incoming RF-data. |
| [in] | appRxBufferSize | Size of the application buffer. |
| ptxStatus_t ptxHce_ReserveEventRecord | ( | ptxHce_t * | hce, |
| ptxHce_EventRecord_t ** | evtRecord, | ||
| uint16_t * | evtRecordIndex ) |
Reserves an Event Record at the Tail of the Event Queue.
| [in] | hce | Pointer to an initialized instance of the HCE component. |
| [in] | evtRecord | Reference to the Event Record to be reserved at the end of the Event Queue |
| [out] | evtRecordIndex | Index of the reserved event |
| ptxStatus_t ptxHce_Send_Data | ( | ptxHce_t * | hce, |
| uint8_t * | tx, | ||
| uint32_t | txLength ) |
This function allows the currently activated card to send data to a nearby card reader.
SEND DATA
| [in] | hce | Pointer to an initialized instance of the HCE component. |
| [in] | tx | User buffer containing the 'raw' RF data message to send. |
| [in] | txLength | Length of data to send which is the actual size of the transmit buffer. |