Prusa MINI Firmware overview
|
#include "main.h"
#include "display.h"
#include "ff.h"
#include "jogwheel.h"
#include "dbg.h"
|
int | _f_fread (struct _reent *_r, void *pv, char *pc, int n) |
|
int | _f_fwrite (struct _reent *_r, void *pv, const char *pc, int n) |
|
int | _f_fclose (struct _reent *_r, void *pv) |
|
_fpos_t | _f_fseek (struct _reent *_r, void *pv, _fpos_t fpos, int ipos) |
|
FILE * | f_fopen (char *fn) |
|
void | f_fclose (FILE *pf) |
|
void | pngview (void) |
|
◆ _f_fread()
int _f_fread |
( |
struct _reent * |
_r, |
|
|
void * |
pv, |
|
|
char * |
pc, |
|
|
int |
n |
|
) |
| |
◆ _f_fwrite()
int _f_fwrite |
( |
struct _reent * |
_r, |
|
|
void * |
pv, |
|
|
const char * |
pc, |
|
|
int |
n |
|
) |
| |
◆ _f_fclose()
int _f_fclose |
( |
struct _reent * |
_r, |
|
|
void * |
pv |
|
) |
| |
◆ _f_fseek()
_fpos_t _f_fseek |
( |
struct _reent * |
_r, |
|
|
void * |
pv, |
|
|
_fpos_t |
fpos, |
|
|
int |
ipos |
|
) |
| |
◆ f_fopen()
FILE* f_fopen |
( |
char * |
fn | ) |
|
33 FILE *pf = malloc(
sizeof(FILE));
34 memset(pf, 0,
sizeof(FILE));
43 pf->_bf._base = (
uint8_t *)malloc(pf->_lbfsize);
44 pf->_bf._size = pf->_lbfsize;
◆ f_fclose()
void f_fclose |
( |
FILE * |
pf | ) |
|
52 if (pf->_bf._base != 0)
◆ pngview()
64 while (fres ==
FR_OK) {
◆ png_fnames
◆ png_cnt
◆ fil
int png_cnt
Definition: pngview.c:10
FRESULT f_open(FIL *fp, const TCHAR *path, BYTE mode)
Definition: ff.c:3296
int _f_fread(struct _reent *_r, void *pv, char *pc, int n)
Definition: pngview.c:13
FIL fil
Definition: pngview.c:11
_fpos_t _f_fseek(struct _reent *_r, void *pv, _fpos_t fpos, int ipos)
Definition: pngview.c:27
int _f_fclose(struct _reent *_r, void *pv)
Definition: pngview.c:23
osStatus osDelay(uint32_t millisec)
Wait for Timeout (Time Delay)
Definition: cmsis_os.c:365
void jogwheel_encoder_set(int32_t val, int32_t min, int32_t max)
Definition: jogwheel.c:83
int32_t jogwheel_encoder
Definition: jogwheel.c:10
#define FA_READ
Definition: ff.h:326
FILE * f_fopen(char *fn)
Definition: pngview.c:31
FRESULT f_opendir(DIR *dp, const TCHAR *path)
Definition: ff.c:4221
display_draw_png_t * draw_png
Definition: display.h:37
uint16_t jogwheel_button_down
Definition: jogwheel.c:13
int _f_fwrite(struct _reent *_r, void *pv, const char *pc, int n)
Definition: pngview.c:19
void f_fclose(FILE *pf)
Definition: pngview.c:49
const uint8_t[]
Definition: 404_html.c:3
#define _dbg(...)
Definition: dbg.h:50
display_t * display
Definition: display.c:6
FRESULT
Definition: ff.h:214
FRESULT f_findnext(DIR *dp, FILINFO *fno)
char png_fnames[256][8]
Definition: pngview.c:9
FRESULT f_closedir(DIR *dp)
Definition: ff.c:4291
FRESULT f_findfirst(DIR *dp, FILINFO *fno, const TCHAR *path, const TCHAR *pattern)
unsigned int UINT
Definition: onboard_sd.h:16
FRESULT f_read(FIL *fp, void *buff, UINT btr, UINT *br)
Definition: ff.c:3499
FRESULT f_close(FIL *fp)
Definition: ff.c:3801
static point_ui16_t point_ui16(uint16_t x, uint16_t y)
Definition: guitypes.h:154
uint8_t info[12]
Definition: masstorage.h:54