/* Unloads the PCAN-Basic DLL and resets the API function pointers.  */
static void PCanUsbLibUnloadDll(void)
/* Unloads the PCAN-Basic DLL and resets the API function pointers.  */
static void PCanUsbLibUnloadDll(void)
{
  pCanUsbLibFuncInitializePtr = NULL;
  pCanUsbLibFuncUninitializePtr = NULL;
  pCanUsbLibFuncGetStatusPtr = NULL;
  pCanUsbLibFuncSetValuePtr = NULL;
  pCanUsbLibFuncReadPtr = NULL;
  pCanUsbLibFuncWritePtr = NULL;
  pCanUsbLibFuncFilterMessagesPtr = NULL;
  if (pCanUsbDllHandle != NULL) 
  {
    (void)FreeLibrary(pCanUsbDllHandle);
    pCanUsbDllHandle = NULL;
  }
}