1 Reply Latest reply on Oct 31, 2015 1:46 PM by bmah

    advertising transmit interrupt

    tom.2

      Hi,

         

      I'm trying to determine exactly when advertisement packets are transmitted. In the Register Technical Reference Manual I found the ADV_TX_INTR bit within BLE_BLELL_ADV_INTR, but it doesn't seem to be working. I've set the ADV_TX_EN bit within BLE_BLELL_ADV_CONFIG. Has anyone else gotten this to work?

         

      Thanks,

         

      Tom

        • 1. Re: advertising transmit interrupt
          bmah

          First enable ADV_TX_EN  in BLE_BLELL_ADV_CONFIG:

             

          CY_SET_REG32(CYREG_BLE_BLELL_ADV_CONFIG,CY_GET_REG32(CYREG_BLE_BLELL_ADV_CONFIG)|0x00000004);

             

          Now start the advertisement inside CYBLE_EVT_STACK_ON using CyBle_GappStartAdvertisement(CYBLE_ADVERTISING_FAST);

             

          This should set the ADV_TX_INTR bit in BLE_BLELL_ADV_INTR once the ADV packet is transmitted