58 #include "MockHL_sys_dma.h"
67 TEST_FILE(
"ltc_afe.c")
73 #define DMA_REQ_LINE_SPI1_TX (DMA_REQ1)
74 #define DMA_REQ_LINE_SPI1_RX (DMA_REQ0)
75 #define DMA_REQ_LINE_SPI2_TX (DMA_REQ3)
76 #define DMA_REQ_LINE_SPI2_RX (DMA_REQ2)
77 #define DMA_REQ_LINE_SPI3_TX (DMA_REQ15)
78 #define DMA_REQ_LINE_SPI3_RX (DMA_REQ14)
80 #define BIG_ENDIAN (3U)
81 #define ELEMENT_COUNT (1U)
82 #define DMAREQEN_BIT (0x10000U)
83 #define SPIEN_BIT (0x1000000U)
85 #define DMA_REQ_LINE_TX (DMA_REQ_LINE_SPI1_TX)
86 #define DMA_REQ_LINE_RX (DMA_REQ_LINE_SPI1_RX)
99 .PORTASGN = PORTA_READ_PORTB_WRITE,
100 .RDSIZE = ACCESS_8_BIT,
101 .WRSIZE = ACCESS_8_BIT,
102 .TTYPE = FRAME_TRANSFER,
103 .ADDMODERD = ADDR_INC1,
104 .ADDMODEWR = ADDR_FIXED,
105 .AUTOINIT = AUTOINIT_OFF,
118 .PORTASGN = PORTB_READ_PORTA_WRITE,
119 .RDSIZE = ACCESS_8_BIT,
120 .WRSIZE = ACCESS_8_BIT,
121 .TTYPE = FRAME_TRANSFER,
122 .ADDMODERD = ADDR_FIXED,
123 .ADDMODEWR = ADDR_INC1,
124 .AUTOINIT = AUTOINIT_OFF,
STD_RETURN_TYPE_e AFE_TriggerIc(void)
General macros and definitions for the whole platform.
Headers for the configuration for the LTC monitoring chip.
#define LTC_N_BYTES_FOR_DATA_TRANSMISSION
uint8_t ltc_RXPECbuffer[LTC_N_BYTES_FOR_DATA_TRANSMISSION]
uint8_t ltc_TXPECbuffer[LTC_N_BYTES_FOR_DATA_TRANSMISSION]
g_dmaCTRL afe_ltcDmaControlPacketTx
LTC_STATE_s ltc_stateBase
void testAFE_TriggerIcAlwaysReturnsSTD_OK(void)
g_dmaCTRL afe_ltcDmaControlPacketRx