[6582b7]: cmd.h  Maximize  Restore  History

Download this file

58 lines (44 with data), 1.6 kB

 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
53
54
55
56
57
/*
Copyright (C) 2011 Georg Ottinger
This program 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 2
of the License, or (at your option) any later version.
This program 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 program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef __CMD_H__
#define __CMD_H__
#define STATE_IDLE 0
#define STATE_STARTSTREAMING 2
#define STATE_STREAMING 1
#define STATE_STOPSTREAMING_STAGE1 3
#define STATE_STOPSTREAMING_STAGE2 4
#define STATE_STARTVUONLY 5
#define STATE_VUONLY 6
#define STATE_STOPVUONLY_STAGE1 7
#define STATE_STOPVUONLY_STAGE2 8
#define CMD_CTRL 0x10
#define CMD_ONAIR 0x20
#define CMD_ONAIRBLINK 0x30
#define CMD_SET_QUALITY 0x40
#define CMD_SET_BITRATE 0x50 //Bitrate = 32 + ARG * 16
#define CMD_STATUSLED_RIGHT 0x60
#define CMD_STATUSLED_LEFT 0x70
#define CMD_SAMPLERATE 0x80
#define CMD_GETSTATUS 0x90
#define ARG_CTRL_STARTSTREAM 0x0
#define ARG_CTRL_VUONLY 0x1
#define ARG_CTRL_STOPSTREAM 0x2
#define ARG_CTRL_STOPVUONLY 0x3
#define ARG_GETSTATUS_UID 0x0
#define ARG_GETSTATUS_EEPROMSTATE 0x1
#define ARG_GETSTATUS_VERSIONINFO 0x2
extern void process_cmd(void);
extern void cmd_stm(void);
#endif //__CMD_H__

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks