Example code to configure HAL and BAL for serial based DUT readers. Readers like RC663 Plus (BlueBoard), PN5180, PN7462AU, Pegoda3, etc...
More...
Example code to configure HAL and BAL for serial based DUT readers. Readers like RC663 Plus (BlueBoard), PN5180, PN7462AU, Pegoda3, etc...
#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_DUT_Init ( &stHal_DUT,
sizeof ( stHal_DUT ), &stBal_Serial, 0, aTx_HalBuffer,
sizeof ( aTx_HalBuffer ),
aRx_HalBuffer, sizeof ( aRx_HalBuffer ) );
CHECK_SUCCESS ( wStatus );
CHECK_SUCCESS ( wStatus );
pBal_Generic = &stBal_Serial;
pHal_Generic = &stHal_DUT;