Atmel Software Framework

fsdata.c File Reference
#include <compiler.h>
#include "board.h"
#include "gpio.h"
#include "adc.h"
#include "lwip/stats.h"
#include "lwip/init.h"
#include "lwip/netif.h"
#include <net/fs.h>
#include <util/util.h>
#include <net/hdwireless_gif.h>

Functions

void document_404_html_cb (const char **buf, int *len, char *arg)
 
void document_image_gif_cb (const char **buf, int *len, char *arg)
 
void document_index_html_cb (const char **buf, int *len, char *arg)
 
void fsdata_app_enable (void)
 
static char * get_adc (void)
 
static char * get_rx (void)
 
static char * get_tx (void)
 
static int html_add_button (char *buf, int len, char *id, char *value)
 
static int html_add_row (char *buf, int len, char *name, const char *data)
 
void query_led0_cb (const char **buf, int *len, char *arg)
 
void query_led1_cb (const char **buf, int *len, char *arg)
 
void query_led2_cb (const char **buf, int *len, char *arg)
 
void query_led3_cb (const char **buf, int *len, char *arg)
 

Variables

static struct fsdata_file file_404_html
 
static struct fsdata_file file_image_gif
 
static struct fsdata_file file_index_html
 
static struct fsdata_file file_led0
 
static struct fsdata_file file_led1
 
static struct fsdata_file file_led2
 
static struct fsdata_file file_led3
 

void document_404_html_cb ( const char **  buf,
int *  len,
char *  arg 
)
void document_image_gif_cb ( const char **  buf,
int *  len,
char *  arg 
)

References hdwireless_gif.

void document_index_html_cb ( const char **  buf,
int *  len,
char *  arg 
)
void fsdata_app_enable ( void  )

Enable the application webpage as the root web page.

References fs_register_root(), and NULL.

Referenced by wl_init_complete_cb().

static char* get_adc ( void  )
static

References adc, adc_get_value(), adc_start(), buf, and val.

Referenced by document_index_html_cb().

static char* get_rx ( void  )
static

References buf.

Referenced by document_index_html_cb().

static char* get_tx ( void  )
static

References buf.

Referenced by document_index_html_cb().

static int html_add_button ( char *  buf,
int  len,
char *  id,
char *  value 
)
static

Referenced by document_index_html_cb().

static int html_add_row ( char *  buf,
int  len,
char *  name,
const char *  data 
)
static

Referenced by document_index_html_cb().

void query_led0_cb ( const char **  buf,
int *  len,
char *  arg 
)
void query_led1_cb ( const char **  buf,
int *  len,
char *  arg 
)
void query_led2_cb ( const char **  buf,
int *  len,
char *  arg 
)
void query_led3_cb ( const char **  buf,
int *  len,
char *  arg 
)

struct fsdata_file file_404_html
static
Initial value:
= {
"/404.html",
}
void document_404_html_cb(const char **buf, int *len, char *arg)
Definition: fsdata.c:122
static struct fsdata_file file_image_gif
Definition: fsdata.c:312
struct fsdata_file file_image_gif
static
Initial value:
= {
"/image.gif",
}
void document_image_gif_cb(const char **buf, int *len, char *arg)
Definition: fsdata.c:111
static struct fsdata_file file_led0
Definition: fsdata.c:305
struct fsdata_file file_index_html
static
Initial value:
= {
"/index.html",
}
static struct fsdata_file file_404_html
Definition: fsdata.c:318
void document_index_html_cb(const char **buf, int *len, char *arg)
Definition: fsdata.c:152
struct fsdata_file file_led0
static
Initial value:
= {
"/index.html?toggle=LED0",
}
static struct fsdata_file file_led1
Definition: fsdata.c:299
void query_led0_cb(const char **buf, int *len, char *arg)
Definition: fsdata.c:248
struct fsdata_file file_led1
static
Initial value:
= {
"/index.html?toggle=LED1",
}
void query_led1_cb(const char **buf, int *len, char *arg)
Definition: fsdata.c:259
static struct fsdata_file file_led2
Definition: fsdata.c:293
struct fsdata_file file_led2
static
Initial value:
= {
"/index.html?toggle=LED2",
}
static struct fsdata_file file_led3
Definition: fsdata.c:287
void query_led2_cb(const char **buf, int *len, char *arg)
Definition: fsdata.c:270
struct fsdata_file file_led3
static
Initial value:
= {
"/index.html?toggle=LED3",
}
#define NULL
Definition: lwip-1.4.0/src/include/lwip/def.h:47
void query_led3_cb(const char **buf, int *len, char *arg)
Definition: fsdata.c:281