discoverpixy
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
screen_photomode_save.c File Reference
#include "screen_photomode_save.h"
#include "filesystem.h"
#include "button.h"
#include "tft.h"
#include "touch.h"
#include "pixy.h"
#include "pixy_frame.h"
#include <stdlib.h>
#include <string.h>
Include dependency graph for screen_photomode_save.c:

Data Structures

struct  FILE_LIST_ENTRY_S
 

Macros

#define X_OFS   5
 

Typedefs

typedef struct FILE_LIST_ENTRY_S FILE_LIST_ENTRY
 

Enumerations

enum  {
  init, error, showlist, picking,
  saving, done
}
 

Functions

static void b_back_cb (void *button)
 
static void touchCB (void *touchArea, TOUCH_ACTION triggeredAction)
 
static void enter (void *screen)
 
static void update (void *screen)
 
static void leave (void *screen)
 
SCREEN_STRUCTget_screen_photomodesave ()
 

Variables

static BUTTON_STRUCT b_back
 
static TOUCH_AREA_STRUCT a_area
 
static int num_files_ok
 
static enum { ... }  state
 
static int fontheight
 
static int liststart
 
static const char * picked_file
 
static FILE_LIST_ENTRYfiles_ok
 
static const char * nomatch_text []
 
static unsigned char bmpheader_data [0x7A]
 
static SCREEN_STRUCT screen
 

Macro Definition Documentation

#define X_OFS   5

Typedef Documentation

Enumeration Type Documentation

anonymous enum
Enumerator
init 
error 
showlist 
picking 
saving 
done 

Function Documentation

static void b_back_cb ( void *  button)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void enter ( void *  screen)
static

Here is the call graph for this function:

static void leave ( void *  screen)
static

Here is the call graph for this function:

static void touchCB ( void *  touchArea,
TOUCH_ACTION  triggeredAction 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void update ( void *  screen)
static

Here is the call graph for this function:

Variable Documentation

TOUCH_AREA_STRUCT a_area
static
BUTTON_STRUCT b_back
static
unsigned char bmpheader_data[0x7A]
static
Initial value:
= {
0x42, 0x4d, 0xe2, 0xe3, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7a, 0x00,
0x00, 0x00, 0x6c, 0x00, 0x00, 0x00, 0x3e, 0x01, 0x00, 0x00, 0xc6, 0x00,
0x00, 0x00, 0x01, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0xe3,
0x02, 0x00, 0x13, 0x0b, 0x00, 0x00, 0x13, 0x0b, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x47, 0x52, 0x73, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00
}
FILE_LIST_ENTRY* files_ok
static
int fontheight
static
int liststart
static
const char* nomatch_text[]
static
Initial value:
= {
"Due to limitations of the filesystem",
"implementation you can only write to",
"existing files.",
"",
"The files need to have a .bmp",
"extension and must be at least",
"189410 bytes (185kb) large.",
"Unfortunately there were no such",
"files found in the root directory.",
"",
"Please create some files and come",
"back again.",
NULL
}
int num_files_ok
static
const char* picked_file
static
SCREEN_STRUCT screen
static
Initial value:
= {
}
static void update(void *screen)
Definition: screen_photomode_save.c:114
static void enter(void *screen)
Definition: screen_photomode_save.c:88
static void leave(void *screen)
Definition: screen_photomode_save.c:273
enum { ... } state