Wixel SDK
spi1_master.h
Go to the documentation of this file.
1 
7 #ifndef _SPI1_MASTER_H
8 #define _SPI1_MASTER_H
9 
10 #include <cc2511_map.h>
11 #include <cc2511_types.h>
12 #include <spi.h>
13 
14 void spi1MasterInit(void);
15 void spi1MasterSetFrequency(uint32 freq);
16 void spi1MasterSetClockPolarity(BIT polarity);
17 void spi1MasterSetClockPhase(BIT phase);
18 void spi1MasterSetBitOrder(BIT bitOrder);
19 BIT spi1MasterBusy(void);
20 uint16 spi1MasterBytesLeft(void);
21 void spi1MasterTransfer(const uint8 XDATA * txBuffer, uint8 XDATA * rxBuffer, uint16 size);
22 uint8 spi1MasterSendByte(uint8 XDATA byte);
23 uint8 spi1MasterReceiveByte(void);
24 
25 ISR(URX1, 0);
26 
27 #endif /* SPI1_MASTER_H_ */
#define XDATA
Definition: cc2511_types.h:65
unsigned long uint32
Definition: cc2511_types.h:21
__bit BIT
Definition: cc2511_types.h:32
#define ISR(source, bank)
Definition: cc2511_map.h:71
unsigned short uint16
Definition: cc2511_types.h:15
unsigned char uint8
Definition: cc2511_types.h:9