Example for sending and receiving simple broadcast commands using the RF interface on the Pi Swarm

Dependencies:   Pi_Swarm_Library_v06_alpha mbed

Fork of Pi_Swarm_Blank by piswarm

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 /*******************************************************************************************
00002  *
00003  * University of York Robot Lab Pi Swarm Robot Library
00004  *
00005  * (C) Dr James Hilder, Dept. Electronics & Computer Science, University of York
00006  * 
00007  * Version 0.6  February 2014
00008  *
00009  * Designed for use with the Pi Swarm Board (enhanced MBED sensor board) v1.2
00010  *
00011  ******************************************************************************************/
00012 
00013 #ifndef MAIN_H
00014 #define MAIN_H
00015 
00016 #include "piswarm.h"
00017 #include "communications.h"
00018 
00019 void handleUserRFCommand(char * data, char length);
00020 void handleUserRFCommand(char sender, char broadcast_message, char request_response, char id, char is_command, char function, char * data, char length);
00021 void handleUserRFResponse(char sender, char broadcast_message, char request_response, char id, char is_command, char function, char * data, char length);
00022 void processRawRFData(char * rstring, char cCount);
00023 void broadcast_user_rf_command(int function, char * message, int length);
00024 void switch_pressed ( void );
00025 
00026 #endif //MAIN_H