common/pic24_spi.c File Reference

#include "pic24_all.h"

Go to the source code of this file.

Functions

uint16 ioMasterSPI1 (uint16 u16_c)


Detailed Description

This file contains routines which configure and use the SPI module on the PIC24 uC.
See also:
pic24_spi.h for more details.

Definition in file pic24_spi.c.


Function Documentation

uint16 ioMasterSPI1 ( uint16  u16_c  ) 

Writes a value to the SPIx output buffer, and returns the SPIx input value. This function waits until the entire transmission is complete so it can return the new input value. Whether or not 8-bits or 16-bits is sent depends on how the SPIx module is configured.

Parameters:
u16_c Value to write to SPI TXBUF
Returns:
Value read from SPI RXBUF

Definition at line 66 of file pic24_spi.c.


Generated on Sun Mar 15 11:14:22 2009 for PIC24 Support Libraries by  doxygen 1.5.8