Lines Matching +full:no +full:- +full:legacy +full:- +full:irq
2 * Copyright (c) 2018-2019 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
69 * RS-485 half-duplex. This error is only valid on UARTs that
79 UART_CFG_PARITY_NONE, /**< No parity */
111 UART_CFG_FLOW_CTRL_NONE, /**< No flow control */
129 * @defgroup uart_interrupt Interrupt-driven UART API
161 * - Provide second buffer using uart_rx_buf_rsp, when first buffer is
163 * - Ignore the event, this way when current buffer is filled
168 * is counted from last byte received i.e. if no data was received, there
171 * no longer used by the driver. It will immediately follow #UART_RX_RDY event.
176 * If no second buffer was specified receiving is stopped and
214 * - When RX timeout occurred, and data was stored in provided buffer.
216 * - When provided buffer is full.
217 * - After uart_rx_disable().
218 * - After stopping due to external event (#UART_RX_STOPPED).
234 * @brief Buffer is no longer used by UART driver.
278 /** @brief Pointer to buffer that is no longer in use. */
328 * @retval 0 If no error was detected.
330 * @retval -ENOSYS If not implemented.
345 * calling thread. It returns -1, otherwise. This function is a
346 * non-blocking call.
352 * @retval -1 If no character was available to read (i.e. the UART
354 * @retval -ENOSYS If the operation is not implemented.
355 * @retval -EBUSY If async reception was enabled using @ref uart_rx_enable
360 * @brief Read a 16-bit datum from the device for input.
363 * receiver has valid data, it reads a 16-bit datum from the device,
365 * calling thread. It returns -1, otherwise. This function is a
366 * non-blocking call.
369 * @param p_u16 Pointer to 16-bit data.
372 * @retval -1 If no data was available to read (i.e., the UART
374 * @retval -ENOTSUP If API is not enabled.
375 * @retval -ENOSYS If the function is not implemented.
376 * @retval -EBUSY If async reception was enabled using @ref uart_rx_enable
399 * @brief Write a 16-bit datum to the device for output.
402 * transmitter is not full, it writes a 16-bit datum to the data
427 * @retval -errno Negative errno code in case of failure.
428 * @retval -ENOSYS If configuration is not supported by device
430 * @retval -ENOTSUP If API is not enabled.
445 * @retval -errno Negative errno code in case of failure.
446 * @retval -ENOSYS If driver does not support getting current configuration.
447 * @retval -ENOTSUP If API is not enabled.
463 * (hardware-dependent). Likewise, *not* calling this function
474 * @retval -ENOSYS if this function is not supported
475 * @retval -ENOTSUP If API is not enabled.
485 * (hardware-dependent). Likewise, *not* calling this function
496 * @retval -ENOSYS If this function is not implemented
497 * @retval -ENOTSUP If API is not enabled.
507 * (hardware-dependent). It's unspecified whether "RX ready"
508 * condition as returned by uart_irq_rx_ready() is level- or
509 * edge- triggered. That means that once uart_irq_rx_ready() is
519 * @retval -ENOSYS If this function is not implemented.
520 * @retval -ENOTSUP If API is not enabled.
530 * (hardware-dependent). It's unspecified whether "RX ready"
531 * condition as returned by uart_irq_rx_ready() is level- or
532 * edge- triggered. That means that once uart_irq_rx_ready() is
542 * @retval -ENOSYS If this function is not implemented.
543 * @retval -ENOTSUP If API is not enabled.
566 * non-zero). This function must be called in a UART interrupt
578 * @retval -ENOSYS If this function is not implemented.
579 * @retval -ENOTSUP If API is not enabled.
613 * @retval -ENOSYS If this function is not implemented.
614 * @retval -ENOTSUP If API is not enabled.
622 * (i.e. uart_fifo_read() will succeed and return non-zero). This function
626 * condition as returned by this function is level- or edge- triggered (i.e.
627 * if this function returns true when RX FIFO is non-empty, or when a new
635 * @retval -ENOSYS If this function is not implemented.
636 * @retval -ENOTSUP If API is not enabled.
659 * @retval 1 If an IRQ is pending.
660 * @retval 0 If an IRQ is not pending.
661 * @retval -ENOSYS If this function is not implemented.
662 * @retval -ENOTSUP If API is not enabled.
675 * * For devices with auto-acknowledge of interrupt status on register
688 * @retval -ENOSYS If this function is not implemented.
689 * @retval -ENOTSUP If API is not enabled.
694 * @brief Set the IRQ callback function pointer.
696 * This sets up the callback for IRQ. When an IRQ is triggered,
705 * @retval -ENOSYS If this function is not implemented.
706 * @retval -ENOTSUP If API is not enabled.
713 * @brief Set the IRQ callback function pointer (legacy).
715 * This sets up the callback for IRQ. When an IRQ is triggered,
722 * @retval -ENOSYS If this function is not implemented.
723 * @retval -ENOTSUP If API is not enabled.
749 * @retval -ENOSYS If not supported by the device.
750 * @retval -ENOTSUP If API not enabled.
769 * @retval -ENOTSUP If API is not enabled.
770 * @retval -EBUSY If There is already an ongoing transfer.
771 * @retval -errno Other negative errno value in case of failure.
790 * @retval -ENOTSUP If API is not enabled.
791 * @retval -EBUSY If there is already an ongoing transfer.
792 * @retval -errno Other negative errno value in case of failure.
805 * @retval -ENOTSUP If API is not enabled.
806 * @retval -EFAULT There is no active transmission.
807 * @retval -errno Other negative errno value in case of failure.
827 * @retval -ENOTSUP If API is not enabled.
828 * @retval -EBUSY RX already in progress.
829 * @retval -errno Other negative errno value in case of failure.
852 * @retval -ENOTSUP If API is not enabled.
853 * @retval -EBUSY RX already in progress.
854 * @retval -errno Other negative errno value in case of failure.
875 * @retval -ENOTSUP If API is not enabled.
876 * @retval -EBUSY Next buffer already set.
877 * @retval -EACCES Receiver is already disabled (function called too late?).
878 * @retval -errno Other negative errno value in case of failure.
899 * @retval -ENOTSUP If API is not enabled
900 * @retval -EBUSY Next buffer already set.
901 * @retval -EACCES Receiver is already disabled (function called too late?).
902 * @retval -errno Other negative errno value in case of failure.
918 * @retval -ENOTSUP If API is not enabled.
919 * @retval -EFAULT There is no active reception.
920 * @retval -errno Other negative errno value in case of failure.
936 * @retval -ENOSYS If this function is not implemented.
937 * @retval -ENOTSUP If API is not enabled.
938 * @retval -errno Other negative errno value in case of failure.
951 * @retval -ENOSYS If this function is not implemented.
952 * @retval -ENOTSUP If API is not enabled.
953 * @retval -errno Other negative errno value in case of failure.
969 * @retval -ENOSYS If this function is not implemented.
970 * @retval -ENOTSUP If API is not enabled.
971 * @retval -errno Other negative errno value in case of failure.