75 g_dmaCTRL dma_controlPacketTx = {
85 .PORTASGN = PORTA_READ_PORTB_WRITE,
86 .RDSIZE = ACCESS_16_BIT,
87 .WRSIZE = ACCESS_16_BIT,
88 .TTYPE = FRAME_TRANSFER,
89 .ADDMODERD = ADDR_INC1,
90 .ADDMODEWR = ADDR_FIXED,
91 .AUTOINIT = AUTOINIT_OFF
94 g_dmaCTRL dma_controlPacketRx = {
104 .PORTASGN = PORTB_READ_PORTA_WRITE,
105 .RDSIZE = ACCESS_16_BIT,
106 .WRSIZE = ACCESS_16_BIT,
107 .TTYPE = FRAME_TRANSFER,
108 .ADDMODERD = ADDR_FIXED,
109 .ADDMODEWR = ADDR_INC1,
110 .AUTOINIT = AUTOINIT_OFF
126 (dmaChannel_t)(dmaChannel_t)
dma_spiDmaChannels[i].rxChannel, (dmaInterrupt_t)BTC, (dmaIntGroup_t)DMA_INTA);
138 dmaSetChEnable((dmaChannel_t)
dma_spiDmaChannels[i].txChannel, (dmaTriggerType_t)DMA_HW);
139 dmaSetChEnable((dmaChannel_t)
dma_spiDmaChannels[i].rxChannel, (dmaTriggerType_t)DMA_HW);
145 if (inttype == (dmaInterrupt_t)BTC) {
147 uint8_t spiIndex = 0U;
168 if (spiIndex == 0U) {
void DMA_Initialize(void)
Enables the DMA module.
void UNIT_TEST_WEAK_IMPL dmaGroupANotification(dmaInterrupt_t inttype, uint32 channel)
Headers for the driver for the DMA module.
DMA_REQUEST_CONFIG_s dma_spiDmaRequests[DMA_NUMBER_SPI_INTERFACES]
spiBASE_t * dma_spiInterfaces[DMA_NUMBER_SPI_INTERFACES]
DMA_CHANNEL_CONFIG_s dma_spiDmaChannels[DMA_NUMBER_SPI_INTERFACES]
#define DMA_BIG_ENDIAN_ADDRESS_16BIT
#define DMA_NUMBER_SPI_INTERFACES
#define NULL_PTR
Null pointer.
#define UNIT_TEST_WEAK_IMPL
void IO_PinSet(volatile uint32_t *pRegisterAddress, uint32_t pin)
Set pin by writing in pin output register.
Header for the driver for the IO module.
Headers for the driver for the general DMA module of monitoring ICs.
void MIC_DmaCallback(dmaInterrupt_t inttype, uint32 channel)
Function called by DMA block transfer callback.
Headers for the driver for the SPI module.
SPI_INTERFACE_CONFIG_s spi_dmaTransmission[]
Variable used for SPI over DMA transmission. Retains the CS pin to deactivate in DMA callback.
SPI_BUSY_STATE_e spi_busyFlags[]
const uint8_t spi_nrBusyFlags