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.

CC1352R: How to use macRadioWakeupCb

Part Number: CC1352R


Hello,

I am using cc1352R with SDK 3.40

I am using 15.4 sensor oad offchip secure example.

For my application i need some notify function which tells me radio is on or power_up.

I found this function macRadioWakeupCb in mac_radio.h file.

But I am not understanding how to use this function.

So, Can you please guide me, how to use this function in TI 15.4 sensor_oad example.

Thank you,

Kartik.

  • Hey Kartik,

    The mac_radio.h macRadioWakeupCb is an internal callback, and not accessible in the application layer.

    Here's some suggestions on where to start. Take a look at api_mac.c, and navigate to processIncomingICallMsg(). Here, you can see all the MAC_xxx events are being handled, and the appropriate callback is being sent back up to the application layer.

    I have not gotten a chance to test this, but here's what I would do. In this function, add a case for MAC_PWR_ON_CNF and add the necessary callbacks to your application. Every time the mac is powered on or woken up, it should process this callback.