RTEMS 6.1-rc1
Modules | Files | Data Structures | Typedefs | Functions

This group contains the APBUART interfaces. More...

Modules

 UART FIFO debug register (FIFO)
 This group contains register bit definitions.
 
 UART control register (CTRL)
 This group contains register bit definitions.
 
 UART data register (DATA)
 This group contains register bit definitions.
 
 UART scaler reload register (SCALER)
 This group contains register bit definitions.
 
 UART status register (STATUS)
 This group contains register bit definitions.
 

Files

file  apbuart-regs.h
 This header file defines the APBUART register block interface.
 
file  apbuart.h
 This header file defines the APBUART interface.
 
file  apbuart_polled.c
 This source file contains the implementation of apbuart_outbyte_wait(), apbuart_outbyte_polled(), and apbuart_inbyte_nonblocking().
 

Data Structures

struct  apbuart
 This structure defines the APBUART register block memory map. More...
 

Typedefs

typedef struct apbuart apbuart
 This structure defines the APBUART register block memory map.
 

Functions

int apbuart_inbyte_nonblocking (apbuart *regs)
 Clears all errors and tries to get one character from the receiver FIFO. More...
 
void apbuart_outbyte_polled (apbuart *regs, char ch)
 Waits until an empty transmitter FIFO was observed and then stores the character to the data register. More...
 
void apbuart_outbyte_wait (const apbuart *regs)
 Ensures that at least once an empty transmitter FIFO was observed. More...
 

Detailed Description

This group contains the APBUART interfaces.

Function Documentation

◆ apbuart_inbyte_nonblocking()

int apbuart_inbyte_nonblocking ( apbuart regs)

Clears all errors and tries to get one character from the receiver FIFO.

Parameters
regsis the pointer to the APBUART register block.
Return values
-1The receiver FIFO was empty.
Returns
Returns the first character of the receiver FIFO if it was non-empty.

◆ apbuart_outbyte_polled()

void apbuart_outbyte_polled ( apbuart regs,
char  ch 
)

Waits until an empty transmitter FIFO was observed and then stores the character to the data register.

Parameters
regsis the pointer to the APBUART register block.
chis the character to output.

◆ apbuart_outbyte_wait()

void apbuart_outbyte_wait ( const apbuart regs)

Ensures that at least once an empty transmitter FIFO was observed.

Parameters
regsis the pointer to the APBUART register block.