SAM4 Peripheral DMA Controller (PDC) driver.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
#include "pdc.h"
Functions | |
void | pdc_disable_transfer (Pdc *p_pdc, uint32_t ul_controls) |
Disable PDC transfers (TX and/or RX). More... | |
void | pdc_enable_transfer (Pdc *p_pdc, uint32_t ul_controls) |
Enable PDC transfers (TX and/or RX). More... | |
uint32_t | pdc_read_rx_counter (Pdc *p_pdc) |
Return Receive Counter Register (RCR) value. More... | |
uint32_t | pdc_read_rx_next_counter (Pdc *p_pdc) |
Return Receive Next Counter Register (RNCR) value. More... | |
uint32_t | pdc_read_rx_next_ptr (Pdc *p_pdc) |
Return Receive Next Pointer Register (RNPR) value. More... | |
uint32_t | pdc_read_rx_ptr (Pdc *p_pdc) |
Return Receive Pointer Register (RPR) value. More... | |
uint32_t | pdc_read_status (Pdc *p_pdc) |
Read PDC status. More... | |
uint32_t | pdc_read_tx_counter (Pdc *p_pdc) |
Return Transmit Counter Register (TCR) value. More... | |
uint32_t | pdc_read_tx_next_counter (Pdc *p_pdc) |
Return Transmit Next Counter Register (TNCR) value. More... | |
uint32_t | pdc_read_tx_next_ptr (Pdc *p_pdc) |
Return Transmit Next Pointer Register (TNPR) value. More... | |
uint32_t | pdc_read_tx_ptr (Pdc *p_pdc) |
Return Transmit Pointer Register (TPR) value. More... | |
void | pdc_rx_clear_cnt (Pdc *p_pdc) |
Clear PDC buffer receive counter. More... | |
void | pdc_rx_init (Pdc *p_pdc, pdc_packet_t *p_packet, pdc_packet_t *p_next_packet) |
Configure PDC for data receive. More... | |
void | pdc_tx_init (Pdc *p_pdc, pdc_packet_t *p_packet, pdc_packet_t *p_next_packet) |
Configure PDC for data transmit. More... | |