#include "gui.h"
#include "string.h"
#include "ctype.h"
#include "gui_lang.h"
#include "gui_mbox.h"
#include "gui_tbox.h"
#include "gui_mpopup.h"
#include "gui_menu.h"
#include "eyefi.h"
#include "simple_module.h"
gehe zum Quellcode dieser Datei
|
enum | test_status {
EYEFI_NOT_SCANNING,
EYEFI_LOCATING_NETWORK,
EYEFI_VERIFYING_NETWORK_KEY,
EYEFI_WAITING_FOR_DHCP,
EYEFI_TESTING_CONN_TO_SERVER,
EYEFI_SUCCESS
} |
|
enum | card_info_subcommand {
EYEFI_MAC_ADDRESS = 1,
EYEFI_FIRMWARE_INFO = 2,
EYEFI_CARD_KEY = 3,
EYEFI_API_URL = 4,
EYEFI_UNKNOWN_5 = 5,
EYEFI_UNKNOWN_6 = 6,
EYEFI_LOG_LEN = 7,
EYEFI_WLAN_DISABLE = 10,
EYEFI_UPLOAD_PENDING = 11,
EYEFI_HOTSPOT_ENABLE = 12,
EYEFI_CONNECTED_TO = 13,
EYEFI_UPLOAD_STATUS = 14,
EYEFI_UNKNOWN_15 = 15,
EYEFI_TRANSFER_MODE = 17,
EYEFI_ENDLESS = 27,
EYEFI_DIRECT_WAIT_FOR_CONNECTION = 0x24,
EYEFI_DIRECT_WAIT_AFTER_TRANSFER = 0x25,
EYEFI_UNKNOWN_ff = 0xff
} |
|
#define EYEFI_BUF_SIZE 16384 |
#define WEP_40_KEY_BYTES 5 |
Aufzählungswerte |
---|
EYEFI_MAC_ADDRESS |
|
EYEFI_FIRMWARE_INFO |
|
EYEFI_CARD_KEY |
|
EYEFI_API_URL |
|
EYEFI_UNKNOWN_5 |
|
EYEFI_UNKNOWN_6 |
|
EYEFI_LOG_LEN |
|
EYEFI_WLAN_DISABLE |
|
EYEFI_UPLOAD_PENDING |
|
EYEFI_HOTSPOT_ENABLE |
|
EYEFI_CONNECTED_TO |
|
EYEFI_UPLOAD_STATUS |
|
EYEFI_UNKNOWN_15 |
|
EYEFI_TRANSFER_MODE |
|
EYEFI_ENDLESS |
|
EYEFI_DIRECT_WAIT_FOR_CONNECTION |
|
EYEFI_DIRECT_WAIT_AFTER_TRANSFER |
|
EYEFI_UNKNOWN_ff |
|
Definiert in Zeile 43 der Datei eyefi.c.
Aufzählungswerte |
---|
EYEFI_NOT_SCANNING |
|
EYEFI_LOCATING_NETWORK |
|
EYEFI_VERIFYING_NETWORK_KEY |
|
EYEFI_WAITING_FOR_DHCP |
|
EYEFI_TESTING_CONN_TO_SERVER |
|
EYEFI_SUCCESS |
|
Definiert in Zeile 30 der Datei eyefi.c.
int _module_can_unload |
( |
) | |
|
Definiert in Zeile 156 der Datei eyefi.c.
159 if ((c >=
'0') && (c <=
'9'))
161 else if ((lc >=
'a') && (lc <=
'z'))
162 return (lc -
'a') + 10;
static void clear_eyefi_buf |
( |
) | |
|
|
static |
static void confirm_add_network_cb |
( |
unsigned int |
btn) | |
|
|
static |
static void confirm_delete_network_cb |
( |
unsigned int |
btn) | |
|
|
static |
static u8* convert_ascii_to_hex |
( |
char * |
ascii) | |
|
|
static |
Definiert in Zeile 172 der Datei eyefi.c.
180 for (i = 0; i <
len; i += 2)
183 u8 low =
atoh(ascii[i+1]);
184 hex[i/2] = (high<<4) | low;
int eyefi_addNetwork |
( |
char * |
SSID, |
|
|
char * |
pwd |
|
) |
| |
static void eyefi_available_networks |
( |
) | |
|
|
static |
Definiert in Zeile 574 der Datei eyefi.c.
576 unsigned flag=1,flags=0;
static void eyefi_configured_networks |
( |
) | |
|
|
static |
Definiert in Zeile 462 der Datei eyefi.c.
464 unsigned flag=1,flags=0;
int eyefi_deleteNetwork |
( |
char * |
SSID) | |
|
int eyefi_enableWlan |
( |
int |
enable) | |
|
Definiert in Zeile 353 der Datei eyefi.c.
356 memset(¶m, 0,
sizeof(eyefi_param));
358 param.config.bytes = 1;
359 param.config.args[0] = (
unsigned char)enable;
static void eyefi_exit |
( |
__attribute__((unused)) unsigned int |
button) | |
|
|
static |
static char* eyefi_filename |
( |
const char * |
nm) | |
|
|
static |
Definiert in Zeile 236 der Datei eyefi.c.
238 static char path[16];
int eyefi_networkAction |
( |
unsigned char |
cmd, |
|
|
char * |
SSID, |
|
|
char * |
pwd |
|
) |
| |
Definiert in Zeile 324 der Datei eyefi.c.
327 memset(¶m, 0,
sizeof(eyefi_param));
328 param.network.length = (
unsigned char)
strlen(SSID);
329 strcpy(param.network.SSID, SSID);
static int eyefi_readFile |
( |
const char * |
filename) | |
|
|
static |
static int eyefi_sendCommandParam |
( |
unsigned char |
cmd, |
|
|
eyefi_param * |
param |
|
) |
| |
|
static |
char* eyefi_statusName |
( |
int |
n) | |
|
Definiert in Zeile 374 der Datei eyefi.c.
376 static char *eyefi_status[] =
380 "verifying network_key",
382 "testing conn. to server",
386 if (n<0 || n>=(
int)(
sizeof(eyefi_status)/
sizeof(*eyefi_status)))
389 return eyefi_status[
n];
int eyefi_testNetwork |
( |
char * |
SSID, |
|
|
char * |
pwd |
|
) |
| |
static void eyefi_wlan_off |
( |
) | |
|
|
static |
static void eyefi_wlan_on |
( |
) | |
|
|
static |
static void eyefi_wlan_state |
( |
int |
on_off) | |
|
|
static |
static int eyefi_writeFile |
( |
const char * |
filename) | |
|
|
static |
static int hex_only |
( |
char * |
str) | |
|
|
static |
Definiert in Zeile 190 der Datei eyefi.c.
195 if (((
str[i] >=
'a') &&
str[i] <=
'f') ||
196 ((
str[i] >=
'A') &&
str[i] <=
'F') ||
197 ((
str[i] >=
'0') &&
str[i] <=
'9')) {
static int make_network_key |
( |
struct network_key * |
key, |
|
|
char * |
essid, |
|
|
char * |
pass |
|
) |
| |
|
static |
Definiert in Zeile 207 der Datei eyefi.c.
210 int pass_len =
strlen(pass);
211 memset(key, 0,
sizeof(*key));
222 key->
len = pass_len/2;
static void password_cb |
( |
const char * |
str) | |
|
|
static |
static void select_available_network_cb |
( |
unsigned |
nSelected) | |
|
|
static |
Definiert in Zeile 546 der Datei eyefi.c.
560 if (nSelected == flag)
break;
564 if (nSelected != flag)
static void select_configured_network_cb |
( |
unsigned |
nSelected) | |
|
|
static |
Definiert in Zeile 431 der Datei eyefi.c.
445 if (nSelected == flag)
break;
449 if (nSelected != flag)
*-------------------------------------------------------------------—
!!
Definiert in Zeile 228 der Datei cache.c.
231 "MCR p15, 0, r1,c7,c5\n"
Initialisierung:
Definiert in Zeile 656 der Datei eyefi.c.
Initialisierung:
Definiert in Zeile 663 der Datei eyefi.c.
_eyefi_interface eyefi_buf |
|
static |
CMenu eyefi_submenu = {0x21,LANG_MENU_EYEFI_TITLE, eyefi_submenu_items } |
|
static |
Initialisierung:
Definiert in Zeile 622 der Datei eyefi.c.