pub unsafe extern "C" fn MSS_UART_disable_irq(
this_uart: *mut mss_uart_instance_t,
irq_mask: mss_uart_irq_t,
)Expand description
/ /** The MSS_UART_disable_irq() function disables the MSS UART interrupts specified by the irq_mask parameter. The irq_mask parameter identifies the MSS UART interrupts by bit position, as defined in the interrupt enable register (IER) of MSS UART. The MSS UART interrupts and their identifying bit positions are as follows: when an irq_mask bit position is set to 1, this function disables the corresponding MSS UART interrupt in the IER register. When an irq_mask bit position is set to 0, the state of the corresponding interrupt remains unchanged in the IER register.
@param this_uart The this_uart parameter is a pointer to an mss_uart_instance_t structure that identifies the MSS UART hardware block performing the requested function. There are ten such data structures. The data structures from g_mss_uart0_lo to g_mss_uart4_lo are associated with MSS UART0 to MSS UART4 when they are connected on the AXI switch slave 5 (main APB bus). The data structures g_mss_uart0_hi to g_mss_uart4_hi are associated with MSS UART0 to MSS UART4 when they are connected on the AXI switch slave 6 (AMP APB bus). This parameter must point to one of these ten global data structure defined within the UART driver. Note: If you are using the UART on the AMP APB bus, the hardware configuration to connect UART on AMP APB bus must already be done by the application using SYSREG registers before initializing the UART instance structure.
@param irq_mask The irq_mask parameter is used to select which of the MSS UART’s interrupts you want to disable. The allowed value for the irq_mask parameter is one of the following constants or a bitwise OR of more than one:
- MSS_UART_RBF_IRQ (bit mask = 0x001)
- MSS_UART_TBE_IRQ (bit mask = 0x002)
- MSS_UART_LS_IRQ (bit mask = 0x004)
- MSS_UART_MS_IRQ (bit mask = 0x008)
- MSS_UART_RTO_IRQ (bit mask = 0x010)
- MSS_UART_NACK_IRQ (bit mask = 0x020)
- MSS_UART_PIDPE_IRQ (bit mask = 0x040)
- MSS_UART_LINB_IRQ (bit mask = 0x080)
- MSS_UART_LINS_IRQ (bit mask = 0x100)
@return This function does not return a value.
@example @code #include “mss_uart.h”
int main(void) { uint8_t tx_buff[10] = “abcdefghi”;
MSS_UART_init(&g_mss_uart0_lo, MSS_UART_57600_BAUD, MSS_UART_DATA_8_BITS | MSS_UART_NO_PARITY | MSS_UART_ONE_STOP_BIT);
MSS_UART_disable_irq(&g_mss_uart0_lo,(MSS_UART_RBF_IRQ | MSS_UART_TBE_IRQ));
return(0); }
@endcode