brazos-trapezoidal
Macros
SerialBuffer_prm.h File Reference

Serial Buffer parameter file. More...

#include "drv_uart.h"
#include "CustomUart.h"
#include "main.h"
Include dependency graph for SerialBuffer_prm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define START_BYTE   0xAA
 
#define SERIAL_TX_BUFFER_SIZE   4
 
#define SERIAL_RX_BUFFER_SIZE   5
 
#define SERIAL_BUFFER_SLOT_SIZE   255
 
#define SCI_HEADER_SIZE   4
 
#define UART_POINTER   main__pointerUart0()
 
#define SCI_SEND(data, num)   uart_send( UART_POINTER, data, num, false )
 
#define SCI_RECEIVE(data, num)   uart_receive( UART_POINTER, data, num, false )
 
#define SCI_BYTESSENT()   uart_getTxCount( UART_POINTER )
 
#define SCI_BYTESEXPECTEDTX()   customUart_getTxExpected( UART_POINTER )
 
#define SCI_BYTESRECEIVED()   uart_getRxCount( UART_POINTER )
 
#define SCI_RESETERRORFLAGS()
 
#define SCI_DISABLEINTRX()   uart_control( UART_POINTER, UART_CTL_RX_INT_EN, DISABLE )
 
#define SCI_DISABLERX()   uart_control( UART_POINTER, UART_CTL_RX_EN, DISABLE )
 
#define SCI_TX_PIN_STATE()
 

Detailed Description

Serial Buffer parameter file.

Version
01 Jun, 2023

Definition in file SerialBuffer_prm.h.

Macro Definition Documentation

◆ SCI_BYTESEXPECTEDTX

#define SCI_BYTESEXPECTEDTX ( )    customUart_getTxExpected( UART_POINTER )

Definition at line 64 of file SerialBuffer_prm.h.

◆ SCI_BYTESRECEIVED

#define SCI_BYTESRECEIVED ( )    uart_getRxCount( UART_POINTER )

Definition at line 65 of file SerialBuffer_prm.h.

◆ SCI_BYTESSENT

#define SCI_BYTESSENT ( )    uart_getTxCount( UART_POINTER )

Definition at line 63 of file SerialBuffer_prm.h.

◆ SCI_DISABLEINTRX

#define SCI_DISABLEINTRX ( )    uart_control( UART_POINTER, UART_CTL_RX_INT_EN, DISABLE )

Definition at line 69 of file SerialBuffer_prm.h.

◆ SCI_DISABLERX

#define SCI_DISABLERX ( )    uart_control( UART_POINTER, UART_CTL_RX_EN, DISABLE )

Definition at line 70 of file SerialBuffer_prm.h.

◆ SCI_HEADER_SIZE

#define SCI_HEADER_SIZE   4

Size of the message header up to the number of data bytes

Definition at line 48 of file SerialBuffer_prm.h.

◆ SCI_RECEIVE

#define SCI_RECEIVE (   data,
  num 
)    uart_receive( UART_POINTER, data, num, false )

Definition at line 61 of file SerialBuffer_prm.h.

◆ SCI_RESETERRORFLAGS

#define SCI_RESETERRORFLAGS ( )

Definition at line 68 of file SerialBuffer_prm.h.

◆ SCI_SEND

#define SCI_SEND (   data,
  num 
)    uart_send( UART_POINTER, data, num, false )

Macros to define the interface to the physical layer, (UART, SPI, ..)

Definition at line 60 of file SerialBuffer_prm.h.

◆ SCI_TX_PIN_STATE

#define SCI_TX_PIN_STATE ( )

Macros to define gpio function to get the TX pin state

Definition at line 78 of file SerialBuffer_prm.h.

◆ SERIAL_BUFFER_SLOT_SIZE

#define SERIAL_BUFFER_SLOT_SIZE   255

Defines the size of the Serial buffer Slot (the size of each package) Maximum size = 255

Definition at line 43 of file SerialBuffer_prm.h.

◆ SERIAL_RX_BUFFER_SIZE

#define SERIAL_RX_BUFFER_SIZE   5

Defines the size of the Serial RX buffer Maximum size = 255

Definition at line 38 of file SerialBuffer_prm.h.

◆ SERIAL_TX_BUFFER_SIZE

#define SERIAL_TX_BUFFER_SIZE   4

Defines the size of the Serial TX buffer Maximum size = 255

Definition at line 33 of file SerialBuffer_prm.h.

◆ START_BYTE

#define START_BYTE   0xAA

-----------------------------— Theta Power Systems - CONFIDENTIAL --------------------------------------------—

Definition at line 28 of file SerialBuffer_prm.h.

◆ UART_POINTER

#define UART_POINTER   main__pointerUart0()

Pointer UART

Definition at line 53 of file SerialBuffer_prm.h.