How to get low level uart event in nrf connect ask?

Hi Nordic,

I am trying to implement a custom uart driver in my inter processor communication application. In the driver implementation I want to use uart with dma and I want to know  the TX_STARTED, END_TX, RX_STARTED, END_RX events. The nrf connect SDK has Zephyr uart driver but this doesn't forward all the above events to application. Are there any other drivers which I can use to achieve the above goal.

Regards,

Mohinish Naik

Parents
  • What are your concerns in using the Zephyr UART drivers ?

    Under the hood, the Zephyr UART driver will use DMA, and they will use Nordic's nrfx drivers, which will in turn uses nrfx uart TX_STARTED, END_TX, RX_STARTED, END_RX events on your behalf. In addition, they will give your appropriate callbacks when transmission is finished, and upon reception of data.

    I wouldn't see any value in starting from scratch to create effectively a new UART driver.

    To see Zephyr UART drivers in use, you can check out the NCS projects \nrf\samples\bluetooth\peripheral_uart and/or \nrf\samples\bluetooth\central_uart

Reply
  • What are your concerns in using the Zephyr UART drivers ?

    Under the hood, the Zephyr UART driver will use DMA, and they will use Nordic's nrfx drivers, which will in turn uses nrfx uart TX_STARTED, END_TX, RX_STARTED, END_RX events on your behalf. In addition, they will give your appropriate callbacks when transmission is finished, and upon reception of data.

    I wouldn't see any value in starting from scratch to create effectively a new UART driver.

    To see Zephyr UART drivers in use, you can check out the NCS projects \nrf\samples\bluetooth\peripheral_uart and/or \nrf\samples\bluetooth\central_uart

Children
No Data
Related