M128/64 STK 1.0.1
 
Loading...
Searching...
No Matches
uart0 Namespace Reference

Functions

void begin (uint16_t baud)
 
void write (uint8_t data)
 
uint8_t available ()
 
uint8_t read ()
 

Detailed Description

The panel has 2 UART Registers connected to the ATmega128A.

Function Documentation

◆ available()

uint8_t uart0::available ( )

Checks if UART has available data to read.

Returns
non 0 if data is available

◆ begin()

void uart0::begin ( uint16_t baud)

Starts UART communication, and enables two way commonication.

Parameters
baudbaud rate

◆ read()

uint8_t uart0::read ( )

Reads a byte from UART.

Returns
read value

◆ write()

void uart0::write ( uint8_t data)

Writes a byte to UART.

Parameters
dataByte to write