EU1KY AA
screenshot.c File Reference
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <math.h>
#include <complex.h>
#include "config.h"
#include "LCD.h"
#include "touch.h"
#include "ff.h"
#include "textbox.h"
#include "screenshot.h"
#include "crash.h"
#include "stm32746g_discovery_lcd.h"
#include "keyboard.h"
#include "lodepng.h"
#include "mainwnd.h"
#include "DS3231.h"
#include "sdram_heap.h"

Functions

void Sleep (uint32_t)
 
uint8_t __attribute__ ((section(".user_sdram")))
 
DWORD get_fattime (void)
 
int32_t ShowLogo (void)
 
void AnalyzeDate (WORD datex, char *str)
 
void AnalyzeTime (WORD datex, char *str)
 
int16_t SCREENSHOT_SelectFileNames (int fileNoMin)
 
char * SCREENSHOT_SelectFileName (void)
 
void SCREENSHOT_DeleteOldest (void)
 
void Date_Time_Stamp (void)
 
void SCREENSHOT_Save (const char *fname)
 
voidlodepng_malloc (size_t size)
 
voidlodepng_realloc (void *ptr, size_t new_size)
 
void lodepng_free (void *ptr)
 
static void _Change_B_R (uint32_t *image)
 
void SCREENSHOT_SavePNG (const char *fname)
 
unsigned lodepng_decode32 (unsigned char **out, unsigned *w, unsigned *h, const unsigned char *in, size_t insize)
 
void SCREENSHOT_ShowPicture (uint16_t Pointer1)
 
void SCREENSHOT_DeleteFile (uint16_t Pointer1)
 

Variables

static const TCHARSNDIR = "/aa/snapshot"
 
static uint32_t oldest = 0xFFFFFFFFul
 
static uint32_t numfiles = 0
 
static const char * g_logo_fpath1 = "/aa/logo.bmp"
 
static const char * g_logo_fpath2 = "/aa/logo.png"
 
volatile int Page
 
uint16_t Pointer
 
TCHAR fileNames [13][13]
 
static DWORD FileLength [12]
 
static unsigned char * inBuf
 
static unsigned char InBuf [8000]
 

Function Documentation

uint8_t __attribute__ ( (section(".user_sdram"))  )
static void _Change_B_R ( uint32_t *  image)
static
void AnalyzeDate ( WORD  datex,
char *  str 
)
void AnalyzeTime ( WORD  datex,
char *  str 
)
void Date_Time_Stamp ( void  )
DWORD get_fattime ( void  )
unsigned lodepng_decode32 ( unsigned char **  out,
unsigned *  w,
unsigned *  h,
const unsigned char *  in,
size_t  insize 
)
void lodepng_free ( void ptr)
void* lodepng_malloc ( size_t  size)
void* lodepng_realloc ( void ptr,
size_t  new_size 
)
void SCREENSHOT_DeleteFile ( uint16_t  Pointer1)
void SCREENSHOT_DeleteOldest ( void  )
void SCREENSHOT_Save ( const char *  fname)
void SCREENSHOT_SavePNG ( const char *  fname)
char* SCREENSHOT_SelectFileName ( void  )
int16_t SCREENSHOT_SelectFileNames ( int  fileNoMin)
void SCREENSHOT_ShowPicture ( uint16_t  Pointer1)
int32_t ShowLogo ( void  )
void Sleep ( uint32_t  )

Variable Documentation

DWORD FileLength[12]
static
TCHAR fileNames[13][13]
const char* g_logo_fpath1 = "/aa/logo.bmp"
static
const char* g_logo_fpath2 = "/aa/logo.png"
static
unsigned char* inBuf
static
unsigned char InBuf[8000]
static
uint32_t numfiles = 0
static
uint32_t oldest = 0xFFFFFFFFul
static
volatile int Page
uint16_t Pointer
const TCHAR* SNDIR = "/aa/snapshot"
static