Subversion Repositories pentevo

Rev

Rev 126 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 lvd 1
#ifndef SPI_H
2
#define SPI_H
3
 
126 chrv 4
/**
5
 * @file
6
 * @brief SPI interface support.
7
 * @author http://www.nedopc.com
8
 *
9
 * SPI interface to FPGA.
10
 */
6 lvd 11
 
126 chrv 12
/** Init spi interface. */
6 lvd 13
void spi_init(void);
14
 
126 chrv 15
/**
16
 * SPI data interchange.
17
 * @return received data
18
 * @param byte [in] - data to send
19
 */
94 chrv 20
UBYTE spi_send(UBYTE byte);
6 lvd 21
 
22
#endif
23