1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-02-02 06:21:16 +00:00
Files
mist-devel.mist-firmware/data_io.h
2020-01-26 12:37:38 +01:00

25 lines
521 B
C

/*
* 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
void data_io_set_index(unsigned char index);
void data_io_fill_tx(unsigned char, unsigned int, unsigned char);
void data_io_file_tx(fileTYPE *, unsigned char);
// called when a rom entry is found in the mist.ini
void data_io_rom_upload(char *s, char mode);
#endif // DATA_IO_H