Example code to configure HAL and BAL for Rd70x (Pegoda 1) reader.
More...
Example code to configure HAL and BAL for Rd70x (Pegoda 1) 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 );
wStatus =
phhalHw_Rd70x_Init ( &stHal_Rd70x,
sizeof ( stHal_Rd70x ), &stBal_Rd70x, aTx_HalBuffer,
sizeof ( aTx_HalBuffer ), aRx_HalBuffer, sizeof ( aRx_HalBuffer ) );
CHECK_SUCCESS ( wStatus );
pBal_Generic = &stBal_Rd70x;
pHal_Generic = &stHal_Rd70x;