开发芯片:nRF 52832
开发环境:SDK-15.3
问题:nRF52832是否支持串口空闲中断?
我在协议栈提供的库中,看到了如下几个中断
typedef enum
{
APP_UART_DATA_READY, /**< An event indicating that UART data has been received. The data is available in the FIFO and can be fetched using @ref app_uart_get. */
APP_UART_FIFO_ERROR, /**< An error in the FIFO module used by the app_uart module has occured. The FIFO error code is stored in app_uart_evt_t.data.error_code field. */
APP_UART_COMMUNICATION_ERROR, /**< An communication error has occured during reception. The error is stored in app_uart_evt_t.data.error_communication field. */
APP_UART_TX_EMPTY, /**< An event indicating that UART has completed transmission of all available data in the TX FIFO. */
APP_UART_DATA, /**< An event indicating that UART data has been received, and data is present in data field. This event is only used when no FIFO is configured. */
} app_uart_evt_type_t;
问题2:如果没有串口空闲中断,有什么好的方法,能判断其他设备发送给我(nRF52832)串口的一包数据已经完毕了?(ps: 拒绝超时判断。也就是X毫秒后,没有APP_UART_DATA_READY事件,就认为串口已经发送完毕了。)。