Location:
Search - MCP2510 B
Search list
Description: wince 5.0 BSP for OK2440
Platform: |
Size: 7455744 |
Author: osman |
Hits:
Description: #define READ 0x03 // 读MCP2510指令代码
#define WRITE 0x02 // 写MCP2510指令代码
#define RESET 0xC0 // 复位MCP2510指令代码
#define RTS 0x80 // MCP2510请求发送指令代码
#define STA2510 0xA0 // 读MCP2510状态指令代码
#define BITMOD 0x05 // MCP2510位修改指令代码
int a[12] // SPI发送或接收数据寄存器
int b[8] // 发送或接收的数据
int c[8] // 发送或接收的数据
int i // 临时变量
int count // 发送接收计数器
int count1=0 // for test
-# Define READ 0x03// MCP2510 instructions read the code# define WRITE 0x02// MCP2510 write instruction code# define RESET 0xC0// reset the MCP2510 instruction code# define RTS 0x80// MCP2510 request command code# define STA2510 0xA0// read MCP2510 Status instruction code# define BITMOD 0x05// MCP2510-bit instruction code modification int a [12] // SPI send or receive data register int b [8] // send or receive data int c [8] // send or received data int i // temporary variable int count // send and receive counters int count1 = 0 // for test
Platform: |
Size: 11264 |
Author: kkjut |
Hits: