sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
drcNetCmd.h
Go to the documentation of this file.
1 /*
2  * drcNetCmd.c:
3  * Copyright (c) 2012-2017 Gordon Henderson
4  ***********************************************************************
5  * This file is part of wiringPi:
6  * https://projects.drogon.net/raspberry-pi/wiringpi/
7  *
8  * wiringPi is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * wiringPi is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
20  ***********************************************************************
21  */
22 
23 #define DEFAULT_SERVER_PORT 6124
24 
25 #define DRCN_PIN_MODE 1
26 #define DRCN_PULL_UP_DN 2
27 
28 #define DRCN_DIGITAL_WRITE 3
29 #define DRCN_DIGITAL_WRITE8 4
30 #define DRCN_ANALOG_WRITE 5
31 #define DRCN_PWM_WRITE 6
32 
33 #define DRCN_DIGITAL_READ 7
34 #define DRCN_DIGITAL_READ8 8
35 #define DRCN_ANALOG_READ 9
36 
37 
39 {
40  uint32_t pin ;
41  uint32_t cmd ;
42  uint32_t data ;
43 } comDat ;
44 
Definition: drcNetCmd.h:38
uint32_t cmd
Definition: drcNetCmd.h:41
struct drcNetComStruct comDat
uint32_t data
Definition: drcNetCmd.h:42
uint32_t pin
Definition: drcNetCmd.h:40