SCAMP-5c SPI Interface  1.0.0
SCAMP-5c is connected to the flight computer via a SPI interface
debug_functions.h
1 
2 #ifndef DEBUG_FUNCTIONS_H
3 #define DEBUG_FUNCTIONS_H
4 
5 #ifdef __cplusplus
6 extern "C"{
7 #endif
8 
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <stdint.h>
12 
13 char conio_getch();
14 int conio_kbhit();
15 
16 const char*BIN_FORM_8(uint8_t x);
17 const char*BIN_FORM_16(uint16_t x);
18 const char*BIN_FORM_32(uint32_t x);
19 
20 int load_text_file(const char*filepath,char*buffer,size_t buffer_size,size_t*out_length);
21 void bitmap8_to_bitmap24(uint8_t*bitmap24,const uint8_t*bitmap8,size_t w,size_t h);
22 int save_bmp24(const char*filepath,uint32_t width,uint32_t height,const uint8_t*data);
23 
24 #ifdef __cplusplus
25 };
26 #endif
27 
28 #endif