This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/AWR1243BOOST: A question about the function of HostIrqHandler in the mmwave example

Part Number: AWR1243BOOST
Other Parts Discussed in Thread: MSP430F5529, AWR1243

Tool/software: TI C/C++ Compiler

Hi TI,There is a question about the  function of HostIrqHandler and other function related with it.

I have known the MMWL_powerOnMaster register one  HostIrqHandler, and when there is a hostirq signal,program will call HostIrqHandler to handle this interrupt.

If I connect  multiple device, do I need to register many HostIrqHandler? Or one HostIrqHandler could handle all device request?

Looking forward to your reply.

  • Hi

    Do you want to create a cascade system?

    Thank you

    Cesar hi

  • Yes, I'm trying to use msp430f5529 control two awr1243. When I execute the poweronmaster function, there are two device enabled.So do I  need to register two HostIrqHandler? Or all hostIrq signal call one HostIrqHandler?

  • Hello,

    mmWaveLink can handle max of four device connections at a time. For any no. of AWR1243 device connection you need to register single instance of all the callbacks with mmWaveLink. But you need to pass the deviceIndex to this function callback which corresponds to the specific AWR1243's GPIO(hostIRQ) interrupt.

     

    Regards,

    Jitendra

  • Thank you for your reply. I see that the interrupt callback function takes two arguments parameters, one of them is deviceIndex. So can I call the same interrupt function in different HostIrq interrupts, except that deviceIndex is different?

    For example, when the HostIrq1 interrupt occurs,I call the radarGpioIntrHandler and the deviceIndex is one, when the HostIrq1 interrupt occurs, I call the same radarGpioIntrHandler and the deviceIndex is two.

    Looking forward to your reply.

  • That is the intention to use single callback and different deviceIndex.

    You are right with your understanding.

     

    Regards,

    Jitendra