Autodrone
Multi-Domain Vehicle
drv_usart.h File Reference

This file enables reading of usart data for use with a serial receiver. More...

Go to the source code of this file.

Macros

#define RX1BUF_SIZE   32
 

Functions

void usart1Init (void)
 Initializes the low level registers for usart1. More...
 
void usart1Read (uint8_t *pData, uint8_t size)
 Reads in data form usart1 with DMA. More...
 
void usart6Init (void)
 Initializes the low level registers for usart1. More...
 
void usart6Write (char *pData, uint8_t size)
 Reads in data form usart1 with DMA. More...
 

Variables

uint8_t rx1Buf [RX1BUF_SIZE]
 

Detailed Description

This file enables reading of usart data for use with a serial receiver.

Author
Jeremy Wolfe
Date
23 FEB 2022

Macro Definition Documentation

◆ RX1BUF_SIZE

#define RX1BUF_SIZE   32

Function Documentation

◆ usart1Init()

void usart1Init ( void  )

Initializes the low level registers for usart1.

Returns
Void.

◆ usart1Read()

void usart1Read ( uint8_t *  pData,
uint8_t  size 
)

Reads in data form usart1 with DMA.

Parameters
*pDataA pointer to location where you want to read data to.
sizeThe amount of bytes to be read.
Returns
Void.

◆ usart6Init()

void usart6Init ( void  )

Initializes the low level registers for usart1.

Returns
Void.

◆ usart6Write()

void usart6Write ( char *  pData,
uint8_t  size 
)

Reads in data form usart1 with DMA.

Parameters
*pDataA pointer to location where you want to read data to.
sizeThe amount of bytes to be read.
Returns
Void.

Variable Documentation

◆ rx1Buf

uint8_t rx1Buf[RX1BUF_SIZE]
extern