RTEMS  5.1
Functions
xdma_hardware_interface.c File Reference
#include "chip.h"

Functions

uint8_t XDMAIF_Get_ChannelNumber (uint8_t bPeriphID, uint8_t bTransfer)
 Get peripheral identifier coded for hardware handshaking interface. More...
 
uint8_t XDMAIF_IsValidatedPeripherOnDma (uint8_t bPeriphID)
 Check if the given DMAC has associated peripheral identifier coded by the given peripheral. More...
 

Function Documentation

◆ XDMAIF_Get_ChannelNumber()

uint8_t XDMAIF_Get_ChannelNumber ( uint8_t  bPeriphID,
uint8_t  bTransfer 
)

Get peripheral identifier coded for hardware handshaking interface.

Parameters
bDmacDMA Controller number.
bPeriphIDPeripheral ID.
bTransferTransfer type 0: Tx, 1 :Rx.
Returns
0-15 peripheral identifier coded. 0xff : no associated peripheral identifier coded.

◆ XDMAIF_IsValidatedPeripherOnDma()

uint8_t XDMAIF_IsValidatedPeripherOnDma ( uint8_t  bPeriphID)

Check if the given DMAC has associated peripheral identifier coded by the given peripheral.

Parameters
bDmacDMA Controller number.
bPeriphIDPeripheral ID (0xff : memory only).
Returns
1: Is a validated peripheral. 0: no associated peripheral identifier coded.