2 Replies Latest reply on Jan 8, 2018 6:15 AM by juen.mitchell_1610531

    Using CyBle_RegisterBlessInterruptCallback()

    juen.mitchell_1610531

      Using CyBle_RegisterBlessInterruptCallback() I want to trigger a interrupt after an advertising message has been transmitted.

       

      So I setup a call back function with:-

       

      static CYBLE_BLESS_EVENT_PARAM_T evt_param;

       

      evt_param.BlessStateMask = CYBLE_ISR_BLESS_ADV_CLOSE;

      evt_param.bless_evt_app_cb = BlessInterruptHandler;

       

      ret = CyBle_RegisterBlessInterruptCallback(&evt_param);

       

      //No error is reported

      //And I handle the callback function with:-

       

       

      void BlessInterruptHandler(uint32 event, void *eventparam);

       

       

       

      void BlessInterruptHandler(uint32 event, void *eventparam)

      {  

               CY_NOP;

          switch(event)

          {

                        case CYBLE_ISR_BLESS_ADV_CLOSE: break; //set flag

          }

      }

       

      But it is not working for me. What am I missing?