Hiroshi Yamaguchi / Mbed 2 deprecated XBeeExamples

Dependencies:   mbed XBee mbed-rtos

Committer:
yamaguch
Date:
Wed Nov 09 07:33:40 2011 +0000
Revision:
0:34e0352d7396
Child:
1:dedbc2504219
initial creation

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 xbee2a();
yamaguch 0:34e0352d7396 11 void xbee3();
yamaguch 0:34e0352d7396 12 void xbee4();
yamaguch 0:34e0352d7396 13 void xbee4a();
yamaguch 0:34e0352d7396 14 void xbee5();
yamaguch 0:34e0352d7396 15 void xbee6();
yamaguch 0:34e0352d7396 16 void xbee7();
yamaguch 0:34e0352d7396 17 void xbee8();
yamaguch 0:34e0352d7396 18 void xbee9();
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 0:34e0352d7396 25
yamaguch 0:34e0352d7396 26 Function functions[] = {
yamaguch 0:34e0352d7396 27 "Inquire Firmware Version", xbee1,
yamaguch 0:34e0352d7396 28 "Execute AT Commands", xbee2,
yamaguch 0:34e0352d7396 29 "Change PAN ID", xbee2a,
yamaguch 0:34e0352d7396 30 "Coordinator (receive & dump)", xbee3,
yamaguch 0:34e0352d7396 31 "Router (send hello 10 times)", xbee4,
yamaguch 0:34e0352d7396 32 "Router (send hello and check if succeeds)", xbee4a,
yamaguch 0:34e0352d7396 33 "Coordinator (receive and scan sender's addresses)", xbee5,
yamaguch 0:34e0352d7396 34 "Coordinator (receive and get RSSI value)", xbee6,
yamaguch 0:34e0352d7396 35 "Router (send greetings to destination and wait for reply)", xbee7,
yamaguch 0:34e0352d7396 36 "Router (receive greetings and reply)", xbee8,
yamaguch 0:34e0352d7396 37 "Router (broadcast, send and receive to/from others)", xbee9,
yamaguch 0:34e0352d7396 38 "IO (blink an LED connected to DIO12)", xbeeio1,
yamaguch 0:34e0352d7396 39 "Remote IO (blink an LED connected to DIO12)", xbeeio2,
yamaguch 0:34e0352d7396 40 "IO Sample (execute IS command to read AD1 & DIO4", xbeeio3,
yamaguch 0:34e0352d7396 41 "Remote IO Sample (execute IS command to read AD1 & DIO4", xbeeio4,
yamaguch 0:34e0352d7396 42 "Remote IO Sample (use IOSample object to get AD1)", xbeeio5,
yamaguch 0:34e0352d7396 43 "IO sample (repeat sampling to send every 1 second)", xbeeio6,
yamaguch 0:34e0352d7396 44 0, 0
yamaguch 0:34e0352d7396 45 };