kumar singh / Mbed OS rtos_queue_09Mar_2017

Fork of rtos_queue by mbed official

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Beacon.h Source File

Beacon.h

00001 #include "mbed.h"
00002 #include "Common_Defs.h"
00003 
00004 //Macro Definitions
00005 #define SET_BEACON_UUID_CMD0            0x01
00006 #define SET_BEACON_UUID_CMD1            0x01
00007 #define SET_SET_MAJOR_CMD0              0x01
00008 #define SET_SET_MAJOR_CMD1              0x02
00009 #define SET_SET_MINOR_CMD0              0x01
00010 #define SET_SET_MINOR_CMD1              0x03
00011 #define SET_SET_MEASURED_POWER_CMD0     0x01
00012 #define SET_SET_MEASURED_POWER_CMD1     0x04
00013 #define SET_TRANSMISSION_POWER_CMD0     0x01
00014 #define SET_TRANSMISSION_POWER_CMD1     0x05
00015 #define SET_PAIRING_PASSWORD_CMD0       0x01
00016 #define SET_PAIRING_PASSWORD_CMD1       0x06
00017 #define SET_BROADCAST_INTERVAL_CMD0     0x01
00018 #define SET_BROADCAST_INTERVAL_CMD1     0x07
00019 #define SET_IBEACON_NAME_CMD0           0x01
00020 #define SET_IBEACON_NAME_CMD1           0x08
00021 #define SET_START_BEACON_CMD0           0x01    //Open Beacon
00022 #define SET_START_BEACON_CMD1           0x09
00023 #define SET_STOP_BEACON_CMD0            0x01    //Close Beacon
00024 #define SET_STOP_BEACON_CMD1            0x0A
00025 #define SET_SOFT_REBOOT_CMD0            0x01
00026 #define SET_SOFT_REBOOT_CMD1            0x0B
00027 
00028 extern unsigned char SOFT_REBOOT1[15];
00029 extern unsigned char SET_VIRTUAL_PACKET_UUID[23];
00030 extern unsigned char SET_VIRTUAL_PACKET_UUID2[23];
00031 
00032 extern unsigned char SET_UUID[21];
00033 extern unsigned char SET_MAJOR[7];           
00034 extern unsigned char SET_MINOR[7];
00035 extern unsigned char SET_MEASURED_POWER[6];
00036 extern unsigned char SET_TRANSMISSION_POWER[6];
00037 extern unsigned char SET_PAIRING_PASSWORD[13];
00038 extern unsigned char SET_BROADCAST_INTERVAL[6];
00039 extern unsigned char SET_IBEACON_NAME[17];
00040 extern unsigned char SOFT_REBOOT[13];
00041 extern unsigned char SET_OPEN_BEACON[7];
00042 extern unsigned char SET_CLOSE_BEACON[8];
00043 extern uint8 BLE_Adv_Module_Beacon_ID[6];
00044 
00045  extern uint8 Beacon_RxBuffer_Crnt_Pos,Beacon_RxBuffer_End_Pos; // must be volatile or the compiler may over-optimise.
00046  extern uint8 Beacon_RX_Buffer[50];
00047  
00048 extern void Process_Beacon_Command_Received(unsigned char* Command_Received);
00049 extern void Change_Beacon_Parameter(unsigned char* Beacon_Parameter_To_Set);
00050 extern void Initialize_Beacon_Module(void);