The following bit of code is from the Atmel AtUsbHid example. Can someone please explain the line DYNCALL(writeData)((UCHAR *)"12") which i believe is part of a DLL, maybe....
I know the code turns on and off a LED but i want to know how the code works....
void CUsbHidDemoCodeDlg::OnLed2()
{
if(Led2 == false) {
Led2 = true;
m_Led2.SetWindowText(_T("LED 2 ON"));
DYNCALL(writeData)((UCHAR *)"12");
}
else {
Led2 = false;
m_Led2.SetWindowText(_T("LED 2 OFF"));
DYNCALL(writeData)((UCHAR *)"02");
}
}
Thanks
Don