56 #include "MockHL_sys_dma.h"
57 #include "Mockfassert.h"
71 #define DMA_REQ_LINE_SPI1_TX (DMA_REQ1)
72 #define DMA_REQ_LINE_SPI1_RX (DMA_REQ0)
73 #define DMA_REQ_LINE_SPI2_TX (DMA_REQ3)
74 #define DMA_REQ_LINE_SPI2_RX (DMA_REQ2)
75 #define DMA_REQ_LINE_SPI3_TX (DMA_REQ15)
76 #define DMA_REQ_LINE_SPI3_RX (DMA_REQ14)
78 #define BIG_ENDIAN (3U)
79 #define ELEMENT_COUNT (1U)
80 #define DMAREQEN_BIT (0x10000U)
81 #define SPIEN_BIT (0x1000000U)
83 #define DMA_REQ_LINE_TX (DMA_REQ_LINE_SPI1_TX)
84 #define DMA_REQ_LINE_RX (DMA_REQ_LINE_SPI1_RX)
97 .numberOfMeasuredMux = 32,
100 .ErrRequestCounter = 0,
101 .VoltageSampleTime = 0,
103 .commandDataTransferTime = 3,
104 .commandTransferTime = 3,
105 .gpioClocksTransferTime = 3,
109 .first_measurement_made =
false,
113 .transmit_ongoing =
false,
128 .PORTASGN = PORTA_READ_PORTB_WRITE,
129 .RDSIZE = ACCESS_8_BIT,
130 .WRSIZE = ACCESS_8_BIT,
131 .TTYPE = FRAME_TRANSFER,
132 .ADDMODERD = ADDR_INC1,
133 .ADDMODEWR = ADDR_FIXED,
134 .AUTOINIT = AUTOINIT_OFF,
147 .PORTASGN = PORTB_READ_PORTA_WRITE,
148 .RDSIZE = ACCESS_8_BIT,
149 .WRSIZE = ACCESS_8_BIT,
150 .TTYPE = FRAME_TRANSFER,
151 .ADDMODERD = ADDR_FIXED,
152 .ADDMODEWR = ADDR_INC1,
153 .AUTOINIT = AUTOINIT_OFF,
#define NULL_PTR
Null pointer.
Headers for the driver for the DMA module for the LTC.
Headers for the configuration for the LTC monitoring chip.
#define LTC_N_BYTES_FOR_DATA_TRANSMISSION
@ LTC_STATEMACH_UNINITIALIZED
Headers for the configuration for the SPI module.
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
g_dmaCTRL afe_ltcDmaControlPacketRx