Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
Serial Basic Interrupts

Functions

static int32_t Run_SER_BasicInterrupt ()
 
static void Cfg_SER_Channel ()
 
static nai_status_t Cfg_SER_Interrupt ()
 
static void SampleCallBack (uint32_t vector)
 
static void Clear_InterruptStatus (naibrd_ser_event_mapped_status_type_t interruptStatus)
 

Detailed Description

The purpose of the SER_BasicInterrupt sample application is to illustrate the methods to call in the naibrd library to perform basic interrupt operations with the serial module.

Function Documentation

◆ Cfg_SER_Channel()

static void Cfg_SER_Channel ( )
static

Configures a serial module for asynchronous loopback transmission.

◆ Cfg_SER_Interrupt()

static nai_status_t Cfg_SER_Interrupt ( )
static

Configures a serial module to interrupt on the Receive Buffer High Water-mark status and inserts a user callback interrupt service routine. Prints out interrupt configuration.

◆ Clear_InterruptStatus()

static void Clear_InterruptStatus ( naibrd_ser_event_mapped_status_type_t interruptStatus)
static

Clears the interrupt status (in this case either the high watermark or transmit complete status). This is needed to be able to receive any additional interrupts of this type.

Parameters
interruptStatus(Input) The status to clear.

◆ Run_SER_BasicInterrupt()

static int32_t Run_SER_BasicInterrupt ( )
static

Configures a serial module to interrupt on the Receive Buffer High Water-mark status. and monitor the general purpose input.

◆ SampleCallBack()

static void SampleCallBack ( uint32_t vector)
static

The callback function that is installed via naibrd_ConnectISR(). This function will be called when the interrupt is received. Prints out that the interrupt has been received.

Parameters
vector(Input) Interrupt vector to identify which channel caused the interrupt.