Example code to configure HAL and BAL for Pegoda 2 (RD710) reader.
More...
|
| | RD710 Initialization |
| | Example code to configure PAL 3A, 4A, 4, MIFARE and SLI15693 to work in RD710 mode. This is valid for RD710 / CM1 reader only.
|
| |
| | Software Initialization |
| | Example code to configure PAL 3A, 4A, 4, MIFARE and SLI15693 to work in software mode.
|
| |
Example code to configure HAL and BAL for Pegoda 2 (RD710) reader.
#define CHECK_SUCCESS(x) \
if ( (x) != PH_ERR_SUCCESS ) \
{ \
printf ( "\n\n" ); \
printf ( "An error occurred: (0x%04X)\n", (x) ); \
printf ( "Pressing any key will exit the demo.\n" ); \
_getch (); \
return 0; \
}
void* pBal_Generic = NULL;
void* pHal_Generic = NULL;
CHECK_SUCCESS ( wStatus );
CHECK_SUCCESS ( wStatus );
CHECK_SUCCESS ( wStatus );
CHECK_SUCCESS ( wStatus );
CHECK_SUCCESS ( wStatus );
wStatus =
phhalHw_Rd710_Init ( &stHal_Rd710,
sizeof ( stHal_Rd710 ), &stBal_Rd710, 0, aTx_HalBuffer,
sizeof ( aTx_HalBuffer ),
aRx_HalBuffer, sizeof ( aRx_HalBuffer ) );
CHECK_SUCCESS ( wStatus );
CHECK_SUCCESS ( wStatus );
pBal_Generic = &stBal_Rd710;
pHal_Generic = &stHal_Rd710;