Hiroshi Yamaguchi / Mbed 2 deprecated XBeeExamples

Dependencies:   mbed XBee mbed-rtos

functions.h

Committer:
yamaguch
Date:
2011-11-09
Revision:
0:34e0352d7396
Child:
1:dedbc2504219

File content as of revision 0:34e0352d7396:

#include "mbed.h"

struct Function {
    char *name;
    void (*func)();
};

void xbee1();
void xbee2();
void xbee2a();
void xbee3();
void xbee4();
void xbee4a();
void xbee5();
void xbee6();
void xbee7();
void xbee8();
void xbee9();
void xbeeio1();
void xbeeio2();
void xbeeio3();
void xbeeio4();
void xbeeio5();
void xbeeio6();

Function functions[] = {
    "Inquire Firmware Version", xbee1,
    "Execute AT Commands", xbee2,
    "Change PAN ID", xbee2a,
    "Coordinator (receive & dump)", xbee3,
    "Router (send hello 10 times)", xbee4,
    "Router (send hello and check if succeeds)", xbee4a,
    "Coordinator (receive and scan sender's addresses)", xbee5,
    "Coordinator (receive and get RSSI value)", xbee6,
    "Router (send greetings to destination and wait for reply)", xbee7,
    "Router (receive greetings and reply)", xbee8,
    "Router (broadcast, send and receive to/from others)", xbee9,
    "IO (blink an LED connected to DIO12)", xbeeio1,
    "Remote IO (blink an LED connected to DIO12)", xbeeio2,
    "IO Sample (execute IS command to read AD1 & DIO4", xbeeio3,
    "Remote IO Sample (execute IS command to read AD1 & DIO4", xbeeio4,
    "Remote IO Sample (use IOSample object to get AD1)", xbeeio5,
    "IO sample (repeat sampling to send every 1 second)", xbeeio6,
    0, 0
};