Module usart - USART/serial routines for the ATmega1280

USART/serial routines for the ATmega1280

Index

Declarations

usart.module:32Process serial.start

PROC serial.start (VAL INT serial, VAL INT32 baud)

Initialize serial IO. (Interrupt-driven)

Parameters:

VAL INT serial The serial port to activate (eg. 0, 1, 2, or 3).
VAL INT32 baud The baud rate at which to transmit information.

usart.module:52Process serial.byte.out

PROC serial.byte.out (VAL INT serial, VAL BYTE b)

Write a BYTE to the serial port. (Interrupt-driven)

Parameters:

VAL INT serial The serial port to write to (eg. 0, 1, 2, or 3).
VAL BYTE b The BYTE to write.

usart.module:78Process serial.byte.in.blocking

PROC serial.byte.in.blocking (VAL INT serial, RESULT BYTE b)

Read a byte from the serial port. (Blocks.)

Parameters:

VAL INT serial The serial port to read from (eg. 0, 1, 2, or 3).
RESULT BYTE b The BYTE to be read.

usart.module:93Process serial.byte.in

PROC serial.byte.in (VAL INT serial, RESULT BYTE b)

Read a byte from the serial port. (Interrupt-driven)

Parameters:

VAL INT serial The serial port to read from (eg. 0, 1, 2, or 3).
RESULT BYTE b The BYTE to be read.

usart.module:117Process serial.start.blocking

PROC serial.start.blocking (VAL INT serial, VAL INT32 baud)

Initialize the serial port (blocking).

Parameters:

VAL INT serial The serial port to activate (eg. 0, 1, 2, or 3).
VAL INT32 baud The baud rate at which to transmit information.

usart.module:137Process serial.byte.out.blocking

PROC serial.byte.out.blocking (VAL INT serial, VAL BYTE b)

Write a byte to the serial port (blocking).

Parameters:

VAL INT serial The serial port to write to (eg. 0, 1, 2, or 3).
VAL BYTE b BYTE The BYTE to write.