PIC24 Support Libraries
Functions
pic24_spi.c File Reference
#include "pic24_spi.h"
#include "pic24_util.h"

Go to the source code of this file.

Functions

uint16_t ioMasterSPI1 (uint16_t 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

◆ ioMasterSPI1()

uint16_t ioMasterSPI1 ( uint16_t  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_cValue to write to SPI TXBUF
Returns
Value read from SPI RXBUF

Definition at line 67 of file pic24_spi.c.