Wixel SDK
spi0_master.h
Go to the documentation of this file.
1 
35 #ifndef _SPI0_MASTER_H
36 #define _SPI0_MASTER_H
37 
38 #include <cc2511_map.h>
39 #include <cc2511_types.h>
40 #include <spi.h>
41 
52 void spi0MasterInit(void);
53 
59 
72 void spi0MasterSetClockPolarity(BIT polarity);
73 
89 void spi0MasterSetClockPhase(BIT phase);
90 
96 void spi0MasterSetBitOrder(BIT bitOrder);
97 
103 BIT spi0MasterBusy(void);
104 
113 
135 void spi0MasterTransfer(const uint8 XDATA * txBuffer, uint8 XDATA * rxBuffer, uint16 size);
136 
148 
155 
157 ISR(URX0, 0);
158 
159 #endif /* SPI0_MASTER_H_ */
void spi0MasterInit(void)
void spi0MasterSetFrequency(uint32 freq)
BIT spi0MasterBusy(void)
uint8 spi0MasterReceiveByte(void)
uint16 spi0MasterBytesLeft(void)
#define XDATA
Definition: cc2511_types.h:65
uint8 spi0MasterSendByte(uint8 XDATA byte)
void spi0MasterTransfer(const uint8 XDATA *txBuffer, uint8 XDATA *rxBuffer, uint16 size)
void spi0MasterSetBitOrder(BIT bitOrder)
unsigned long uint32
Definition: cc2511_types.h:21
__bit BIT
Definition: cc2511_types.h:32
unsigned short uint16
Definition: cc2511_types.h:15
ISR(URX0, 0)
void spi0MasterSetClockPolarity(BIT polarity)
unsigned char uint8
Definition: cc2511_types.h:9
void spi0MasterSetClockPhase(BIT phase)