ATtiny85 Template Code
Code snippets for the ATtiny85
 All Files Functions Variables Typedefs Enumerations Enumerator Macros
uart_print.c File Reference
#include "../hardware.h"
#include "softuart.h"
#include "utility.h"
Include dependency graph for uart_print.c:

Go to the source code of this file.

Functions

void uartPrint (const char *cszString)
 
void uartPrintP (const char *cszString)
 
void uartInt (uint16_t value)
 
void uartHex (uint16_t value)
 

Function Documentation

void uartHex ( uint16_t  value)

Print an unsigned 16 bit value in hexadecimal

Print the given value in hexadecimal format to the UART.

Parameters
valuethe value to print.

Definition at line 74 of file uart_print.c.

Here is the call graph for this function:

void uartInt ( uint16_t  value)

Print an unsigned 16 bit value in decimal

Print the given value in decimal format to the UART.

Parameters
valuethe value to print.

Definition at line 50 of file uart_print.c.

Here is the call graph for this function:

void uartPrint ( const char *  cszString)

Print a string from RAM

This function simply prints the nul terminated string from RAM to the serial port.

Parameters
cszStringpointer to a character array in RAM.

Definition at line 22 of file uart_print.c.

Here is the call graph for this function:

void uartPrintP ( const char *  cszString)

Print a string from PROGMEM

This function simply prints the nul terminated string from PROGMEM to the serial port.

Parameters
cszStringpointer to a character array in PROGMEM.

Definition at line 36 of file uart_print.c.

Here is the call graph for this function: