RTEMS: bsps/arm/atsam/contrib/libraries/libchip/source/xdma_hardware_interface.c File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
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.
uint8_t | XDMAIF_IsValidatedPeripherOnDma (uint8_t bPeriphID)
| Check if the given DMAC has associated peripheral identifier coded by the given peripheral.

## 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

  bDmac | DMA Controller number.
  bPeriphID | Peripheral ID.
  bTransfer | Transfer 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

  bDmac | DMA Controller number.
  bPeriphID | Peripheral ID (0xff : memory only).

Returns
  1: Is a validated peripheral. 0: no associated peripheral identifier coded.