57 #include "MockHL_spi.h"
58 #include "MockHL_sys_dma.h"
99 spi1GetConfigValue_Expect(
NULL_PTR, CurrentValue);
100 spi1GetConfigValue_IgnoreArg_config_reg();
104 spiSetFunctional_Expect(spiREG1, ((uint32_t)1u << 10u));
113 spi1GetConfigValue_Expect(
NULL_PTR, CurrentValue);
114 spi1GetConfigValue_IgnoreArg_config_reg();
118 spiSetFunctional_Expect(spiREG1, ~((uint32_t)1u << 10u));
127 spi1GetConfigValue_Ignore();
128 spiSetFunctional_Ignore();
136 spi2GetConfigValue_Ignore();
137 spiSetFunctional_Ignore();
145 spi3GetConfigValue_Ignore();
146 spiSetFunctional_Ignore();
154 spi4GetConfigValue_Ignore();
155 spiSetFunctional_Ignore();
163 spi5GetConfigValue_Ignore();
164 spiSetFunctional_Ignore();
175 SpiTxStatus_ExpectAndReturn(spiREG1, SPI_READY);
178 SpiTxStatus_ExpectAndReturn(spiREG1, SPI_PENDING);
181 SpiTxStatus_ExpectAndReturn(spiREG1, SPI_COMPLETED);
Headers for the configuration for the DMA module.
#define NULL_PTR
Null pointer.
void SPI_SetFunctional(spiBASE_t *pNode, enum spiPinSelect bit, bool hardwareControlled)
Sets the functional of a SPI pin.
STD_RETURN_TYPE_e SPI_CheckInterfaceAvailable(spiBASE_t *pNode)
Returns STD_OK if the SPI interface can be used again.
Headers for the driver for the SPI module.
Headers for the configuration for the SPI module.
#define TEST_ASSERT_FAIL_ASSERT(_code_under_test)
assert whether assert macro has failed
void testSPI_CheckInterfaceAvailableInvalidInput(void)
void testSPI_SetFunctionalRightApiSpi5(void)
void testSPI_CheckInterfaceAvailable(void)
void testSPI_SetFunctionalRightApiSpi2(void)
void testSPI_SetFunctionalTestIntendedFunctionClear(void)
void testSPI_SetFunctionalTestIntendedFunctionSet(void)
void testSPI_SetFunctionalRightApiSpi4(void)
void testSPI_SetFunctionalNullPointer(void)
void testSPI_SetFunctionalRightApiSpi3(void)
spi_config_reg_t spiMockConfigRegister
long FSYS_RaisePrivilege(void)
Raise privilege.
void testSPI_SetFunctionalRightApiSpi1(void)