UniverSpace 2022 / Mbed 2 deprecated IniSat_TP5

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers soft_uart.h Source File

soft_uart.h

00001 /*
00002 *   Soft UART Library
00003 */
00004  
00005 #define BAUD_RATE       9600
00006 
00007 void idle();
00008  
00009 //Sets the transmit pin to the high state.
00010 void set_tx_pin_high(void);
00011  
00012 //Sets the transmit pin to the low state.
00013 void set_tx_pin_low(void);
00014  
00015 //Returns 0 or 1 dependent on whether the receive pin is high or low
00016 int get_rx_pin_status(void);
00017 
00018 void timer_isr(void);
00019  
00020 void Init_Soft_UART(void);
00021  
00022 char _getchar(void);
00023  
00024 void _putchar(char ch);
00025  
00026 void flush_input_buffer(void);
00027  
00028 char kbhit(void);
00029  
00030 void turn_rx_on(void);
00031  
00032 void turn_rx_off(void);
00033 
00034 void printStr(char* str);
00035