This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is it possible to call/connect nrfx_uarte_rx_abort using a ppi?

Hi,

Is it possible to connect the nrfx_uarte_rx_abort function? There are two functions inside it,

void nrfx_uarte_rx_abort(nrfx_uarte_t const * p_instance)
{
    uarte_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];

    // Short between ENDRX event and STARTRX task must be disabled before
    // aborting transmission.
    if (p_cb->rx_secondary_buffer_length != 0)
    {
        nrf_uarte_shorts_disable(p_instance->p_reg, NRF_UARTE_SHORT_ENDRX_STARTRX);
    }
    nrf_uarte_task_trigger(p_instance->p_reg, NRF_UARTE_TASK_STOPRX);
    NRFX_LOG_INFO("RX transaction aborted.");
}

Parents Reply Children
No Data
Related