Wixel SDK
Main Page
Modules
Data Structures
Files
File List
Globals
include
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_ */
XDATA
#define XDATA
Definition:
cc2511_types.h:65
cc2511_types.h
spi.h
uint32
unsigned long uint32
Definition:
cc2511_types.h:21
BIT
__bit BIT
Definition:
cc2511_types.h:32
ISR
#define ISR(source, bank)
Definition:
cc2511_map.h:71
uint16
unsigned short uint16
Definition:
cc2511_types.h:15
uint8
unsigned char uint8
Definition:
cc2511_types.h:9
cc2511_map.h
Generated on Mon Sep 28 2015 11:52:10 for Wixel SDK by
1.8.10