AnsweredAssumed Answered

Can we call USBD_API->hw->WriteEP from outside EPHandler?

Question asked by S S on Apr 19, 2019
Latest reply on Apr 25, 2019 by S S


In the HID generic sample code the call that sends input report through interrupt pipe

(USBD_API->hw->WriteEP(hUsb, pHidCtrl->epin_adr, inbuffer, 64)) is inside EPHandler.

Suppose we have an input report we want to send through interrupt pipe can we call this function (WriteEP) from outside the EPHandler? The parameter  pHidCtrl, hUSB are from  EPHandler .