SW006010 Microchip Technology, SW006010 Datasheet - Page 52

no-image

SW006010

Manufacturer Part Number
SW006010
Description
MPLAB 17C SOFTWARE
Manufacturer
Microchip Technology
Datasheets

Specifications of SW006010

Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC17C
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
MPLAB®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
MPLAB
2.11
apRNOVS^-page 48
SPI™ FUNCTIONS
C17 C Compiler Libraries
This section contains a list of individual functions and an example of use of the
functions in this section. Functions may be implemented as macros.
2.11.1
CloseSPI
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
DataRdySPI
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
getcSPI
Function:
File Name:
getsSPI
Device:
Function:
Include:
Prototype:
Function Descriptions
PIC17C756
Disables the SSP module.
spi16.h
void CloseSPI (void);
None
This function disables the SSP module. Pin I/O returns under
the control of the DDRx and PORTx registers.
None
closespi.c
CloseSPI();
PIC17C756
Determines if the
spi16.h
unsigned char DataRdySPI (void);
None
This function determines if there is a byte to be read from the
SSPBUF
This function returns 1 if there is data in the
else returns a 0.
dtrdyspi.c
while (!DataRdySPI());
This function operates identically to ReadSPI.
#define in spi16.h
PIC17C756
Reads in data string from the SPI bus.
spi16.h
void getsSPI (
char length);
register.
SSPBUF
static unsigned char far *rdptr, static unsigned
contains data.
 2002 Microchip Technology Inc.
SSPBUF
register

Related parts for SW006010