forked from pfalcon/blutunode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
command_parse.parse
52 lines (47 loc) · 2.11 KB
/
command_parse.parse
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* BluTuNode - Bluetooth sensor/actuator node software
* Copyright (c) 2011-2012 Paul Sokolovsky
*
* BtNode is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software. If not, see <http://www.gnu.org/licenses/>.
*/
{ AT \r} : command_ok
{ AT + GPIO ? \r} : command_gpio_get
{ AT + GPIO %d:pin ? \r} : command_gpio_pin_get
{ AT + GPIO = %d:mask, %d:bits \r} : command_gpio_set
{ AT + GPIO %d:pin = %s:value ? \r} : command_gpio_pin_set
{ AT + GPIODIR ? \r} : command_gpiodir_get
{ AT + GPIODIR %d:pin ? \r} : command_gpiodir_pin_get
{ AT + GPIODIR = %d:mask, %d:bits \r} : command_gpiodir_set
{ AT + GPIODIR %d:pin = %d:value \r} : command_gpiodir_pin_set
{ AT + GPIOSBIAS ? \r} : command_gpiosbias_get
{ AT + GPIOSBIAS %d:pin ? \r} : command_gpiosbias_pin_get
{ AT + GPIOSBIAS = %d:mask, %d:bits \r} : command_gpiosbias_set
{ AT + GPIOSBIAS %d:pin = %d:value \r} : command_gpiosbias_pin_set
{ AT + CTS ? \r} : command_cts_get
{ AT + RTS = %d:value ? \r} : command_rts_set
{ AT + GPIOWATCH = %d:mask, %d:count, %d:period \r} : command_gpio_watch_set
// TODO
//{ AT + GPIOPULSE = %s:pulses \r}
{ AT + ADC%d:channel ? \r} : command_adc_get
{ AT + TEMP ? \r} : command_temp_get
{ AT + POLL = \r} : command_poll_reset
{ AT + POLL = %d:period, %s:input \r} : command_poll_set
{ AT + PSKEY %d:pskey ? \r} : command_pskey_get
{ AT + CLK ? \r} : command_clk_get
{ AT + SLEEP = %d:state \r} : command_sleep_set
{ AT + ALLOC ? \r} : command_alloc_get
{ AT + BTVER ? \r} : command_bt_version_get
{ AT + LOCALVER ? \r} : command_local_version_get
{ AT + VER ? \r} : command_software_version
{ AT + VERSION ? \r} : command_software_version