You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
413 B
19 lines
413 B
|
15 years ago
|
#ifndef __SPIPROTO_H
|
||
|
|
#define __SPIPROTO_H
|
||
|
|
|
||
|
|
#include <stdint.h>
|
||
|
|
#include "main.h"
|
||
|
|
|
||
|
|
typedef void(*funptr_t)();
|
||
|
|
|
||
|
|
|
||
|
|
extern uint16_t *spi_proto_globals8[];
|
||
|
|
extern uint8_t *spi_proto_globals16[];
|
||
|
|
extern funptr_t spi_proto_funcs[];
|
||
|
|
|
||
|
|
uint8_t spi_proto_needswrite(uint8_t opcode);
|
||
|
|
uint16_t spi_proto_handlewrite(uint8_t opcode, uint8_t addr);
|
||
|
|
void spi_proto_handleread(uint8_t opcode, uint8_t addr, uint16_t data);
|
||
|
|
|
||
|
|
#endif
|