You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
575 B
27 lines
575 B
6 months ago
|
/** \file spi13.h */
|
||
|
#if !defined(SPI13_H__30436C8B_DA45_4E91_95E0_C40C4C083867__INCLUDED_)
|
||
|
#define SPI10_H__30436C8B_DA45_4E91_95E0_C40C4C083867__INCLUDED_
|
||
|
|
||
|
|
||
|
#include "define.h"
|
||
|
#include "board_config.h"
|
||
|
|
||
|
|
||
|
typedef enum
|
||
|
{
|
||
|
SPI13_MODE0,
|
||
|
SPI13_MODE1,
|
||
|
SPI13_MODE2,
|
||
|
SPI13_MODE3,
|
||
|
}SPI13_MODE;
|
||
|
|
||
|
void SPI13_Initialization(uint32_t speed, SPI13_MODE mode, bool lsbFirst);
|
||
|
void SPI13_Transmit(uint8_t* pTxData, uint32_t Tx_Len);
|
||
|
void SPI13_SendRecv(uint8_t* pTxByte, uint8_t* pRxByte, uint32_t TRx_Len);
|
||
|
uint8_t SPI13_SendReceiveByte(uint8_t SendByte);
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
#endif
|