This group contains the APBUART interfaces.
More...
|
struct | apbuart |
| This structure defines the APBUART register block memory map. More...
|
|
|
typedef struct apbuart | apbuart |
| This structure defines the APBUART register block memory map.
|
|
This group contains the APBUART interfaces.
◆ apbuart_inbyte_nonblocking()
int apbuart_inbyte_nonblocking |
( |
apbuart * |
regs | ) |
|
Clears all errors and tries to get one character from the receiver FIFO.
- Parameters
-
regs | is the pointer to the APBUART register block. |
- Return values
-
-1 | The 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
-
regs | is the pointer to the APBUART register block. |
ch | is 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
-
regs | is the pointer to the APBUART register block. |