25 lines
655 B
C
25 lines
655 B
C
/**
|
|
* @file ivec_mcal_spi.h
|
|
* @author Akshat Dabas (akshat@vecmocon.com)
|
|
* @brief This header file contains API for SPI Functionality
|
|
* @version 0.1.0
|
|
* @date 2024-Mar-12
|
|
*
|
|
* @copyright Copyright (c) 2024
|
|
*
|
|
*/
|
|
|
|
#ifndef CORE_INCLUDE_IVEC_MCAL_SPI_H_
|
|
#define CORE_INCLUDE_IVEC_MCAL_SPI_H_
|
|
|
|
#define SPI_PKT_SIZE 24
|
|
|
|
#include "ti_msp_dl_config.h"
|
|
#include "../utils/utils.h"
|
|
|
|
xCoreStatus_t xMCAL_SPI_init(SPI_Regs *SPI_inst, xSPI_CS_t xCS );
|
|
xCoreStatus_t xMCAL_SPI_TxData(SPI_Regs *SPI_inst, uint8_t *u8SPI_TxData, uint8_t * u8SPI_RxData,uint8_t size);
|
|
xCoreStatus_t xMCAL_SPI_deinit(SPI_Regs *SPI_inst);
|
|
|
|
#endif /* CORE_INCLUDE_IVEC_MCAL_SPI_H_ */
|