Hiroshi Yamaguchi / Mbed 2 deprecated XBeeExamples

Dependencies:   mbed XBee mbed-rtos

Committer:
yamaguch
Date:
Thu Sep 20 11:17:17 2012 +0000
Revision:
6:d456c203adb6
Parent:
5:d01cf03058f6
Child:
7:39deffbdcae4
updated for workshop

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yamaguch 0:34e0352d7396 1 #include "mbed.h"
yamaguch 0:34e0352d7396 2
yamaguch 0:34e0352d7396 3 struct Function {
yamaguch 0:34e0352d7396 4 char *name;
yamaguch 0:34e0352d7396 5 void (*func)();
yamaguch 0:34e0352d7396 6 };
yamaguch 0:34e0352d7396 7
yamaguch 0:34e0352d7396 8 void xbee1();
yamaguch 0:34e0352d7396 9 void xbee2();
yamaguch 0:34e0352d7396 10 void xbee3();
yamaguch 0:34e0352d7396 11 void xbee4();
yamaguch 0:34e0352d7396 12 void xbee5();
yamaguch 0:34e0352d7396 13 void xbee6();
yamaguch 0:34e0352d7396 14 void xbee7();
yamaguch 0:34e0352d7396 15 void xbee8();
yamaguch 0:34e0352d7396 16 void xbee9();
yamaguch 1:dedbc2504219 17 void xbee10();
yamaguch 5:d01cf03058f6 18 void xbee11();
yamaguch 0:34e0352d7396 19 void xbeeio1();
yamaguch 0:34e0352d7396 20 void xbeeio2();
yamaguch 0:34e0352d7396 21 void xbeeio3();
yamaguch 0:34e0352d7396 22 void xbeeio4();
yamaguch 0:34e0352d7396 23 void xbeeio5();
yamaguch 0:34e0352d7396 24 void xbeeio6();
yamaguch 5:d01cf03058f6 25 void xbeeio7();
yamaguch 5:d01cf03058f6 26 void at_command();
yamaguch 5:d01cf03058f6 27 void network_reset();
yamaguch 0:34e0352d7396 28
yamaguch 0:34e0352d7396 29 Function functions[] = {
yamaguch 6:d456c203adb6 30 "function description", 0,
yamaguch 6:d456c203adb6 31 "XBee01 - Firmware Version", xbee1,
yamaguch 6:d456c203adb6 32 "XBee02 - AT Command Executions", xbee2,
yamaguch 6:d456c203adb6 33 "XBee03 - Changing PAN ID", xbee3,
yamaguch 6:d456c203adb6 34 "XBee04 - Receiver (receive & dump)", xbee4,
yamaguch 6:d456c203adb6 35 "XBee05 - Router (send hello 10 times)", xbee5,
yamaguch 6:d456c203adb6 36 "XBee06 - Router (send hello and check if it succeeds)", xbee6,
yamaguch 6:d456c203adb6 37 "XBee07 - Coordinator (receive and scan sender's addresses)", xbee7,
yamaguch 6:d456c203adb6 38 "XBee08 - Coordinator (receive and retrieve RSSI values)", xbee8,
yamaguch 6:d456c203adb6 39 "XBee09 - Router (send greetings to destination and wait for reply)", xbee9,
yamaguch 6:d456c203adb6 40 "XBee10 - Router (receive greetings and reply)", xbee10,
yamaguch 6:d456c203adb6 41 "XBee11 - Router (broadcast, send and receive to/from others)", xbee11,
yamaguch 6:d456c203adb6 42 "XBeeIO01 - IO (blink an LED connected to DIO12)", xbeeio1,
yamaguch 6:d456c203adb6 43 "XBeeIO02 - Remote IO (blink an LED connected to DIO12)", xbeeio2,
yamaguch 6:d456c203adb6 44 "XBeeIO03 - IO Sampling (execute IS command to read AD1 & DIO4)", xbeeio3,
yamaguch 6:d456c203adb6 45 "XBeeIO04 - Remote IO Sampling (execute IS command to read AD1 & DIO4", xbeeio4,
yamaguch 6:d456c203adb6 46 "XBeeIO05 - Remote IO Sampling (use IOSample object to get AD1)", xbeeio5,
yamaguch 6:d456c203adb6 47 "XBeeIO06 - IO Sampling (send IO sampling every second)", xbeeio6,
yamaguch 6:d456c203adb6 48 "XBeeIO07 - Temperature Sampling Receiver", xbeeio7,
yamaguch 6:d456c203adb6 49 "AT Command Executor", at_command,
yamaguch 5:d01cf03058f6 50 "Network Reset (issue NR0 command)", network_reset,
yamaguch 0:34e0352d7396 51 0, 0
yamaguch 0:34e0352d7396 52 };