root / Version 2.3 / Panel_reader_controller.X / moduleCmds.h @ 367905ec
Historique | Voir | Annoter | Télécharger (1,049 ko)
1 |
/*
|
---|---|
2 |
* File: moduleCmds.h
|
3 |
* Author: Enzo Niro
|
4 |
* Comments: List of Bluetooth module commands
|
5 |
* Revision history: 1.0
|
6 |
*/
|
7 |
|
8 |
// This is a guard condition so that contents of this file are not included
|
9 |
// more than once.
|
10 |
#ifndef MODULE_CMDS_H
|
11 |
#define MODULE_CMDS_H
|
12 |
|
13 |
#include <xc.h> // include processor files - each processor file is guarded. |
14 |
|
15 |
|
16 |
//Set commands
|
17 |
#define SET_AUTH "SA," |
18 |
#define SET_BLM "SG," |
19 |
#define SET_DEVN "SN," |
20 |
#define SET_PINC "SP," |
21 |
#define SET_BAUD "SU," |
22 |
#define ENTER_SETUP "$$$\r" |
23 |
#define QUIT_SETUP "---\r" |
24 |
|
25 |
//get commands
|
26 |
#define GET_AUTH "GA\r" |
27 |
#define GET_BLM "GG\r" |
28 |
#define GET_DEVN "GN\r" |
29 |
#define GET_PINC "GP\r" |
30 |
#define GET_BAUD "GU\r" |
31 |
|
32 |
#define BAUD_VAL_115200 "03" |
33 |
#define BAUD_VAL_57600 "04" |
34 |
#define BAUD_VAL_38400 "05" |
35 |
#define BAUD_VAL_28800 "06" |
36 |
#define BAUD_VAL_19200 "07" |
37 |
#define BAUD_VAL_14400 "08" |
38 |
#define BAUD_VAL_9600 "09" |
39 |
#define BAUD_VAL_4800 "0A" |
40 |
#define BAUD_VAL_2400 "0B" |
41 |
|
42 |
#endif /* MODULE_CMDS_H */ |
43 |
|