Shield Code 6.0
Loading...
Searching...
No Matches
PDC.hpp File Reference

Header file for the PDC library for Dartmouth's 317 Lab. More...

#include <Arduino.h>
Include dependency graph for PDC.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PDC
 Manages UART transmits through peripheral DMA controller (PDC). More...
 

Macros

#define UART_BASE   0x400E0800
 
#define UART_PERIPH_TPR_ADDR   (UART_BASE + 0x108)
 
#define UART_PERIPH_TCR_ADDR   (UART_BASE + 0x10C)
 
#define UART_PERIPH_TNPR_ADDR   (UART_BASE + 0x118)
 
#define UART_PERIPH_TNCR_ADDR   (UART_BASE + 0x11C)
 
#define UART_PERIPH_PTCR_ADDR   (UART_BASE + 0x120)
 
#define UART_PERIPH_PTSR_ADDR   (UART_BASE + 0x124)
 
#define UART_SR   (UART_BASE + 0x0014)
 
#define TXTEN   (1<<8)
 
#define TXBUFE   (1<<11)
 

Detailed Description

Header file for the PDC library for Dartmouth's 317 Lab.

This library is used to manage UART communication on the Arduino Due using the Peripheral DMA Controller (PDC). This allows for non-blocking communication, so that we can run other processes while sending out data. Note for future developers - any data array sent through this library must be a global variable. If the variable goes out of scope before the transfer is complete, the data will be lost. Author: Sean Wallace Date: 2024-07-08

Definition in file PDC.hpp.

Macro Definition Documentation

◆ TXBUFE

#define TXBUFE   (1<<11)

Definition at line 29 of file PDC.hpp.

◆ TXTEN

#define TXTEN   (1<<8)

Definition at line 28 of file PDC.hpp.

◆ UART_BASE

#define UART_BASE   0x400E0800

Definition at line 19 of file PDC.hpp.

◆ UART_PERIPH_PTCR_ADDR

#define UART_PERIPH_PTCR_ADDR   (UART_BASE + 0x120)

Definition at line 24 of file PDC.hpp.

◆ UART_PERIPH_PTSR_ADDR

#define UART_PERIPH_PTSR_ADDR   (UART_BASE + 0x124)

Definition at line 25 of file PDC.hpp.

◆ UART_PERIPH_TCR_ADDR

#define UART_PERIPH_TCR_ADDR   (UART_BASE + 0x10C)

Definition at line 21 of file PDC.hpp.

◆ UART_PERIPH_TNCR_ADDR

#define UART_PERIPH_TNCR_ADDR   (UART_BASE + 0x11C)

Definition at line 23 of file PDC.hpp.

◆ UART_PERIPH_TNPR_ADDR

#define UART_PERIPH_TNPR_ADDR   (UART_BASE + 0x118)

Definition at line 22 of file PDC.hpp.

◆ UART_PERIPH_TPR_ADDR

#define UART_PERIPH_TPR_ADDR   (UART_BASE + 0x108)

Definition at line 20 of file PDC.hpp.

◆ UART_SR

#define UART_SR   (UART_BASE + 0x0014)

Definition at line 26 of file PDC.hpp.