brazos-trapezoidal
Classes | Typedefs | Functions
CustomUart.c File Reference

Custom library for UART in NEBO. More...

#include "CustomUart.h"
Include dependency graph for CustomUart.c:

Go to the source code of this file.

Classes

struct  usart_device_t
 

Typedefs

typedef struct usart_device_t * usart_device_pt
 

Functions

uint16_t customAddParity (usart_device_pt pUart, uint8_t data)
 
bool customCheckParity (usart_device_pt pUart, uint16_t data)
 
uint32_t customUart_initialize (UsartInstance_Enum e_uart, USART_SignalEvent_t cb_event, void **pp_uart)
 
uint32_t customUart_getTxExpected (void *p_uart)
 
void USART0_Exception_Handler (void)
 
void USART1_Exception_Handler (void)
 

Detailed Description

Custom library for UART in NEBO.

Detailed description of the file contents

Version
S00_00_01 Nov 11, 2021

Definition in file CustomUart.c.

Function Documentation

◆ customAddParity()

uint16_t customAddParity ( usart_device_pt  pUart,
uint8_t  data 
)

Definition at line 250 of file CustomUart.c.

◆ customCheckParity()

bool customCheckParity ( usart_device_pt  pUart,
uint16_t  data 
)

This function checks if the received bit has the correct parity.

Parameters
pUartUSART which is currently receiving data
dataData received out on USART, this has parity bit added if required.
Returns
TRUE when the parity matches the specified parity setting in driver. FALSE when the parity does not match the setting in driver.

Definition at line 281 of file CustomUart.c.

◆ customUart_getTxExpected()

uint32_t customUart_getTxExpected ( void *  p_uart)

External function, see drv_uart.h for functional description.

Definition at line 109 of file CustomUart.c.

◆ customUart_initialize()

uint32_t customUart_initialize ( UsartInstance_Enum  e_uart,
USART_SignalEvent_t  cb_event,
void **  pp_uart 
)

External function, see drv_uart.h for functional description.

Definition at line 66 of file CustomUart.c.

Here is the caller graph for this function:

◆ USART0_Exception_Handler()

void USART0_Exception_Handler ( void  )

Definition at line 130 of file CustomUart.c.

◆ USART1_Exception_Handler()

void USART1_Exception_Handler ( void  )

Definition at line 245 of file CustomUart.c.