-
Notifications
You must be signed in to change notification settings - Fork 39
/
data_io.h
29 lines (23 loc) · 666 Bytes
/
data_io.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* data_io.h
* Data transfer functions using SPI_SS2
*
*/
#ifndef DATA_IO_H
#define DATA_IO_H
#include <inttypes.h>
#define DIO_FILE_TX 0x53
#define DIO_FILE_TX_DAT 0x54
#define DIO_FILE_INDEX 0x55
#define DIO_FILE_INFO 0x56
#define DIO_FILE_RX 0x57
#define DIO_FILE_RX_DAT 0x58
void data_io_set_index(char index);
void data_io_file_tx_start();
void data_io_file_tx_done();
void data_io_fill_tx(unsigned char, unsigned int, char);
void data_io_file_tx(FIL*, char, const char*);
void data_io_file_rx(FIL*, char, unsigned int);
// called when a rom entry is found in the mist.ini
void data_io_rom_upload(char *s, char mode);
#endif // DATA_IO_H