Project

General

Profile

Revision 1345

Added by Rich Hong over 11 years ago

Final spline code for master/slave

updated outdated libdragonfly and libwireless

View differences:

spi.h
4 4
 * @author Colony Project, CMU Robotics Club
5 5
 **/
6 6

  
7
/**
8
 * @addtogroup spi
9
 * @{
10
 **/
11

  
7 12
#ifndef __SPI_H__
8 13
#define __SPI_H__
9 14

  
......
21 26
typedef void (*spi_fun_recv_t)(char);
22 27
typedef void (*spi_fun_recv_complete_t)(void);
23 28

  
29
/** 
30
* @brief Initialize SPI
31
* 
32
* @param spi_fun_recv_t The function that handles SPI data, byte for byte.
33
* @param spi_fun_recv_complete_t  Called on a completed transmission - typically for cleaning up.
34
*/
24 35
void spi_init (spi_fun_recv_t, spi_fun_recv_complete_t);
36

  
37
/** 
38
* @brief Initialize SPI transfer.
39
* 
40
* @param char The number of bytes to transfer.
41
*/
25 42
void spi_transfer (char);
26 43

  
44
/**@}**/ //end group
45

  
27 46
#endif

Also available in: Unified diff