Hiroshi Yamaguchi / Mbed 2 deprecated XBeeExamples

Dependencies:   mbed XBee mbed-rtos

Committer:
yamaguch
Date:
Thu Apr 12 10:21:11 2012 +0000
Revision:
5:d01cf03058f6
Parent:
2:ac3a5e8a3bc9
Child:
6:d456c203adb6
1.0

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 0:34e0352d7396 30 "Inquire Firmware Version", xbee1,
yamaguch 0:34e0352d7396 31 "Execute AT Commands", xbee2,
yamaguch 5:d01cf03058f6 32 "Change PAN ID", xbee3,
yamaguch 5:d01cf03058f6 33 "Coordinator (receive & dump)", xbee4,
yamaguch 5:d01cf03058f6 34 "Router (send hello 10 times)", xbee5,
yamaguch 5:d01cf03058f6 35 "Router (send hello and check if succeeds)", xbee6,
yamaguch 5:d01cf03058f6 36 "Coordinator (receive and scan sender's addresses)", xbee7,
yamaguch 5:d01cf03058f6 37 "Coordinator (receive and retrieve RSSI value)", xbee8,
yamaguch 5:d01cf03058f6 38 "Router (send greetings to destination and wait for reply)", xbee9,
yamaguch 5:d01cf03058f6 39 "Router (receive greetings and reply)", xbee10,
yamaguch 5:d01cf03058f6 40 "Router (broadcast, send and receive to/from others)", xbee11,
yamaguch 0:34e0352d7396 41 "IO (blink an LED connected to DIO12)", xbeeio1,
yamaguch 0:34e0352d7396 42 "Remote IO (blink an LED connected to DIO12)", xbeeio2,
yamaguch 0:34e0352d7396 43 "IO Sample (execute IS command to read AD1 & DIO4", xbeeio3,
yamaguch 0:34e0352d7396 44 "Remote IO Sample (execute IS command to read AD1 & DIO4", xbeeio4,
yamaguch 0:34e0352d7396 45 "Remote IO Sample (use IOSample object to get AD1)", xbeeio5,
yamaguch 0:34e0352d7396 46 "IO sample (repeat sampling to send every 1 second)", xbeeio6,
yamaguch 5:d01cf03058f6 47 "Temperature sampling receiver", xbeeio7,
yamaguch 5:d01cf03058f6 48 "Execute Entered AT Command", at_command,
yamaguch 5:d01cf03058f6 49 "Network Reset (issue NR0 command)", network_reset,
yamaguch 0:34e0352d7396 50 0, 0
yamaguch 0:34e0352d7396 51 };