www.pudn.com > RC522.zip > spi_driver.h, change:2012-12-05,size:395b


#ifndef __SPI_DRIVER_H 
#define __SPI_DRIVER_H 
 
void SPI_Configuration(SPI_TypeDef* SPIx); 
int32_t SPI_WriteNBytes(SPI_TypeDef* SPIx, uint8_t *p_TxData,uint32_t sendDataNum); 
int32_t SPI_ReadNBytes(SPI_TypeDef* SPIx, uint8_t *p_RxData,uint32_t readDataNum); 
int32_t SPI_WriteByte(SPI_TypeDef* SPIx, uint16_t TxData); 
int32_t SPI_ReadByte(SPI_TypeDef* SPIx, uint16_t *p_RxData); 
 
#endif