mikroC

making it simple...

Soft_Spi_Read

mikroC - C Compiler for Microchip PIC microcontrollers

Prototype

char Soft_Spi_Read(char buffer);

 

 

Returns

Returns the received data.

 

 

Description

Provides clock by sending buffer and receives data.

 

 

Requires

Soft SPI must be initialized and communication established before using this function.

 

See Soft_Spi_Config.

 

 

Example

tmp = Soft_Spi_Read(buffer);

 

 

Soft_Spi_Write

Prototype

void Soft_Spi_Write(char data);

Description Immediately transmits data.

Requires Soft SPI must be initialized and communication established before using this function. See Soft_Spi_Config.

Example Soft_Spi_Write(1);

 

 

page

 

MikroElektronika: Development tools - Books - Compilers

259