spi.h File Reference

Serial peripheral Interface. Target platform dependent. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void SPI_Init (void)
 
BYTE SPI_Exchange (BYTE data)
 
void SPI_Write (BYTE data)
 
BYTE SPI_Read (void)
 

Variables

volatile bit gSpiTx
 
volatile bit gSpiRx
 

Detailed Description

Serial peripheral Interface. Target platform dependent.

Attention
Copyright (c) 2000 JANUS.
This computer program includes confidential, proprietary information and is a trade secret of JANUS. All
use, disclosure, and/or reproduction is prohibited unless expressly authorized in writing.
All rights reserved.
Author
hgm
Version
Header
/home/cvsroot/jadeku/spi.h,v 1.1.1.1 2006-09-12 16:57:15 hernan Exp

Definition in file spi.h.

Function Documentation

◆ SPI_Exchange()

BYTE SPI_Exchange ( BYTE  data)

Poll the shift register.

Parameters
data- outgoing byte.
Returns
a byte read (input)
Remarks
do the input/output polling the register

Definition at line 62 of file spi.c.

Here is the caller graph for this function:

◆ SPI_Init()

void SPI_Init ( void  )

Function prototypes

Initialize SPI subsystem

Definition at line 33 of file spi.c.

Here is the caller graph for this function:

◆ SPI_Read()

BYTE SPI_Read ( void  )

Get a byte from the SPI subsystem RMC packet is received.

Returns
a byte from the shift register

Definition at line 86 of file spi.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SPI_Write()

void SPI_Write ( BYTE  data)

Send a byte to the SPI network.

Parameters
data- Put a data byte in the shift register.

Definition at line 75 of file spi.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ gSpiRx

volatile bit gSpiRx

Definition at line 29 of file spi.c.

◆ gSpiTx

volatile bit gSpiTx

SPI interrupt flags

Definition at line 28 of file spi.c.