ESOS32
ESOSOn32-bitProcessors
Macros | Functions
esos_hwxxx_rs232.h File Reference

This file contains macros, prototypes, and definitions for hwxxx Family specific communications on ESOS. More...

#include "esos.h"
#include "esos_comm.h"
#include "esos_hwxxx.h"
Include dependency graph for esos_hwxxx_rs232.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IS_CHAR_READY_UART1()   U1STAbits.URXDA
 
#define IS_TRANSMIT_BUFFER_FULL_UART1()   U1STAbits.UTXBF
 
#define IS_TRANSMIT_COMPLETE_UART1()   U1STAbits.TRMT
 

Functions

void __esos_hw_signal_start_tx (void)
 
void __esos_hw_signal_stop_tx (void)
 
void __esos_hw_PutUint8 (uint8_t u8_c)
 
void __esos_hw_PutString (uint8_t *psz_in)
 
uint8_t __esos_hw_GetUint8 (void)
 
void __esos_configUART1 (uint32_t u32_baudRate)
 
void __esos_hw_InitCommSystem (void)
 

Detailed Description

This file contains macros, prototypes, and definitions for hwxxx Family specific communications on ESOS.

This file contains routines which configure and use the UARTs on the HWXXX processor. .

Definition in file esos_hwxxx_rs232.h.

Macro Definition Documentation

◆ IS_CHAR_READY_UART1

#define IS_CHAR_READY_UART1 ( )    U1STAbits.URXDA

Determine if a character is available in the UART's receive buffer.

Returns
True (1) if character is available, 0 if not.

Definition at line 64 of file esos_hwxxx_rs232.h.

◆ IS_TRANSMIT_BUFFER_FULL_UART1

#define IS_TRANSMIT_BUFFER_FULL_UART1 ( )    U1STAbits.UTXBF

Determine if a the transmit buffer is full.

Returns
True (1) if the transmit buffer if full, false (0) if not.

Definition at line 70 of file esos_hwxxx_rs232.h.

◆ IS_TRANSMIT_COMPLETE_UART1

#define IS_TRANSMIT_COMPLETE_UART1 ( )    U1STAbits.TRMT

Determines if all characters placed in the UART have been sent. Returns 1 if the last transmission has completed, or 0 if a transmission is in progress or queued in the transmit buffer.

Returns
True (1) if the last transmission has completed, 0 if not.

Definition at line 77 of file esos_hwxxx_rs232.h.