Contiki 2.6

menu.h File Reference

This file operates the menu flow chart described in the readme notes. More...

#include <avr/pgmspace.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  tmenu_item
 This structure defines the joystick operation within the menu_items[]. More...

Typedefs

typedef void(* tmenufunc )(uint8_t *)
 Pointer to function, used to dispatch a menu-driven function.

Functions

void menu_run_sleep (uint8_t *val)
 This will start a sleep operation.
void menu_run_doze (uint8_t *val)
 This will start a sleep with wakes for temperature measurement and web requests.
void dectoascii (uint8_t val, char *str)
 This function will convert decimal to ascii.
uint8_t * signed_dectoascii (int16_t n, uint8_t *str)
 This will convert a signed decimal number to ASCII.
void eeprom_init (void)
 This will check for DEBUG mode after power up.
void menu_ping_request (uint8_t *val)
 This will setup a ping request command to the 1284p and reset the ping counter.
uint8_t menu_send_ping (void)
 This will send the ping request to the 1284p via the serial port.
void menu_stop_ping (void)
 This will stop the ping request.
void menu_debug_mode (uint8_t *val)
 This will enable or disable the JTAG debug interface to allow for proper temperature sensor readings.
void menu_read_temp (uint8_t *val)
 This will display the temperature in degrees F or C.
void menu_display_temp (void)
 This will display the temperature in degrees F or C.
void menu_clear_temp (void)
 This will clear the temperature displayed in the 4 digit LCD segments.
void menu_prepare_temp (uint8_t *val)
 This will setup the current temperature for transfer to the ATmega1284p via a binary command transfer.
void menu_stop_temp (void)
 This will stop the auto sending of temperature data.

Detailed Description

This file operates the menu flow chart described in the readme notes.

This will create the proper commands needed to control the 1284p.

Author:
Mike Vidales mavida404@gmail.com

Definition in file menu.h.


Typedef Documentation

typedef void(* tmenufunc)(uint8_t *)

Pointer to function, used to dispatch a menu-driven function.

See tmenu_item

Definition at line 49 of file menu.h.