iPXE
Data Fields
uart_operations Struct Reference

UART operations. More...

#include <uart.h>

Data Fields

void(* transmit )(struct uart *uart, uint8_t byte)
 Transmit byte. More...
 
int(* data_ready )(struct uart *uart)
 Check if data is ready. More...
 
uint8_t(* receive )(struct uart *uart)
 Receive byte. More...
 
int(* init )(struct uart *uart)
 Initialise UART. More...
 
void(* flush )(struct uart *uart)
 Flush transmitted data. More...
 

Detailed Description

UART operations.

Definition at line 35 of file uart.h.

Field Documentation

◆ transmit

void( * uart_operations::transmit) (struct uart *uart, uint8_t byte)

Transmit byte.

Parameters
uartUART
byteByte to transmit
Return values
rcReturn status code

Definition at line 43 of file uart.h.

◆ data_ready

int( * uart_operations::data_ready) (struct uart *uart)

Check if data is ready.

Parameters
uartUART
Return values
readyData is ready

Definition at line 50 of file uart.h.

Referenced by __attribute__().

◆ receive

uint8_t( * uart_operations::receive) (struct uart *uart)

Receive byte.

Parameters
uartUART
Return values
byteReceived byte

Definition at line 57 of file uart.h.

◆ init

int( * uart_operations::init) (struct uart *uart)

Initialise UART.

Parameters
uartUART
Return values
rcReturn status code

Definition at line 64 of file uart.h.

◆ flush

void( * uart_operations::flush) (struct uart *uart)

Flush transmitted data.

Parameters
uartUART

Definition at line 70 of file uart.h.


The documentation for this struct was generated from the following file: