41 #include <external/uart/uart.h> 74 template <u
int16_t baud>
132 char buffer[
sizeof(uint32_t) * 8 + 1];
133 ultoa(value, buffer, radix);
149 void sendValue(
const char *description, uint32_t value, uint8_t radix = 10)
166 if (value > 9999 || value < -9999) value = -1;
168 dtostrf(value, 5, 2, buffer);
173 static Uart s_instance;
177 uart0_init(UART_BAUD_SELECT(baud, F_CPU));
181 template <u
int16_t baud>
void sendValue(const char *description, uint32_t value, uint8_t radix=10)
Transmits the string representation of the unsigned integer value and its description.
Definition: uart.h:149
static Uart & instance()
Returns the Avr::Uart instance.
Definition: uart.h:83
void sendString(const char *str)
Transmits the null-terminated string str.
Definition: uart.h:103
Namespace containing all symbols of the AVR C++ utilities library.
Definition: adc.h:48
void sendDouble(double value)
Transmits the string representation of the double value.
Definition: uart.h:164
void sendChar(unsigned char c)
Transmits the character c.
Definition: uart.h:93
void sendUInt(uint32_t value, uint8_t radix=10)
Transmits the string representation of the unsigned integer value.
Definition: uart.h:130
void sendLine(const char *str)
Transmits the null-terminated string str followed by a new line character.
Definition: uart.h:117
A C++ wrapper for accessing the built-in UART communication interfaces.
Definition: uart.h:75