1 |
#ifndef USART_H |
1 |
#ifndef USART_H |
2 |
#define USART_H |
2 |
#define USART_H |
3 |
|
3 |
|
4 |
//Inits: |
4 |
//Inits: |
5 |
void USART_Init( unsigned int ubrr); // 8b, no parity, 1 stop |
5 |
void USART_Init( unsigned int ubrr); // 8b, no parity, 1 stop |
6 |
// asynchronous, RX interrupt |
6 |
// asynchronous, RX interrupt |
7 |
|
7 |
|
8 |
// Busy loops: |
8 |
// Busy loops: |
9 |
void USART_Transmit( unsigned char data ); // send char (1B) |
9 |
void USART_Transmit( unsigned char data ); // send char (1B) |
10 |
void USART_Transmit_string( char *data ); // send string |
10 |
void USART_Transmit_string( char *data ); // send string |
11 |
void USART_Transmit_num( unsigned char data ); // send ascii |
11 |
void USART_Transmit_num( unsigned char data ); // send ascii |
12 |
void USART_Transmit_longnum( signed long data ); // send ascii |
12 |
void USART_Transmit_longnum( signed long data ); // send ascii |
13 |
void USART_Transmit_uint16( unsigned int data ); // send ascii |
13 |
void USART_Transmit_uint16( unsigned int data ); // send ascii |
14 |
//void USART_Transmit_float( float data ); |
14 |
//void USART_Transmit_float( float data ); |
15 |
void USART_Transmit_byte( char data ); //send in ascii hex reprezentation |
15 |
void USART_Transmit_byte( char data ); //send in ascii hex reprezentation |
16 |
|
16 |
|
17 |
#endif |
17 |
#endif |