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

Get TWI event address ( TWI + PPI)

Hello all.

I need to detect when  data is received on RX. I am planning to use it with PPI channel so i could instantiate a task to it. 

I tried to use  nrf_twi_event_address_get to get the address of event so i could assign to a PPI channel. But Kiel warns me that  Implicit declaration of function is invalid, and give me the error:  #20: identifier "nrf_drv_twi_event_address_get" is undefined, even though I have nrf_drv_twi, /hal/nrf_twi added in the path. 

So how can i get the address of TWI events and use it with PPI? 

Thank you

Parents Reply
  • Hello Dmitry, thanks for reply.

    My bad, replaced  nrf_drv_twi_event_address_get to nrf_twi_event_address_get and got new errors

    Any help?


    ..\..\..\main.c(499): error: #167: argument of type "const nrf_drv_twi_t *" is incompatible with parameter of type "NRF_TWI_Type *"
    uint32_t *twi_evt = nrf_twi_event_address_get(&m_twi,NRF_TWI_EVENT_BB);
    ..\..\..\main.c(540): error: #167: argument of type "uint32_t *" is incompatible with parameter of type "uint32_t"
    err_code = nrf_drv_ppi_channel_assign(ppi_channel_5, twi_evt,

Children
No Data
Related