LTlib LaurTec Library
4.0.3
Open Source C Library for Microchip Microcontrollers based on XC8 Compiler
|
#include "module_UART.h"
Go to the source code of this file.
Functions | |
void | UART1_open (unsigned int baud_rate) |
void | UART1_write_byte (unsigned char data) |
void | UART1_write_message (const unsigned char *data) |
void | UART1_write_string (unsigned char *data) |
unsigned char | UART1_read_byte (void) |
void UART1_open | ( | unsigned int | baud_rate | ) |
This function Opens the UART module enabling TX and RX channels.
data | Byte to write [min: UART_BAUDRATE_9600, max: UART_BAUDRATE_115200] |
You must use the constants UART_BAUDRATE_9600, UART_BAUDRATE_19200, UART_BAUDRATE_57600, UART_BAUDRATE_115200 to set the baudrate
Definition at line 48 of file module_UART.c.
References PIN_AS_INPUT.
unsigned char UART1_read_byte | ( | void | ) |
This function reads a byte from the RX buffer
none |
Definition at line 224 of file module_UART.c.
void UART1_write_byte | ( | unsigned char | data | ) |
This function writes a byte to the UART module.
data | Byte to write [min: 0, max: 255] |
Definition at line 163 of file module_UART.c.
References UART1_TX_busy.
void UART1_write_message | ( | const unsigned char * | data | ) |
This function writes a constant message to the UART.
*data | Constant string pointer |
Definition at line 178 of file module_UART.c.
References UART1_TX_busy, and UART1_write_byte().
void UART1_write_string | ( | unsigned char * | data | ) |
This function writes a string to the UART.
*data | Pointer to the array of char (string) |
Definition at line 201 of file module_UART.c.
References UART1_TX_busy, and UART1_write_byte().